‎2009 Nov 19 12:18 PM
Hi
I have a program in which the input to selection screen
1. REFERENCE ORDER
2. MATERIAL
Need s FM /BAPI which will create a sales order with refernce and also for that particular material in which all the pricing is copied correctly .
Please suggest it will be very helpfull.
‎2009 Nov 19 12:27 PM
Hi
To create the sales order using the referance sales order.
First get the referace sale order data using BAPI_SALESORDER_GETDETAILBOS.
using the BAPI_SALESORDER_CREATEFROMDAT2 create the new sales order by passing the getdetails bapi str.
Regards,
Raghu.
‎2009 Nov 19 12:22 PM
hi,
use
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
‎2009 Nov 19 12:27 PM
Hi
To create the sales order using the referance sales order.
First get the referace sale order data using BAPI_SALESORDER_GETDETAILBOS.
using the BAPI_SALESORDER_CREATEFROMDAT2 create the new sales order by passing the getdetails bapi str.
Regards,
Raghu.
‎2009 Nov 19 12:27 PM
Hi,
You can try this FM "BAPI_SALESDOCUMENT_COPY".
Regards,
Aditya