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

Former Member
0 Likes
671

Difference between BDC_OKCODE and BDC_CURSOR ?

6 REPLIES 6
Read only

Former Member
0 Likes
650

Hi,

Check these threads:

Read only

Former Member
0 Likes
650

Hi Skaik,

Let me explain with a simple example,

<b>

BDC_OKCODE </b>: is used for the mouse movements like enter, scrolling etc..

<b>BDC_CURSOR</b> : is used to point to a particular field. Ex: 'BDC_CURSOR' 'RMMG1-MATNR' places your cursor in that particular field.

Reward if useful.

Thanks

Aneesh.

Read only

Former Member
0 Likes
650

Hi,

BDC_OKCODE : For capturing the function code (Either through mouse or Function Keys of the keyboard ....... choosing a particular menu path, pressing a particular pushbutton, pressing a particular function key, F8 etc. ). You would process your logic based on the OKCODE. You can decide which screen to come next if user presses enter or presses some additional information option from menu etc.

BDC_CUSRSOR - For placing the cursor in a particular field. It is like SET CURSOR so that you could place the cursor in a particular field when the screen is displayed.

Regards,

Srilatha.

Read only

Former Member
0 Likes
650

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.

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.

perform bdc_field using 'BDC_CURSOR'

'PROJ-PSPID'.

perform bdc_field using 'BDC_OKCODE'

'=BU'.

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

Reward me if its usful

Regards

Ravi

Read only

Former Member
0 Likes
650

BDC_OKCODE: Is the code which set the Instruction to be carried out

BDC_CURSOR: Is to set the cursor in the screen

Read only

Former Member
0 Likes
650

Hi,

u can check this link where lot of information is avialable.

http://www.abapprogramming.blogspot.com