*&---------------------------------------------------------------------* *& Include ZXUSRU01 *&---------------------------------------------------------------------*
TABLES: UINFO. DATA: N TYPE I VALUE 5. "<- 최대 허용 중복 로그인 수치 DATA: OPCODE TYPE X VALUE 2, I TYPE I, A(60), N_C(3), B(250), c(250), TEMP_A(250), TEMP_B(250), TEMP_C(250),TEMP_D(250). DATA: I_n TYPE I VALUE 4. DATA: BEGIN OF BDC_TAB1 OCCURS 5. INCLUDE STRUCTURE BDCDATA. DATA: END OF BDC_TAB1.
DATA: BEGIN OF USR_TABL OCCURS 10. INCLUDE STRUCTURE UINFO. DATA: END OF USR_TABL.
DATA: GT_USR41 LIKE USR41 OCCURS 0 WITH HEADER LINE.
* 예외처리할 ID있으면 아래에 표시 IF SY-UNAME <> 'ADMIN' AND SY-UNAME <> 'SAP*' AND SY-UNAME <> 'INTERFACE' AND SY-UNAME <> 'DDIC' AND SY-UNAME <> 'DDID' AND SY-UNAME <> 'ALEREMOTE' AND SY-UNAME <> 'BWREMOTE' AND SY-UNAME <> 'IF_BIZTALK' AND SY-UNAME <> 'ALEREMOTE' AND SY-UNAME <> 'RSDUSER' AND SY-UNAME <> 'SAPCPIC' AND SY-UNAME <> 'TMSADM'.
CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE ID 'TAB' FIELD USR_TABL-*SYS*.
LOOP AT USR_TABL. IF SY-UNAME = USR_TABL-BNAME AND SY-MANDT = USR_TABL-MANDT. I = I + 1. ENDIF.
ENDLOOP.
SELECT * INTO TABLE GT_USR41 FROM USR41 WHERE BNAME = SY-UNAME.
I_n = 0. TEMP_C = ''. TEMP_D = ''.
LOOP AT GT_USR41. TEMP_A = GT_USR41-TERMINAL. TEMP_B = ' / '. I_n = I_n + 1. IF I_n < 3 . CONCATENATE TEMP_A TEMP_B TEMP_C INTO TEMP_C. ELSEIF I_N < 5. CONCATENATE TEMP_A TEMP_B TEMP_D INTO TEMP_D. ENDIF. ENDLOOP.
IF I >= N.
N_C = I - 1.
CONCATENATE '' SY-UNAME ' 계정이 현재 ' N_C ' 개가 로그인 되어 있습니다' INTO A.
CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING TITEL = 'SAP ID 정책 위반 안내' TXT1 = A TXT2 = '중복 로그인 정책에 위반되어 종료 합니다, 접속된 PC명 : ' TXT3 = TEMP_C TXT4 = TEMP_D.
MOVE: 'SAPMSSY0' TO BDC_TAB1-PROGRAM, '120' TO BDC_TAB1-DYNPRO, 'X' TO BDC_TAB1-DYNBEGIN. APPEND BDC_TAB1.CLEAR BDC_TAB1. MOVE: 'BDC_OKCODE' TO BDC_TAB1-FNAM, '/nex' TO BDC_TAB1-FVAL. APPEND BDC_TAB1.CLEAR BDC_TAB1.
● Return Delivery : 반품사유입력 여부는 Required(예: 자재 파손), 물류전표 생성 → Vendor의 기존 재고에 영향
131(Goods Receipt for Run Schedule Header)
- 수작업 입력 불가.
- 가능Special Stock indicator
E : GR for Purchase order or order to sales order stockQ : GR for Purchase order or order to project stock
201(Goods Issue for a cost center)
- Cost Center로 소비 출고되는 경우.Unrestricted use stock에서만 출고 가능.
- 가능Special Stock indicator K : Goods withdrawal from consignment stockP : Goods Withdrawal from Pipeline
221(Goods Issue for a Project)
- Project로 소비 출고되는 경우.Unrestricted use stock에서만 출고 가능.
- 가능Special Stock indicator K : Goods withdrawal from consignment stockQ : GR for Purchase order or order to project stock
231(Goods Issue For a Customer Order(Without SD))
- SD Module을 사용하지 않는 환경에서 Delivery처리하고자 할때 사용.Unrestricted use stock에서만 출고 가능.
- 가능Special Stock indicator
E : GR for Purchase order or order to sales order stockQ : GR for Purchase order or order to project stock K : Goods withdrawal from consignment stock
241(Goods Issue for an asset)
- 고정자산으로 출고되는 경우. Unrestricted use stock에서만 출고 가능.
- 가능Special Stock indicator
K : Goods withdrawal from consignment stock
251(Goods Issue for a Sales(without Customer Order))
- SD에서 Customer Order가 입력되지 않은 경우 사용. Standard System에서는 Cost center에 Assign되어 있다.
- Unrestricted use stock에서만 출고 가능.
- 가능Special Stock indicator
K : Goods withdrawal from consignment stock
261(Goods Issue for an Order)
- Order(예:Production Order, Maintenance Order등 Cusromer Order를 제외한 Order)로 출고된 경우
- 가능Special Stock indicator
E : GR for Purchase order or order to sales order stockQ : GR for Purchase order or order to project stock
K : Goods withdrawal from consignment stockP : Goods Withdrawal from Pipeline
W : Consignment customer
281(Goods Issue for a Network)
- Network로 출고되는 경우.
- Unrestricted use stock에서만 출고 가능.
- 가능Special Stock indicator
E : GR for Purchase order or order to sales order stockQ : GR for Purchase order or order to project stock K : Goods withdrawal from consignment stockP : Goods Withdrawal from Pipeline
※ Network : PS 모듈에서 수주업종(건설업,엔지니어링업,조선업등)의 경우 WBS Element에 작업단위별로 연결한 Schedule을 말하는데 이를 통해
수익과 비용의 분석이 가능하다. Network의 기본요소는 Activity와 Relationship이다.
291(Goods Issue for any arbitrary account assignment)
- 이 M.Type을 사용하면 Account Assignment Field(Cost center,Project,Asset,Order,Network등)가 입력 가능한 상태로 된다.
- Unrestricted use stock에서만 출고 가능.
- 가능Special Stock indicator E : GR for Purchase order or order to sales order stockQ : GR for Purchase order or order to project stock K : Goods withdrawal from consignment stockP : Goods Withdrawal from Pipeline
- 판매를 위해 사용된 포장/운반재료 등은 Unrestricted Use Stock에서 불출되며, Customer Site에 존재하는 실물(포장재료)은 차후에 회수가능한 자재는 Returnable Packaging Stock으로 관리한다.즉, Returnable Packaging Stock을 사용해 판매가 일어나면포장재료의 M.Type은 621이 된다.
623(Goods Issue from Returnable Packaging Stock at Customer(SD))
- SD Module에서 발생하는 M.Type
- Unrestricted Returnable Packaging Stock at Customer에서 출고가 일어나는 경우