Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Execute icon in screen

Former Member
0 Likes
4,306

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,563

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

5 REPLIES 5
Read only

Former Member
0 Likes
2,563

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.

Read only

Former Member
0 Likes
2,564

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

Read only

Former Member
0 Likes
2,563

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

Read only

Former Member
0 Likes
2,563

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

Read only

Former Member
0 Likes
2,563

I just had to change the next screen to 0. Thank you for your help.