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

SY-UCOMM

Former Member
0 Likes
757

Hi

Please tell me what is the purpose of the system variable

sy-ucomm.

With regards

Vijay

4 REPLIES 4
Read only

Former Member
0 Likes
725

This variable indicate the action that user have done. For example if user press enter sy-ucomm = '/00'.

Read only

Former Member
0 Likes
725

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

Read only

Former Member
0 Likes
725

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

Read only

Former Member
0 Likes
725

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