Skip to Content
author's profile photo Former Member
Former Member

BAPI_CONTRACT_CREATEFROMDATA contract Va41

Hi,

I am using BAPI BAPI_CONTRACT_CREATEFROMDATA to create contract . It is working fine.


Since I have created a contract but i could not able to add a line item for the already created contract or existing contract .


I tried passing the created contract as reference no but still it is giving me error as "ENTER THE DOCUMENT TYPE" .

What is the way to change the existing contract.?

Regards,

Vijay

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 18, 2015 at 10:57 AM

    Hi,

    Pass all the values again in the same parameters and pass the Document no in SALESDOCUMENTIN, where in updateflag should be 'U'.

    Also You can try BAPI BAPI_CUSTOMERCONTRACT_CHANGE.

    Hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI Gaurav,

      This Bapi is working fine when I try to insert the item values for the created contract .

      In return parameter i am getting success message like contract saved .

      But BAPI transaction Commit is not giving me dump.

      When an Open SQL array insert is performed, trying to insert a record

      into the database causes the function to terminate if a record with the

      same key already exists.

      The database table was "VBPA" item values are not saved in VBPA .

      SO i could not able to save.

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.