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

Former Member
0 Kudos

What is BDC_OKCODE and BDC_CURSOR? What are their use , pls explain in detail.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

terminates current batch input transaction and marks as incorrect.

キ /bdel ュ delete current batch input transaction from session.

キ /bend ュ terminate batch input processing and mark session as incorrect.

キ /bda ュ change display mode to process the session on screen instead of displaying only errors.

/bde ュ change display mode to display only errors instead of processing the session on the screen. 18

bdc_cursor:

You can set the cursor and enter as a corresponding field value the name of the field on which the cursor is to be positioned

Message was edited by:

Karthikeyan Pandurangan

4 REPLIES 4

Former Member

Former Member
0 Kudos

Few lines to understand what is BDC-OK code:

In BDC recording/program processing we pass OK Code for the User actions like ENTER or SAVE or pressing some button on screen.

so these actions will be stored in some function codes and we use them in BDC

like the sy-ucomm of ABAP programs.

You should also always initialize the OK_CODE field in an ABAP program .

In the same way that the OK_CODE field in the ABAP program and the system field SY-UCOMM receive the contents of the corresponding screen fields in the PAI event, their contents are also assigned to the OK_CODE screen field and system field SYST-UCOMM in the PBO event. Therefore, you must clear the OK_CODE field in the ABAP program to ensure that the function code of a screen is not already filled in the PBO event with an unwanted value. This is particularly important when the next PAI event can be triggered with an empty function code (for example, using ENTER). Empty function codes do not affect SY-UCOMM or the OK_CODE field, and consequently, the old field contents are transported.

The OK_CODE field can have a different name on each screen. However, common practice is to use the same name for the field on each screen of an ABAP program. You then only need one field in the ABAP program, with the same name, into which the function code is placed, and from which you can read it.

Regards,

Santosh

Former Member
0 Kudos

terminates current batch input transaction and marks as incorrect.

キ /bdel ュ delete current batch input transaction from session.

キ /bend ュ terminate batch input processing and mark session as incorrect.

キ /bda ュ change display mode to process the session on screen instead of displaying only errors.

/bde ュ change display mode to display only errors instead of processing the session on the screen. 18

bdc_cursor:

You can set the cursor and enter as a corresponding field value the name of the field on which the cursor is to be positioned

Message was edited by:

Karthikeyan Pandurangan

Former Member
0 Kudos

Hi,

<u><b>BDC_OKCODE:</b></u>

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.

<u><b>BDC_CURSOR:</b></u> contains the cursor position. it contians the field in which cursor will be. if you want to position to some specific field you can use this.

Regards,

Bhaskar