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 and BDC_CURSOR ?

Former Member
0 Kudos

hello everybody.

in bdc, what is the purpose of bdc_okcode and bdc_cursor,

while refering the book, i got the answer

bdc_okcode to save the bdc data

bdc_cursor to position the cursor.

but i am not clear with that answer.

please guide me

9 REPLIES 9

dani_mn
Active Contributor
0 Kudos

HI,

BDC_OKCODE: is used for storing commands during the recording. like '/00' is the command for 'ENTER' Key.

BDC_CURSOR: 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,

Wasim Ahmed

Former Member
0 Kudos

hello sir,

where we use bdc_cursor and bdc_okcode?

0 Kudos

Hi,

BCD_OKCODE is used for giving some optoins such as triggering the event such as 'SAVE', 'ENTER' , 'PAGEUP', 'PAGEDOWN'.

whre as BDC_CURSOR is used to fill the data in the fields in the transaction while executing.

cheers,

SImha.

dani_mn
Active Contributor
0 Kudos

Hi,

we use these fields in data uploading through recording.

the transaction is 'SHDB' for making recording for transaction. and then transfer these recordings to a program for mass uploading of data.

Here i have paste a sample code where bdc_cursor and bdc_okcode is used in recording.

<b>

    perform bdc_field       using 'BDC_CURSOR'
                                  'PROJ-PSPID'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.

</b>

for details on BDC recordings go through the following link and you will have all details.

http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html

Regards,

Wasim Ahmed

0 Kudos

CAN U GIVE ME DETAILS OF ALL THE BDC_OKCODE.....

SUCH AS ...'/00'...FOR ENTER

..............I NEDD BADLY...

Former Member
0 Kudos

Hi,

i am fresher in ABAP programing, could u plz tell me What are the BDC Methods?

and differences between them?

plz reply me.....

Thanx

Former Member
0 Kudos

Hi,

There are two methods in BDC -

1. Session method, in which a session that is created using the data from the file can be processed in SM35.

Function modules : BDC_OPEN_GROUP, BDC_INSERT and BDC_CLOSE_GROUP are used to create a session for BDC.

The advantage of session method over the other method is that you can have multiple calls of the same transaction in one session and process this session in one stretch using SM35.

2. Call transaction method, in which the transaction is called directly as follows:

CALL TRANSACTION 'TCODE' using it_bdcdata, where it_bdcdata is the internal table of type bdcdata filled with data from the file for upload.

Check the following link for more information.

http://www.sapdevelopment.co.uk/bdc/bdchome.htm

Reward points if this is helpful.

Regards,

Kayal Priyadarshini

Message was edited by:

Kayal Priyadarshini

Former Member
0 Kudos

Hi again,

Very thanx for your help, but plz ignore me i don't know how to give points?

or how to mark it as question plz help me? and u r self also...

What are the 'ranges'?

what is 'DRILL_DOWN' report?

What are the abap commands linked to 'layout set'?

How do we debug "SAP SCRIPT"?

What are select-options?

plz help me.

Reply fast......plzzzzzzzzzz

former_member735409
Participant
0 Kudos

U can find The ok code for The buttons, just put clik the buttons, and hold then press fl button in keybord,

and click the technical Attributs, there u can find the okcode.

if it is useful dont forget to give the point.

Regards

Justin