‎2008 Jun 28 2:26 PM
Dear Gurus,
To do delivery with reference to saleorder i m using bapi BAPI_DELIVERYPROCESSING_EXEC which is working fine if there is a single line item in salesorder.
But If i want to do delivery for multiple line items of sales order and when i m using the above bapi it is creating delivery document with only one line item of salesorder..i need the delivery document with all items which are there in salesorder...please helpme out in this..
Thanks in advance
Raj
‎2008 Jun 28 2:36 PM
Raj,
you have to use this bapi in loop enloop statement in which your all item data are contained.
loop at itab."itab contain all itam data
call bapi.
endloop.either you can try with these also:
BAPI_OUTB_DELIVERY_CREATE_SLS Generates Delivery for Customer Order
BAPI_OUTB_DELIVERY_CREATE_STO Generates Delivery for Stock Transport Order
Amit.
‎2008 Jun 28 2:47 PM
Hi Amit,
I have tried it by keeping bapi in the loop..its not working....can you send me the sample code if you have..it vl be more helpfull for me..
Regards,
Raj
‎2008 Jun 28 3:00 PM
Raj,
Sorry i havnt any code right now.
you have to look in debug is the all item data are coming in loop and are they assing to BAPI correctly?
Amit.