<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BAPI_CONTRACT_CREATEFROMDATA - Item Configuration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912154#M57301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I know what type of Data that we need to pass for Configuration data like what is the OBJ_key and the rest of the values. Because I am passing all the values just like the way it has explained here and I am not able to see the data for the configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2006 22:32:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-08T22:32:49Z</dc:date>
    <item>
      <title>BAPI_CONTRACT_CREATEFROMDATA - Item Configuration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912151#M57298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a problem with the bapi BAPI_CONTRACT_CREATEFROMDATA. I try to pass item configuration data for multiple items, but when I check the created contract, the configuration is not set up correctly. The values in the configuration for item &amp;gt;= 20 are taken from the confuguration of item 10. In the contract_cfgs_value table the values are set correctly for the items &amp;gt;= 20. I also fill the tables contract_cfgs_ref, contract_cfgs_inst, contract_cfgs_refinst.&lt;/P&gt;&lt;P&gt;I've tried several options with different values for config_id, posex and inst_id fields in the cfg* tables, but nothing seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 10:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912151#M57298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T10:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA - Item Configuration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912152#M57299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is some code for filling values for the create sales order bapi.  I am assuming it is similar for the contract bapi.  My guess is that you are missing the root_id and maybe the inst_id.  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT epordc ASSIGNING &amp;lt;epordc&amp;gt; WHERE itemno = &amp;lt;epordd&amp;gt;-itemno.
  IF first_time IS INITIAL.
*   ORDER_CFGS_REF
    bapicucfg-posex      = &amp;lt;epordd&amp;gt;-itemno.
    bapicucfg-config_id  = &amp;lt;epordd&amp;gt;-itemno.
    bapicucfg-root_id    = &amp;lt;epordd&amp;gt;-itemno.
    APPEND bapicucfg.

*   ORDER_CFGS_REFINST
    bapicuref-posex     = &amp;lt;epordd&amp;gt;-itemno.
    bapicuref-config_id = &amp;lt;epordd&amp;gt;-itemno.
    bapicuref-inst_id   = &amp;lt;epordd&amp;gt;-itemno.
    APPEND bapicuref.

*   ORDER_CFGS_INST
    bapicuins-config_id  = &amp;lt;epordd&amp;gt;-itemno.
    bapicuins-inst_id    = &amp;lt;epordd&amp;gt;-itemno.
    bapicuins-obj_type   = 'MARA'.
    bapicuins-class_type = '300'.
    bapicuins-obj_key    = matnr_int.
    APPEND bapicuins.

    first_time = 'X'.
  ENDIF.

* ORDER_CFGS_VALUE
  bapicuval-config_id = &amp;lt;epordd&amp;gt;-itemno.
  bapicuval-inst_id   = &amp;lt;epordd&amp;gt;-itemno.
  bapicuval-charc     = &amp;lt;epordc&amp;gt;-charname.
  bapicuval-value     = &amp;lt;epordc&amp;gt;-charval.
  APPEND bapicuval.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 14:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912152#M57299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T14:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA - Item Configuration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912153#M57300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was a good push in the right direction. I had filled the root_id &amp;amp; inst_id, but not all with the same values. Plus I had tried passing on several tables to the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It now seems to work, but have to check with different options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ciao,&lt;/P&gt;&lt;P&gt;Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2005 16:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912153#M57300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-10T16:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA - Item Configuration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912154#M57301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I know what type of Data that we need to pass for Configuration data like what is the OBJ_key and the rest of the values. Because I am passing all the values just like the way it has explained here and I am not able to see the data for the configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 22:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata-item-configuration/m-p/912154#M57301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T22:32:49Z</dc:date>
    </item>
  </channel>
</rss>

