‎2007 Sep 25 11:41 PM
I am new to screen painter. I created a screen with some fields and table control. I dont see the execute icon on the screen. How to add it? I set the PF-STATUS such that the back, exit and cancel buttons can be seen.
‎2007 Sep 26 12:36 AM
Hi,
do the following..
1) Double click on the status..It will take you to the GUI status
2) Expand the application toolbar tree..
3) In the ITEMS 1 - 7 section...In the first text box..GIve the function code EXECUTE or you can give your own function code.
4) Press enter.
5) Choose the static text radion button in the popup.
6) Press Enter to continue
7) Give the function text "Execute"
😎 In the Icon name give ICON_EXECUTE_OBJECT.
9) Press enter
10) Choose an function key..
11) Activate the GUI ..
THanks
Naren
‎2007 Sep 26 12:32 AM
What is your requirement? If you need to add EXECUTE button to your custom screen, you need to add the same if pf-status and handle the respective event in User command module.
‎2007 Sep 26 12:36 AM
Hi,
do the following..
1) Double click on the status..It will take you to the GUI status
2) Expand the application toolbar tree..
3) In the ITEMS 1 - 7 section...In the first text box..GIve the function code EXECUTE or you can give your own function code.
4) Press enter.
5) Choose the static text radion button in the popup.
6) Press Enter to continue
7) Give the function text "Execute"
😎 In the Icon name give ICON_EXECUTE_OBJECT.
9) Press enter
10) Choose an function key..
11) Activate the GUI ..
THanks
Naren
‎2007 Sep 26 12:47 AM
Ok I have now been able to do that. But how do I code such that it displays a result. I tried this but it never works.
MODULE user_command_0100 INPUT.
IF sy-ucomm = 'BACK' OR
sy-ucomm = 'EXIT' OR
sy-ucomm = 'CALL'.
LEAVE PROGRAM.
ENDIF.
IF sy-ucomm = 'EXECUTE'.
WRITE 'Hello World'.
ENDIF.
ENDMODULE. "user_command_0100 INPUT
‎2007 Sep 26 12:50 AM
Hi,
If you want to display the results as a list..
Then do the following..
IF sy-ucomm = 'EXECUTE'.
LEAVE TO LIST-PROCESSING. " This goes to list..
WRITE 'Hello World'.
ENDIF.
Thanks
Naren
‎2007 Sep 26 12:50 AM
I just had to change the next screen to 0. Thank you for your help.