Skip to Content

Copy price agreement from contract to order via bapi

Hi ,

I have a problem in copying the price the agreement from contract to sales order

I am using the BAPI "BAPI_SALESORDER_CREATEFROMDAT2" to create the sales order wrt contract.

and passing the ref as below.

wl_bapi_header-ref_doc = fi_viqmel-kdauf.

wl_bapi_header-refdoc_cat = 'G'.

ls_detail-ref_doc = fi_viqmel-kdauf.

ls_detail-ref_doc_it = fi_viqmel-kdpos.

ls_detail-ref_doc_ca = 'G'.


the issue is the price agreement is not getting captured in sales order from contract.


please advise.


regards,

GURU

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 09, 2016 at 12:44 PM

    AFAIK the SD BAPIs don't support copy with reference, reference document only update the document flow. (Ref: 550726 - FAQ: BAPIs in sales - Restrictions)


    Hint: Did you read the multiple similar threads on creation of SO with reference to quote or contract, I fear you have to copy the data yourself from database selected from the contract/quote, with the help of FM like MAP2E_VBAPKOM_TO_BAPISDITM or customer FM created with transaction BDBS.


    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.