2007 Mar 16 1:16 PM
Hi All,
Can u clarify how data is transfered in screen programming. as we dont write any write statement in screen programming.
i know that it will compare the screen field names with abap variables. so can anyone clarify in this point.
if i was right or wrong can any one make me clear how data is going to transfer.
Thanks
T.Ramana Prasad
2007 Mar 16 1:25 PM
&----
*& Module pool ZBHMOD2 *
*& *
&----
*& *
*& *
&----
REPORT ZBHMOD2.
DATA: OKCODE1 TYPE SY-UCOMM,
OKCODE2 TYPE SY-UCOMM,
ENAME(10) TYPE C,
DNAME(10) TYPE C.
MODULE STATUS_1000 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT1'.
ENDMODULE. " STATUS_1000 OUTPUT
MODULE STATUS_1001 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'TIT2'.
ENDMODULE. " STATUS_1001 OUTPUT
MODULE USER_COMMAND_1000 INPUT.
CASE OKCODE1.
WHEN 'BACK'.
SET SCREEN '0'.
WHEN 'NEXT'.
DNAME = ENAME.
SET SCREEN '1001'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1000 INPUT
MODULE USER_COMMAND_1001 INPUT.
CASE OKCODE2.
WHEN 'BACK'.
SET SCREEN '1000'.
ENDCASE.
ENDMODULE. " USER_COMMAND_1001 INPUT
FORM ON_CTMENU_FORM USING ZDEMO1 TYPE REF TO CL_CTMENU.
CALL METHOD ZDEMO1->LOAD_GUI_STATUS
EXPORTING
PROGRAM = 'ZDEMO1'
STATUS = 'ZDEMO1'
MENU = ZDEMO1.
ENDFORM. " ON_CTMENU_FORM
FLOW LOGIC:
PROCESS BEFORE OUTPUT.
MODULE STATUS_1000.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1000.
PROCESS BEFORE OUTPUT.
MODULE STATUS_1001.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_1001.
hi,
this is a simple program to move dat from screen to screen.
regards,
bharat.
2007 Mar 16 1:43 PM
Hi,
You are correct.
The screen fields and abap variables compare their names and the data would be passing screen variables to abap variables and vice-versa.
If not, you have to do manually in PBO event or PAI event.
Screen flow logic will be stroed into Screen LUW and it will be passing to list programming.
Regards
Bhupal Reddy