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

BDC_OKCODE for batch jobs

Former Member
0 Likes
1,119

Hi everyone

I am modifying an existing program that creates a batch job. Does anybody know what the possible values are for the BDC_OKCODE field eg. /00, BACK, =PDE3 and so on. I see that they tend to relate to function codes from the Gui status - is there an easy way to find out what they do?

Thanks

Andy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
885

Hi Andrew,

BDC_OKCODE identifies the command field.

it can use function key number or function code

/ for function key number and = for function code

'/3' -->Back function key

'/15'-->Quit function key

'/11'--> save

All functions in menus and buttons are identified by function codes.

Regards,

Ferry Lianto

Please reward points if helpful.

6 REPLIES 6
Read only

Former Member
0 Likes
885

hi Andrew,

hi Andrew try doing recording from sm35 or shdb for that particular transaction ... that is the only way to find the okcodes ..

Regards,

santosh

Read only

Former Member
0 Likes
885

Hi,

To find the all the GUI OK CODES ,from that transaction just goto Menu SYSTEM --> STATUS. Double click on the GUI Satus in the Screen, U will find all the Function codes Used.

Read only

Former Member
0 Likes
885

Click on any field of the screen and hit F1. Then double click on the Status field. Now you can see all the function keys etc.

Read only

Former Member
0 Likes
885

Hi Andrew,

Please check table RSMPTEXTS.

Enter program name and language key then check values of field OBJ_CODE for all function code/BDC_OKCODE.

Also you can go to menu painter (SE41) to find BDC_OKCODE value for corresponding program.

Enter program name, select function list option and click on diplay. The list of function codes are the BDC_OKCODE.

Hope this will help.

Regards,

Ferry Lianto

Read only

0 Likes
885

Thanks for your replies, that is a big help - can anyone explain, though, what the '=' and '/' slash notation mean eg:

'/EBACK'

'=PBES'

'/00'

'=/00'

Also, some of these codes do not appear in the methods you have provided eg neither of the '00' options above, why would this be?

Thanks

Andy

Read only

Former Member
0 Likes
886

Hi Andrew,

BDC_OKCODE identifies the command field.

it can use function key number or function code

/ for function key number and = for function code

'/3' -->Back function key

'/15'-->Quit function key

'/11'--> save

All functions in menus and buttons are identified by function codes.

Regards,

Ferry Lianto

Please reward points if helpful.