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 LIST

Former Member
0 Likes
12,128

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
Read only

Former Member
0 Likes
4,474

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

Read only

andreas_mann3
Active Contributor
0 Likes
4,474

hi,

another is 'NEWL'

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

go to - object list - function list

A.

Read only

0 Likes
4,474

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

Read only

aris_hidalgo
Contributor
0 Likes
4,474

Hi,

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

Regards!

Read only

Former Member
0 Likes
4,474

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,

Read only

Former Member
4,474

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..