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,

When we record by using SHDB, there r many BDC_OKCODEs in the screens, with different values like, /00, /11, OK, AKP etc.!

So,

1- I hv to copy and use all the bdc_okcodes in my se38 program, which i got in recording?

2-Is it that, depending on the requirement, I hv to chosse i.e. practising trail&error method?

3-Actually, How to know, these values meanings i.e. Where can I see the meanings of the bdc_okcodes?

4- Or by experience, one can know, Which okcode shuld use? which okcode shuld not?

ThaNQ.

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

1- I hv to copy and use all the bdc_okcodes in my se38 program, which i got in recording?

Yes, you can copy and use all BDC_OKCODEs from recording based on your requirement recording step by step.

3-Actually, How to know, these values meanings i.e. Where can I see the meanings of the bdc_okcodes?

You can go to transaction SE41 and select function list option in order to see all OK_CODEs available for SAP program that you are dealing for BDC purposes.

4- Or by experience, one can know, Which okcode shuld use? which okcode shuld not?

Again, the best way is to do recording using SM35 in order to know all OK_CODEs required for a SAP transaction based on your requirement.

Regards,

Ferry Lianto

8 REPLIES 8

Former Member
0 Kudos

There is a way to find the BDC ok codes. just findout the screen and press

F1 on any field and in that click on Technical info .in technical info u

can see GUI status of the screen and double click on that u will go to

display status of that Gui status in that click functional keys there u can

find all the OK_codes u required.

Regards,

Amey

Former Member
0 Kudos

Use all the OK Code that you get in the recording to perform the same way in your se38 Program.

Shreekant

Former Member
0 Kudos

If you are doing a batch input, you have to put everything that is in the recording...

If you want to know what each of those does, you can run the transaction manually while reading what you recorded, that will give you an idea of what de BDC_OKCODE is doing

Former Member
0 Kudos

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.

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

I hope this will help you.

Regards,

Amey

0 Kudos

Actually i m unable to find ok code for double click BDC_OKCODE .

If I found ok code for double click my prob will be resovled.

0 Kudos

Hi pradeep,

Perhaps this info can help you?

Calling Modules after Cursor Selection

You can specify that a module should only be called if the cursor is positioned on a particular screen element. To do this, use the statement

MODULE <mod> AT CURSOR-SELECTION.

The module <mod> is called whenever the function code of the user action is CS with function type S. If you use this statement, it is best to assign the function code CS to function key F2. This also assigns it to the mouse double-click.

Found via url:

[url]http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm

ferry_lianto
Active Contributor
0 Kudos

Hi,

1- I hv to copy and use all the bdc_okcodes in my se38 program, which i got in recording?

Yes, you can copy and use all BDC_OKCODEs from recording based on your requirement recording step by step.

3-Actually, How to know, these values meanings i.e. Where can I see the meanings of the bdc_okcodes?

You can go to transaction SE41 and select function list option in order to see all OK_CODEs available for SAP program that you are dealing for BDC purposes.

4- Or by experience, one can know, Which okcode shuld use? which okcode shuld not?

Again, the best way is to do recording using SM35 in order to know all OK_CODEs required for a SAP transaction based on your requirement.

Regards,

Ferry Lianto

0 Kudos

ThanQ to all.