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

Delivery order by batch input

Former Member
0 Likes
478

Hi, I've to create several Outbound deliverys without order and i'm trying to do this by batch input. I'm already create my abap program, header data is all right but when i do a loop of an internal table to put items in order nothing happen. this is a copy of part of program:

PERFORM bdc_dynpro USING 'SAPMV50A' '1000'.

PERFORM bdc_field USING: 'BDC_OKCODE' '/00',

'BDC_SUBSCR' 'SAPMV50A',

'BDC_CURSOR' 'KUWEV-KUNNR',

'KUWEV-KUNNR' p_kunnr,

'BDC_CURSOR' 'LIKP-WADAT',

'LIKP-WADAT' sy-datum,

'BDC_SUBSCR' 'SAPMV50A'.

CLEAR indx.

LOOP AT lt_dados INTO ls_dados.

indx = indx + 1.

PERFORM bdc_dynpro USING 'SAPMV50A' '1102'.

PERFORM bdc_field USING: 'BDC_OKCODE' '/00',

'BDC_SUBSCR' 'SAPMV50A',

'BDC_CURSOR' 'LIPS-MATNR(indx)',

'LIPS-MATNR(indx)' ls_dados-matnr.

ENDLOOP.

PERFORM bdc_transaction TABLES lt_dados USING 'VL01NO'

'X'

p_modo

'L'.

Can somebody help me ? Thanks

1 ACCEPTED SOLUTION
Read only

former_member191735
Active Contributor
0 Likes
384

Have you tried recording the transaction first? if not please record the transaction from SHDB and then create your program. You can then loop through the items and fill the BDC table.

If yes, may be the problem with table control . Search forum for BDC for table control there are 100s of examples or threads on this

Edited by: Sampath Kumar on Nov 9, 2009 9:37 AM

1 REPLY 1
Read only

former_member191735
Active Contributor
0 Likes
385

Have you tried recording the transaction first? if not please record the transaction from SHDB and then create your program. You can then loop through the items and fill the BDC table.

If yes, may be the problem with table control . Search forum for BDC for table control there are 100s of examples or threads on this

Edited by: Sampath Kumar on Nov 9, 2009 9:37 AM