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: 

bdc_okcode

Former Member
0 Kudos

Hi Experts,

Could you tell me how can I know the different values of <b>"BDC_OKCODE"</b>? And what do they mean?

For eg., If BDC_OKCODE = /0 then we have to press "ENTER".

thank you very much.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You are thinking the other way.Its like when you press ENTER then BDC_OKCODE = /0.

Generally BDC_okcode can be anything,but it usually is /0 or =00 .

You can do the recording of the transaction from tcode SHDB & find out the BDC_okcode for that particular screen for any transaction.

OR

You can write /H ie debugging the screen & press enter,then you find the value of sy-ucomm.

4 REPLIES 4

Former Member
0 Kudos

The values for BDC_OKCODE depends on the screen for which you are writing the BDC...These can have any value which is defined as function codes in the PF_STATUS attached to a particular screen....

Also as you rightly said /00..simulates and enter being pressed or /04 means clicking F4...

more comments from others....

Thanks,

Renjith

Former Member
0 Kudos

Hi,

You are thinking the other way.Its like when you press ENTER then BDC_OKCODE = /0.

Generally BDC_okcode can be anything,but it usually is /0 or =00 .

You can do the recording of the transaction from tcode SHDB & find out the BDC_okcode for that particular screen for any transaction.

OR

You can write /H ie debugging the screen & press enter,then you find the value of sy-ucomm.

0 Kudos

thanks to all.

Former Member
0 Kudos

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

<b>pls reward points if helpful</b>

Message was edited by: chandrasekhar jagarlamudi