4、---------------MODULE DISABLE_FIELD OUTPUT. IF SY-TCODE = 'MM03'. LOOP AT SCREEN. SCREEN-INPUT = '0'. MODIFY SCREEN. ENDLOOP. ENDIF.ENDMODULE. " DISABLE_FIELD OUTPUT*&----------------------------------------------------------------
5、---*& Module GET_DATA OUTPUT*&-------------------------------------------------------------------* text*--------------------------------------------------------------------MODULE GET_DATA OUTPUT. TABLES:ZPARTAPPEND. DATA: F1 LIKE ZPARTAPPEND-F1,
6、 F2 LIKE ZPARTAPPEND-F2, W_MATNR TYPE MATNR. IF SY-TCODE = 'MM02' OR SY-TCODE = 'MM03'. GET PARAMETER ID 'MAT' FIELD W_MATNR. SELECT SINGLE * FROM ZPARTAPPEND WHERE MATNR = W_MATNR. F1 = ZPARTAPPEND-F1. F2 = ZPARTAPPEND-F2. ENDIF.ENDMODULE.