2013 Feb 15 9:35 PM
Hi
We have used BAPI function module BAPI_SALESDOCUMENT_COPY to create sales order with reference to Invoice but this function module is considering all the line items of invoice.
My requirement is to create order with reference to few line items of invoice so i am trying use BAPI function module BAPI_SALESORDER_CREATEFROMDAT2
by passing below parameters but I am not able to create order with ref to Invoice
At Header level i am passing values to fields refdoctype,doc_type ,sales_org ,distr_chan,division ,ref_1 and updation flags at header level.
At item Level ref_doc ,ref_doc_it and updation flags at item level.
Passing ship to and sold to party for Partners.
Thanks in advance.
Regards
Srilaxmi
Hi
We have used BAPI function module BAPI_SALESDOCUMENT_COPY to create sales order with reference to Invoice but this function module is considering all the line items of invoice.
My requirement is to create order with reference to few line items of invoice so i am trying use BAPI function module BAPI_SALESORDER_CREATEFROMDAT2
by passing below parameters but I am not able to create order with ref to Invoice
At Header level i am passing values to fields refdoctype,doc_type ,sales_org ,distr_chan,division ,ref_1 and updation flags at header level.
At item Level ref_doc ,ref_doc_it and updation flags at item level.
Passing ship to and sold to party for Partners.
Thanks in advance.
Regards
Srilaxmi
2013 Feb 18 10:41 AM
2013 Feb 18 10:51 AM
First read Note 370988 - BAPIs in SD: Creation with reference and use search tool, this question was already posted a number of times.
Regards,
Raymond
2013 Feb 18 11:04 AM
Hi Srilaxmi,
use this
BAPI_SALESDOCU_CREATEFROMDATA1.
check the below link
https://scn.sap.com/thread/1143317
Regards,
Gurunath
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |