Skip to Content
avatar image
Former Member

Quantity not Updating - BAPI_CONTRACT_CREATEFROMDATA

Hi,

I tried to create contract using the BAPI_CONTRACT_CREATEFROMDATA. The document is created but the quantity fields are not getting populated. I have passed the quantity to the field TARGET_QTY and its unit to TARGET_QU in the table parameter CONTRACT_ITEMS_IN. The corresponding fields in the CONTRACT_ITEMS_INX is also filled and passed I to update indicator field.

Can you please help me to sort out this issue.

Regards,

Jeffin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 28, 2015 at 09:36 AM

    Hi,

    Are you getting any error message in RETURN table? Did you pass  CONTRACT_HEADER_IN,  CONTRACT_HEADER_INX  and  CONTRACT_PARTNERS also correctly?

    R

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Jeffin,

      I hope you did not miss COMMIT WORK/BAPI_TRANSACTION_COMMIT after the main BAPI call.

      Run a incomplete check from VA42 and see by passing those field as well. Please get back to us with the code snippet.

      R