cancel
Showing results for 
Search instead for 
Did you mean: 

Create contract with reference

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hello friends,

closing this and opening a new thread.

Regards,

HR

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

Former Member
0 Kudos

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

Jelena
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Try out BAPI_SALESDOCUMENT_COPY also.