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

Posting delivery using bapi using user_exit

Former Member
0 Likes
576

Hi All,

I want to create delivery based on sales order using user_exit UserExit_Save_document. How to approach for this.please help me regarding this.

Thanks,

Venkatesh

3 REPLIES 3
Read only

Former Member
0 Likes
527

Hi,

Please do the fallowing steps.

1. Find and call the BAPI function module to create delivery document

2. Define header and item internal table with the reference of that function module (Theses are mandatory parameters in function module).

3. Pick the item details from the sales order (VA01) using NAST-OBJKY as sales order number into item internal table.

4. Fill the header internal table with the required data.

5. Pass these internal tables into BAPI function module.

Reward if it is useful.

Please let me know if this logic fails.

Regards,

Bhanu

Read only

0 Likes
527

Hi

Thankyou for your quick response .where i have to write that

code imean is it in user_exit or in report

thanks and regards

venky

Read only

Former Member
0 Likes
527

HI, As per my understanding you want to create Delivery within the sales order using BAPI. It is not possible as the sales order is locked at this point of time and when you create delivery there will be certain information that gets updated in the sales order, so this lock prevents you from saving Delivery. Possible solution is to check the feasibility of auto delivery when a sales order is created/changed.