Skip to Content
0
Former Member
May 31, 2011 at 04:12 PM

BAPI - Sales document - Copy control issues

947 Views

Hi,

I am creating a Credit memo referencing an invoice using the function "SD_SALESDOCUMENT_CREATE'.

I get the invoice pricing details using RV_INVOICE_DOCUMENT_READ. Populate the inputs manually and pass those values to SD_SALESDOCUMENT_CREATE' with the flag logic_switch-pricing set to 'G'.

I have two issues,

1. Group conditions(Freight) value is not copied from the value that is passed. Please let me know

2. pricing procedure is not copied. But I was able to overcome this by exporting the invoice pricing procedure to memory before calling the fn "SD_SALESDOCUMENT_CREATE" and importing the value in the Sales order userexit(MV45AFZZ) and change pricing procedure in tables tkomk / VBAK . Not sure if this is the correct way to implement. Please advise.

Thank You.