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

Problem with BAPI_DELIVERYPROCESSING_EXEC

Former Member
0 Likes
1,186

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

3 REPLIES 3
Read only

Former Member
0 Likes
679

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.

Read only

0 Likes
679

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

Read only

0 Likes
679

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.