‎2008 Feb 21 6:47 AM
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
‎2008 Feb 21 7:09 AM
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
‎2008 Feb 23 10:14 AM
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
‎2008 Feb 21 7:25 AM
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.