Skip to Content
avatar image
Former Member

Create contract with reference

Hi,

I want to copy an existing contract (A), change some data and save the new contract (B) with reference to contract A. Therefore I want to use BAPISDORDER_GETDETAILEDLIST for reading contract A und BAPI_CONTRACT_CREATEFROMDATA to create contract B.

What do I have to do in order to set the reference to contract A?

Thanks for help.

Best Regards,

Sven Keller

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 04, 2009 at 10:18 PM

    I would assume that you'd have to put the referenced contract # in the field CONTRACT_HEADER_IN-REF_DOC.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 24, 2009 at 01:03 PM

    Hi,

    Thanks for your advices. They helped me to find the solution.

    Here the complete solution:

    You have to fill

    on header level

    CONTRACT_HEADER_IN-REF_DOC

    CONTRACT_HEADER_IN-REFDOC_CAT

    CONTRACT_HEADER_INX-REF_DOC = 'X'

    CONTRACT_HEADER_INX-REFDOC_CAT = 'X'

    on item level

    CONTRACT_ITEMS_IN-REF_DOC

    Greetings,

    Sven Keller

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2010 at 08:56 AM

    Hello friends,

    closing this and opening a new thread.

    Regards,

    HR

    Edited by: Hema Ananda Rao on Jan 13, 2010 11:01 AM

    Add comment
    10|10000 characters needed characters exceeded