*&--------------------------------------------------------------
*& Module get_header_data_text OUTPUT
*&--------------------------------------------------------------
* text
*---------------------------------------------------------------
MODULE GET_HEADER_DATA_TEXT OUTPUT.
PERFORM. GET_DOMMAIN_VALUE_TEXT(ZRMM_CSD_0015) USING 'ZCSDTYPE'
ZCM03-DOCTYPE
DOCTYPETEXT.
SELECT ADRNR INTO LFA1-ADRNR FROM LFA1
WHERE LIFNR EQ ZCM03-EMPLOYID.
EXIT.
ENDSELECT.
SELECT NAME1 INTO ADRC-NAME1 FROM ADRC
WHERE ADDRNUMBER EQ LFA1-ADRNR.
EXIT.
ENDSELECT.
IF SY-SUBRC NE 0.
CLEAR ADRC-NAME1.
ENDIF.
SELECT KTEXT INTO CSKT-KTEXT FROM CSKT WHERE SPRAS EQ SY-LANGU
AND KOSTL EQ
ZCM03-KOSTL.
EXIT.
ENDSELECT.
IF SY-SUBRC NE 0.
CLEAR CSKT-KTEXT.
ENDIF.
**lbg200804100906.add.sn
CLEAR G_OBJECT.
CONCATENATE 'DOCTYPE' ZCM03-DOCTYPE INTO G_OBJECT.
CONDENSE G_OBJECT.
CLEAR REASON_TXT.
PERFORM. GET_DOMMAIN_VALUE_TEXT(ZRMM_CSD_0015) USING 'ZREASON'
ZCM03-RESON
REASON_TXT.
CLEAR REALEASE_TXT.
IF ZCM03-RELSTATUS NE SPACE.
PERFORM. GET_DOMMAIN_VALUE_TEXT(ZRMM_CSD_0015) USING
'ZRELEASE'
ZCM03-RELSTATUS
REALEASE_TXT.
ELSE.
REALEASE_TXT = ''.
ENDIF.
**lbg200804100907.add.en
ENDMODULE. " get_header_data_text OUTPUT
*&--------------------------------------------------------------
*& Module modify_header_screen_attrib OUTPUT
*&--------------------------------------------------------------
MODULE MODIFY_HEADER_SCREEN_ATTRIB OUTPUT.
DATA: L_CNT TYPE I.
DATA: ORDERNO(15) TYPE C.
DATA: COMMENT(15) TYPE C.
LOOP AT SCREEN.
IF TRANSACTION EQ 'D' .
**LBG20080414.ADD.SN
*Modified by royzhang 20100311 Adj.Doc. send release. begin
* if ( zcm03-doctype = '5' or zcm03-doctype = '6'
* or zcm03-doctype = 'C' or zcm03-doctype = 'D'
* or zcm03-doctype = 'I' or zcm03-doctype = 'J' ).
IF ( ZCM03-DOCTYPE = '5' OR ZCM03-DOCTYPE = '6'
OR ZCM03-DOCTYPE = '8'
OR ZCM03-DOCTYPE = 'C' OR ZCM03-DOCTYPE = 'D'
OR ZCM03-DOCTYPE = 'I' OR ZCM03-DOCTYPE = 'J'
OR ZCM03-DOCTYPE = 'E' ).
*Modified by royzhang 20100311 Adj.Doc. send release. end
"rena modify 12292009
CLEAR P_REASON.
CLEAR P_REALEASE.
P_REASON = 'Reason'.
P_REALEASE = 'Realease'.
IF SCREEN-GROUP1 = 'REA'.
SCREEN-INVISIBLE = 0.
ENDIF.
* IF SCREEN-GROUP2 = 'SON'.
* SCREEN-INPUT = 1.
* ENDIF.
ELSE.
IF SCREEN-GROUP1 = 'TTT'.
SCREEN-INVISIBLE = 1.
ENDIF.
ENDIF.
***LBG20080414.ADD.EN
***Aiking 20080505 add.
IF ZCM03-DOCTYPE ='14' OR ZCM03-DOCTYPE ='15'.
IF SCREEN-GROUP1 ='CUS'.
SCREEN-INVISIBLE = 0.
ENDIF.
ENDIF.
***Aiking 20080505 add end.
***Aiking 20080704 add.
IF ZCM03-DOCTYPE ='16' OR ZCM03-DOCTYPE ='17'.
IF SCREEN-GROUP1 ='VDR'.
SCREEN-INVISIBLE = 0.
ENDIF.
ENDIF.
***Aiking 20080704 add end.
SCREEN-INPUT = 0.
*ECHO ADD.0623.SN
IF ZCM03-DOCTYPE = 'K' OR ZCM03-DOCTYPE = 'L'. "ECHO100619
IF SCREEN-NAME = 'ORDERNO'.
RDERNO = 'RMA#'.
ENDIF.
IF SCREEN-NAME = 'COMMENT'.
COMMENT = 'Serial#'.
ENDIF.
ELSE.
IF SCREEN-NAME = 'ORDERNO'.
RDERNO = 'Order'.
ENDIF.
IF SCREEN-NAME = 'COMMENT'.
COMMENT = 'Comment'.
ENDIF.
ENDIF.
*ECHO ADD.0623.EN
ELSE.
IF TRANSACTION EQ SPACE AND '123913AHKL' CS ZCM03-DOCTYPE.
IF SCREEN-GROUP1 EQ 'POD'.
SCREEN-INPUT = 1.
SCREEN-REQUIRED = 1.
* *Elven add for Production order
* else.
* screen-input = 0.
* screen-required = 0.
* *Elven add for Production order input 20070106end
ENDIF.
ENDIF.
****LBG200804100937.add.sn
*Modified by royzhang 20100311 Adj.Doc. send release. begin
* if ( zcm03-doctype = '5' or zcm03-doctype = '6'
* or zcm03-doctype = 'C' or zcm03-doctype = 'D'
* or zcm03-doctype = 'I' or zcm03-doctype = 'J' ).
IF ( ZCM03-DOCTYPE = '5' OR ZCM03-DOCTYPE = '6'
OR ZCM03-DOCTYPE = '8'
OR ZCM03-DOCTYPE = 'C' OR ZCM03-DOCTYPE = 'D'
OR ZCM03-DOCTYPE = 'I' OR ZCM03-DOCTYPE = 'J'
OR ZCM03-DOCTYPE = 'E' ).
*Modified by royzhang 20100311 Adj.Doc. send release. begin
CLEAR P_REASON.
CLEAR P_REALEASE.
P_REASON = 'Reason'.
P_REALEASE = 'Realease'.
IF SCREEN-GROUP1 = 'REA'.
SCREEN-INVISIBLE = 0.
ENDIF.
IF SCREEN-GROUP2 = 'SON'.
SCREEN-INPUT = 1.
ENDIF.
ELSE.
IF SCREEN-GROUP1 = 'TTT'.
SCREEN-INVISIBLE = 1.
ENDIF.
ENDIF.
****lbg200804100937.add.en
* Elven add for Production order to Goods Transfer
IF ZCM03-DOCTYPE ='4' .
IF SCREEN-GROUP1 ='P2T'.
SCREEN-INVISIBLE = 0.
ENDIF.
IF SCREEN-GROUP1 ='POD'.
SCREEN-INPUT = 1.
ENDIF.
ELSEIF ZCM03-DOCTYPE = '1' OR ZCM03-DOCTYPE = '2' OR
ZCM03-DOCTYPE = '3' OR ZCM03-DOCTYPE = 'A' OR"ariel add 'A'
ZCM03-DOCTYPE = 'H'.
IF SCREEN-GROUP1 = 'QTY'.
SCREEN-INVISIBLE = 0.
ENDIF.
ELSEIF ZCM03-DOCTYPE = 'K' OR ZCM03-DOCTYPE = 'L'. "ECHO100619
IF TRANSACTION EQ 'U' AND SCREEN-NAME = 'ZCM03-COMMENTTEXT'.
SCREEN-INPUT = 0.
SCREEN-REQUIRED = 0.
ENDIF.
ENDIF.
IF ZCM03-DOCTYPE = 'K' OR ZCM03-DOCTYPE = 'L'.
IF SCREEN-NAME = 'ORDERNO'.
RDERNO = 'RMA#'.
ENDIF.
IF SCREEN-NAME = 'COMMENT'.
COMMENT = 'Serial#'.
ENDIF.
ELSE.
IF SCREEN-NAME = 'ORDERNO'.
RDERNO = 'Order'.
ENDIF.
IF SCREEN-NAME = 'COMMENT'.
COMMENT = 'Comment'.
ENDIF.
ENDIF.
* Elven add for Production order to GoodsTRANSFER20070106END
*Elven 20070106 add.
IF SCREEN-GROUP1 = 'KOS'.
*Ting 090715 begin
IF ZCM03-DOCTYPE <> '5' AND ZCM03-DOCTYPE <> '6'
AND ZCM03-DOCTYPE <> '7' AND ZCM03-DOCTYPE <> '8' AND
ZCM03-DOCTYPE <> 'B'
*Ting 090715 end
*Echo 20091112.add.sn
AND ZCM03-DOCTYPE <> 'E'
*Echo 20091112.add.en
*Echo 20090812.add.SN
AND ZCM03-DOCTYPE <> 'C' AND ZCM03-DOCTYPE <> 'D'
*Echo 20090812.add.EN
* and zcm03-doctype <> '14' and zcm03-doctype <> '15'.
*Rena 20091230 add
AND ZCM03-DOCTYPE <> 'I' AND ZCM03-DOCTYPE <> 'J'.
SCREEN-INPUT = '0'.
ELSE.
SCREEN-INPUT = '1'.
SCREEN-REQUIRED = '1'.
ENDIF.
ENDIF.
*Elven 20070106 add end.
***LBG20080411.ADD.SN
***lbg200903131738.edit.sn
DATA:L_PLANT LIKE ZCM04-WERKS.
IF G_OBJECT EQ SPACE.
CONCATENATE 'DOCTYPE' ZCM03-DOCTYPE INTO G_OBJECT.
CONDENSE G_OBJECT.
ENDIF.
L_CNT = 0.
SELECT SINGLE WERKS INTO L_PLANT FROM ZCM04
WHERE DOCNUMBER = ZCM03-DOCNUMBER.
SELECT COUNT(*) INTO L_CNT FROM ZMM048
WHERE WERKS = L_PLANT AND BJECT = G_OBJECT
AND VALUE = 'ACTIVE'.
IF L_CNT > 0 AND " EQ 'Y' edit->NE '' AND NE 'R'
( ZCM03-RELSTATUS NE '' AND ZCM03-RELSTATUS NE 'R' ).
IF SCREEN-GROUP2 = 'SON' OR SCREEN-GROUP3 = 'SON'.
SCREEN-INPUT = 0.
ENDIF.
ENDIF.
***LBG20080411.ADD.EN
***Aiking 20080505 add.
IF ZCM03-DOCTYPE ='14' OR ZCM03-DOCTYPE ='15'.
IF SCREEN-GROUP3 ='CUS'.
* screen-input = '1'."JACK MARK 081017
* SCREEN-REQUIRED = '1'.
* screen-VALUES_IN_COMBO = '1'.
ENDIF.
IF SCREEN-GROUP1 ='CUS'.
* screen-invisible = 0.
ENDIF.
ELSE.
IF SCREEN-GROUP1 ='CUS'.
SCREEN-INVISIBLE = 1.
ENDIF.
ENDIF.
***Aiking 20080505 add end.
***Aiking 20080704 add.
IF ZCM03-DOCTYPE ='16' OR ZCM03-DOCTYPE ='17'.
IF SCREEN-GROUP3 ='VDR'.
SCREEN-INPUT = '1'.
SCREEN-REQUIRED = '1'.
ENDIF.
IF SCREEN-GROUP1 ='VDR'.
SCREEN-INVISIBLE = 0.
ENDIF.
ELSE.
IF SCREEN-GROUP1 ='VDR'.
SCREEN-INVISIBLE = 1.
SCREEN-VALUES_IN_COMBO = '1'.
ENDIF.
ENDIF.
***Aiking 20080704 add end.
ENDIF.
*Candy 20090922 control password field appear
IF F_PWD = 'Y' AND SCREEN-GROUP1 ='PWD'.
IF SCREEN-NAME = 'S_PWD'.
SCREEN-INPUT = 1.
SCREEN-INVISIBLE = 1.
ELSE.
SCREEN-INVISIBLE = 0.
ENDIF.
ELSEIF F_PWD = 'N' AND SCREEN-GROUP1 ='PWD'.
IF SCREEN-NAME = 'S_PWD'.
SCREEN-INPUT = 0.
ENDIF.
SCREEN-INVISIBLE = 1.
ENDIF.
IF F_PWD = 'Y' AND SCREEN-GROUP1 ='PWD' AND TRANSACTION = 'D'.
IF SCREEN-NAME = 'S_PWD'.
SCREEN-INPUT = 0.
ENDIF.
SCREEN-INVISIBLE = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE. " modify_header_screen_attrib OUTPUT
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14397246/viewspace-666150/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/14397246/viewspace-666150/