cancel
Showing results for 
Search instead for 
Did you mean: 

Return Order - BAPI

Former Member
0 Kudos

Hi ,

We have issue in creating a return order referencing an invoice using BAPI. The BAPI creates the return order but the prices/items(Copy control) is not copied from the reference document(Billing doc) . Could you please advise.

Thank You.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gerard,

Thank you for your response. It helped a lot!!!!!!!!

I am trying to create credit memo referencing an invoice using SD_SALESDOCUMENT_CREATE. the problem I have is that the pricing procedure of the invoice is not copied to the credit memo request . SD_SALESDOCUMENT_CREATE does not have any fields for pricing procedure and I cannot pass the reference dcoument pricing procedure. Please help...

Shiva_Ram
Active Contributor
0 Kudos

Maintain the copy control settings from billing to return order in t.code VTAF. You can refer the standard return order RE from F2 document type settings. Then create a new document and check.

Regards,

Former Member
0 Kudos

Hi,

Thank you for your response.

The copy controls are mainatianed and it works if I create a return order using "VA01" transaction. But if I try to create a return order from Ecommerce using a BAPI , the copy control does not work..

former_member131745
Product and Topic Expert
Product and Topic Expert
0 Kudos

Unfortunately I have to tell you that in the standard the copy rules

that are defined are not considered in the BAPI case:

Please check the follwoing 2 notes:

Note 414058 - CHECKLISTSD: differences in online and BAPI

Reason and Prerequisites

Missing functions:

....

4. Create with reference, no copying control

Note 550726 - FAQ: BAPIs in sales - restrictions

7. Question: Do BAPIs support the 'Creation with reference' function?

Answer:No. However, you can update the document flow, for example,

for contracts by specifying reference documents.You can use function

module BAPI_SALESDOCUMENT_COPY that has not been released to create

a 1:1 copy of sales documents.

In your case, I recommend you use the function module mentioned above

(BAPI_SALESDOCUMENT_COPY).

In addition, if you use the BAPI above, please consider using the

Pricing Type 'G', which will reference the conditions without changing

them, only redetermining the tax condition values.

I hope this helps.

Gerard