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

reg: sy-ucomm

uppu_narayan
Active Participant
0 Likes
1,997

what is the value a sy-ucomm holds when we press on execute to process a selection screen and if possible give some explanation on sy-ucomm in simple words...

Moderator message: please search for available information before posting.

Message was edited by: Thomas Zloch

what is the value a sy-ucomm holds when we press on execute to process a selection screen and if possible give some explanation on sy-ucomm in simple words...

Moderator message: please search for available information before posting.

Message was edited by: Thomas Zloch

3 REPLIES 3
Read only

amy_king
Active Contributor
0 Likes
1,504

Hi Uppu,

System variable sy-ucomm holds the current user command. Pressing the execute button on a selection-screen, the sy-ucomm will have a value of ONLI (meaning "online"). You can see this for yourself by entering /h into the command field and hitting the ENTER key. This activates debugging. Then when you next interact with the selection-screen (by executing, for example) you will be brought into the debugger and you can see the value of sy-ucomm and any other variable that is part of your report.

Cheers,

Amy

Read only

Former Member
0 Likes
1,504

Hi Uppu,

SY-UCOMM is one of the fields from the system table SYST. It usually returns the function code that PAI triggered. As mentioned by AMy it hsould return 'ONLI' or 'WB_EXEC' when you press execute

Best Regards,

Swanand

Read only

Former Member
0 Likes
1,504

SY-UCOMM is the system varaible which stores function code of any button in application tool bar or any event ie., double click, hot spot

It holds the value of the user-command ...specifying the action that the user has performed.....example...when you click on the BACK/EXIT/CANCEL buttons on the toolbar, you can debug and see what value the sy-ucomm value holds on click of each of these buttons...

the user command values are specified for these buttons using the pf-status (SET PF-STATUS).

sy-ucomm will also hold the user command values of the buttons on the screens/selection screens...

When you are pressing back or save, sy-ucomm contains the function code of these buttons.