07-25-2005 8:29 AM
how to find OK CODE values for all like page up page down
etc any pgm to view all possible ok code values.
07-25-2005 8:35 AM
Hello,
sy-ucomm will contain the values for the ok code.
Regards,
Shekhar Kulakrni
07-25-2005 8:37 AM
You can just put your cursor on the relevant button and hit F1. You will find its ok-code (function code) value.
07-25-2005 8:36 AM
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.
07-25-2005 8:39 AM
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.
07-25-2005 8:40 AM
Hi,
You can see the ok_codes for a standard report from tr.code se41, program SAPMSSY0, status STLI.
Svetlin
07-25-2005 8:58 AM
07-25-2005 10:00 AM
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