‎2009 Nov 09 4:23 PM
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
‎2009 Nov 09 4:36 PM
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
‎2009 Nov 09 4:36 PM
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