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

WHAT IS THE DIFFERENCE BETWEEN OK-CODE AND SY-UCOMM

Former Member
0 Likes
1,655

CAN ANY BODY HELP ME REGARDING THIS.

THANK YOU

PRATHAP

7 REPLIES 7
Read only

Former Member
0 Likes
899

Hi prathap,

1. No difference.

2. Any user code (action done by user on the screen)

gets captured in the system variable sy-ucomm.

3. In our module pool, we declare another variable,

okcode,

which automatically contains the user command,

ie. sy-ucomm.

regards,

amit m.

Read only

gopi_narendra
Active Contributor
0 Likes
899

Both are the same

Regards

- Gopi

Read only

former_member404244
Active Contributor
0 Likes
899

Hi Pratap,

There is no such difference between SY-UCOMM and OKcode.

Sy-ucomm is system defined variable and okcode we declare variable.In module pool instead using sy-ucomm we use okcode .

Regards,

nagaraj

Read only

Former Member
0 Likes
899

CHECK THIS LINK

http://www.sap-img.com/abap/sy-ucomm-and-ok-code-in-dialog-program.htm

HOPE THIS WILL SATISFY U.

REGARDS,

VIKRAM DEV

Read only

Former Member
0 Likes
899

Hi Prathap ,

This has already been answered , please check the link

Read only

Former Member
0 Likes
899

Both are same, But ok_code is user defined varaible to handle the user actions, instead of using the system variable sy-ucomm.

Regards

Vijay

Read only

Former Member
0 Likes
899

Hi

Both are same. Sy-ucomm is a system field in to which fct code of a pushbutton will get stored when you click on the push button. In module pool program you will store this sy-ucomm data in a user defined variable called ok code, using this variable you will code the program.

Regards

Haritha.