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

Passing Header Data in BAPI_CONTRACT_CREATE from BODS

Hi all,

I am new to BODS.

I am trying to create contract using BAPI_Contract_Create from BO-Data Services XI 3.2 to ECC 6.0.

In the New Function Call, while defining the "Input Parameters" for Header (and HeaderX), I can only select single column. Actually I should be able to pass multiple values for header data. For example fields like company code, document type, vendor etc. are mandatory entries.

Please let me know how to pass multiple values in the header data provided as varchar (10) in BODS.


Pradeep Kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 06, 2012 at 10:49 PM

    Could you elaborate where you get stuck?

    I would start by creating a table with all the contract fields that you want to load. Then you create a query that has this table as a source, and create a function call to 'BAPI_CONTRACT_CREATE' in the target column. When I look at that in BODS 3.2, I see the individual fields e.g. NUMBER as varchar(10), COMP_CODE as varchar(4). By mapping the columns from that source table to the input parameters of you function, you should be able to create the contracts. The SAP supplement for BODS also comes with additional documentation.

    Alternatively, you might want to look at the Best Practices for Data Migration. This is a package that contains jobs that allow loading objects like Contracts to ECC. SAP Note 1613550 has more information on that and a lot of documentation. These jobs use an IDoc load instead of a BAPI call and work well with minor modifications for the respective environment.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      The behavior you describe seems to me like you are not doing anything wrong. Instead, it seems like the BAPI is not correctly imported.

      If I look at my import parameters for BAPI_CONTRACT_CREATE, I see






      Please try to Reimport the BAPI - Right-click on SAP_REPO->Functions->BAPI_Contract_Create and select Reimport from the context menu. If that does not change anything, maybe try the same thing in a fresh repository or ask a colleague to do the same if possible.

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.