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

cursor position in bdc

Former Member
0 Likes
1,487

Dear Gurus,

I am trying to create task list components in IA05.

Since there are variable components , I have to do 'create new' for every new component. This requires position of cursor to move down the table of components.

How do I achieve this?

I was trying with :

perform bdc_dynpro using 'SAPLCPDI' '3400'.

perform bdc_field using 'BDC_CURSOR'

'PLPOD-VORNR( counter )'.

where counter is type p with 2 length.

Do I need to convert this counter to some type ?

Pls help.

Rewards are for all helpful answers

Dear Gurus,

I am trying to create task list components in IA05.

Since there are variable components , I have to do 'create new' for every new component. This requires position of cursor to move down the table of components.

How do I achieve this?

I was trying with :

perform bdc_dynpro using 'SAPLCPDI' '3400'.

perform bdc_field using 'BDC_CURSOR'

'PLPOD-VORNR( counter )'.

where counter is type p with 2 length.

Do I need to convert this counter to some type ?

Pls help.

Rewards are for all helpful answers

3 REPLIES 3
Read only

Former Member
0 Likes
873

Hi Shweta,

Could you try to set 'counter' to type N with length 2?

Regards,

John.

Read only

Former Member
0 Likes
873

Hi!

Do not waste your time with BDC_CURSOR. This command is doing nothing, but placing the cursor. But the next BDC_FIELD will move the cursor also and write the data into the field. Personally I'm removing all BDC_CURSOR commands, because they are useless.

To find out the position is requires a BDC recording (in SM35 transation). You have to fill at least 3 lines in the table, and you'll know how can you address different lines. It is mostly using the field[1], field[2], ... syntax.

In BDC recording, you have to find an exact positioning way. In most common there is a Position button somewhere in the field. Or you can try the PAGEDOWN, and CTRL+PAGEDOWN buttons to position down with one page, or to the last record.

Regards

Tamá

Read only

0 Likes
873

Thank you...your hint helped me find a way of writing at the first row itself..rather than browse down...

Regards,

Shweta Soni