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: 

Next line item option not working in ME23N Recording

Former Member
0 Kudos

Hi Fiiends,

I was recording a BDC for ME23N all the steps are working fine except one to choose next line.

PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.

PERFORM bdc_field USING 'BDC_OKCODE' '/00'.

PERFORM bdc_field USING 'BDC_CURSOR'

'MEPO_TOPLINE-BSART'.

PERFORM bdc_field USING 'MEPO_TOPLINE-BSART' 'UB'.

PERFORM bdc_field USING 'DYN_6000-LIST'

' 1'.

Regards,

Gaurav

3 REPLIES 3

Former Member
0 Kudos

Hi,

in the recording it wont work, you have to handle Explicitely , by using the Index.

sample code.

For Ex: if system has given text(01) in the recording..if you needs to handle multiple line items write the code like below...

data:idx(2) type n value 01.

loop at it_tab.

here you needs to add multiple items..

do n times.

text (idx) = itab-value.

idx = idx + 1.

enddo.

clear: idx.

endloop.

I hope you understand my logic... if you need any clarification, let me know..

thanks,

Murali

0 Kudos

Hi muralim,

I am not having problem in selection the text item.

But the issue is

ok_code : /00 for next line is not working.

regards,

gaurav

Former Member
0 Kudos

thanx