‎2008 Jun 06 8:19 AM
Hi
Please tell me what is the purpose of the system variable
sy-ucomm.
With regards
Vijay
‎2008 Jun 06 8:24 AM
This variable indicate the action that user have done. For example if user press enter sy-ucomm = '/00'.
‎2008 Jun 06 8:25 AM
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...
read more here...
http://help.sap.com/erp2005_ehp_03/helpdata/EN/7b/fb96c8882811d295a90000e8353423/frameset.htm
‎2008 Jun 06 8:25 AM
hi,
SY-UCOMM IS A system variable. It contains the latest user action triggered
Usually in ABAP programing it is a good practice not to refer to sy-ucomm directly, or sometimes we need to store a user interaction for later validation
sy-ucomm is for doing the functions what the user wishes to do at that particular event. You use it in menus and other place . this mainly in using <pfstatus>
Thanks,
Anon
‎2008 Jun 06 8:26 AM
Hi Friend,
SY-UCOMM is the system varaible which stores function code of any button in application tool bar or any event (like double click, hot spot).
When you are pressing back or save, sy-ucomm contains the function code of these buttons.
Regards
Krishnendu