2014 Feb 25 5:44 PM
I am using this function to copy sales order documents...but i need to update pricing also...can anyone suggest how to do this..
or suggest any other bapi through which can be achieved.
I am using this function to copy sales order documents...but i need to update pricing also...can anyone suggest how to do this..
or suggest any other bapi through which can be achieved.
2014 Feb 25 6:40 PM
Hello,
If you want to create with reference to old sales order than you try below way.
BAPI_SALESORDER_CREATEFROMDAT2
In item structure ORDER_ITEMS_IN,
REF_DOC = 'old sales order number'
REF_DOC_IT = 'old sales order item number'
REF_DOC_CA = 'C' sales order.
If you want to create without reference than you can try as below.
1. Collect the data for the reference document with the 'BAPISDORDER_GETDETAILEDLIST' function module.
2. Create the sales document using the 'BAPI_SALESORDER_CREATEFROMDAT2' function module by transferring the prepared data.
4. Finally, you must remove a COMMIT WORK so that the sales document can be written into the database.
For this you can check below link which has example for your ref.
2014 Feb 25 9:27 PM
Hi,
Sometimes is better to use BAPI...GET and BAPI...CREATEFROMDAT, but if You need to make slighty small modfication You can modify target document in exit (ex in MV45AFZZ)..
Regards,
Jarek
2014 Feb 26 8:00 AM
Hi Bhargava,
BAPI_MATVAL_PRICE_CHANGE
PRICES_CHANGE & PRICES_POST
BAPI_M_REVAL_CREATEPRICECHANGE
BAPI_MATERIAL_SAVEDATA
These are the fm's to save or change material price.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |