Application Development 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: 

how to view OK CODE VALUES

Former Member
0 Kudos

how to find OK CODE values for all like page up page down

etc any pgm to view all possible ok code values.

7 REPLIES 7

Former Member
0 Kudos

Hello,

sy-ucomm will contain the values for the ok code.

Regards,

Shekhar Kulakrni

0 Kudos

You can just put your cursor on the relevant button and hit F1. You will find its ok-code (function code) value.

Former Member
0 Kudos

Hi Karthik,

I don't think there's anything called <i>possible ok-code values</i>. Any ok-code value is possible. Depends on what the code in the PAI module(s) is. Technically, you can even have ok-code values when there's no button with that function code in any screen. However this is not generally practised for obvious reasons.

You can go to SE80, give the program name and see what are all the GUI statuses that the program uses. That will give you the information about the various ok-codes in the toolbars. But if your program has got some buttons on the screens as well, then I don't think there's any utility which will tell you about all those function-codes.

Any particular reason why you want to have this information ?

Regards,

Anand Mandalika.

former_member182371
Active Contributor
0 Kudos

Hi,

if you´re referring to a tablecontrol just do tha data declaration as a global variable:

DATA: ok_code LIKE sy-ucomm.

and then add the ok_code variable to the table control in the corresponding tab (it must be the last variable declared, see elements of dynpro in se51).

Best regards.

Former Member
0 Kudos

Hi,

You can see the ok_codes for a standard report from tr.code se41, program SAPMSSY0, status STLI.

Svetlin

Former Member
0 Kudos

since accenture asked me more specfically,anyother solutions.

Former Member
0 Kudos

The best option is to do something in the transaction and simultaneously use the recording transaction "SHDB".

The recording would give you the exact OK-Codes ... I guess u need it for BDC programming.

Regards,

Gaurav