2012 Sep 20 6:16 PM
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
2012 Sep 20 6:47 PM
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
2012 Sep 20 6:56 PM
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
2012 Sep 20 8:38 PM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |