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: 

double click in batch

Former Member
0 Kudos

hi,

loop at itab.

c = c + 1.

  • if sy-tabix eq 1.

add_bdc 'SAPLCPDI' '1010' '' ''.

add_bdc '' '' 'BDC_OKCODE' '/00'.

add_bdc '' '' 'RC271-PLNNR' itab-plnnr.

add_bdc '' '' 'RC271-WERKS' ''."itab-werks.

add_bdc '' '' 'RC271-STTAG' '01052010'.

Data:vornr like plpod-vornr,

v type i,

z(2),x(2).

vornr = itab2-vornr.

v = vornr.

v = v / 10.

x = v.

CONCATENATE '0' x INTO z.

Data:txt(100).clear:txt.

CONCATENATE 'PLPOD-LTXA1(' z ')' INTO txt.

add_bdc 'SAPLCPDI' '1400' '' ''.

add_bdc '' '' 'BDC_OKCODE' '=PICK'.

UNPACK itab2-vornr to itab2-vornr.

add_bdc '' '' 'BDC_CURSOR' txt.

endloop.

I thought that when cursor is on the specified row, it picks up it, but id does not do as i think, always double clicks on the first row, 0010 item, how can i do it for the 0020 for example?

thanks

1 REPLY 1

Former Member
0 Kudos

Hi mate,

please try the following:

instead of positioning the cursor in a row and then launch okcode '=PICK', set the row you want to double-click into field 'RC27X-ENTRY_ACT', enter okcode '/00' (enter). This will scroll the table control to the selected entry. Finally, 'pick' the first displayed row, as you already do.

I hope this helps. Kind regards,

Alvaro