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 LIST

Former Member
0 Kudos

Hai all,

I need BDC OKCODE Value List.

For example:

OKCODE Value for NEW ENTRIES in table fields.

PERFORM bdc_field USING 'BDC_OKCODE' '=NPE'.

Please give me the list of BDC OKCODE Value and function of like '=NPE'.

Regards

Naga

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos

Hi,

it depends on Transaction to Transaction, if you want to find you can simply Record the Transaction and Find the OKCODE associated.

Regards

vijay

andreas_mann3
Active Contributor
0 Kudos

hi,

another is 'NEWL'

but look in menu painter (e.g. of trans. sm30)

go to - object list - function list

A.

0 Kudos

Thanks, Andreas.

Your reply is really helpful.

But I still have a question:

When coding using BDC OKCODE, some of those function codes require a "=" sign prefix, while others requires the '/' sign.

Let's take a look at PA30, for example:

PERFORM bdc_field USING 'BDC_OKCODE' '=INS'. " for Create

PERFORM bdc_field USING 'BDC_OKCODE' '/E'. " for Cancel

I don't see this info in the Menu Painter (trans. SE41).

How can I know, without recording using SHDB, what is the required prefix for each function code?

Thanks,

Isaac

aris_hidalgo
Contributor
0 Kudos

Hi,

You can record your transaction via SHDB then from there you could know the ok-code.

Regards!

Former Member
0 Kudos

Hi,

I think u can not know all BDC OKCODE vales,coz it depend on TCode. Every TCode have their own BDC OKCode, and u can know it by record it using SHDB.

Regards,

Former Member

Hi Nagarajan,

to know the ok-code for any action, just type /h in the command box n then click on the button for which u need the ok-code.. in the debugger, c the value of sy-ucomm.this gives the ok-code for that botton...

regards..