04-20-2007 9:26 PM
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.
04-20-2007 9:37 PM
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
04-20-2007 9:30 PM
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
04-20-2007 9:31 PM
Use all the OK Code that you get in the recording to perform the same way in your se38 Program.
Shreekant
04-20-2007 9:31 PM
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
04-20-2007 9:37 PM
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
02-29-2008 3:44 PM
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.
05-28-2008 10:17 AM
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
04-20-2007 9:37 PM
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
04-20-2007 11:11 PM