2006 Oct 17 9:10 AM
Hi all,
Where do we actually pass the sy-ucomm value to the ok_code.
I get the following error when i click a menu button.
"No field defined for the function code"
Example progarm.
PROGRAM demo_dynpro_gui_status.
DATA: ok_code TYPE sy-ucomm,
save_ok LIKE ok_code,
output LIKE ok_code.
CALL SCREEN 100.
MODULE init_screen_0100 OUTPUT.
SET PF-STATUS 'STATUS_100'.
SET TITLEBAR '100'.
ENDMODULE.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE PROGRAM.
WHEN OTHERS.
output = save_ok.
ENDCASE.
ENDMODULE.
Please send your suggestions,
Rajesh.
2006 Oct 17 9:15 AM
Goto the attributes tab of your screen. There you will see an entry for OK_CODE, assign your field there.
2006 Oct 17 9:15 AM
Goto the attributes tab of your screen. There you will see an entry for OK_CODE, assign your field there.
2006 Oct 17 9:25 AM
HI,
Check with this ...
In the element list of the screen Define
OK_CODE of type "OK" .
Regards,
Santhosh
2006 Oct 17 9:40 AM