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

ok code

Former Member
0 Likes
476

hi gurus.......

what are the various types of ok code??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
437

ok code is nothig but the user-command .

http://help.sap.com/saphelp_47x200/helpdata/en/d1/801e61454211d189710000e8322d00/frameset.htm

in a general program we can create the user-commands in the pf-status and we also use the standard user commands means okcodes.

in the module pool program we can create them by specifying in the FCODE

in the BDC it is created by the system itself.

3 REPLIES 3
Read only

Former Member
0 Likes
438

ok code is nothig but the user-command .

http://help.sap.com/saphelp_47x200/helpdata/en/d1/801e61454211d189710000e8322d00/frameset.htm

in a general program we can create the user-commands in the pf-status and we also use the standard user commands means okcodes.

in the module pool program we can create them by specifying in the FCODE

in the BDC it is created by the system itself.

Read only

Former Member
0 Likes
437

It depends on your program/transaction.

You check the PF-STATUS of the program, or any function codes in the screen.

Check it.

Regards

Vijay Babu Dudla

Read only

Former Member
0 Likes
437

Hi Diana,

OK_CODE is like the SY-UCOMM in the simple report.

Whenever you press any button or if you press enter, OK_CODE is filled with the value.

Example of OK_CODE:

http://www.sap-basis-abap.com/abap/purpose-of-ok-code-in-dialog-program.htm

Check this link for the list of OK_CODES:

http://sap.ionelburlacu.ro/abap/sap2/OK_Code_Values.html

Regards,

Chandra Sekhar