<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935233#M1600129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you creating the contract or updating the existing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If updating, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get the contract details using - BAPI_CONTRACT_GETDETAIL&lt;/P&gt;&lt;P&gt;Pass all the tables and data to the - BAPI_CONTRACT_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the tables - PARTNER and corresponding update field flags in PARTNERX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call BAPI to commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THis should work for updating the partner info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI - BAPI_CONTRACT_CREATEFROMDATA is "Not Released" by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pranu Pranu on Jun 17, 2011 4:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 14:58:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-17T14:58:31Z</dc:date>
    <item>
      <title>BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935230#M1600126</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 am Using a BAPI BAPI_CONTRACT_CREATEFROMDATA for Updating the Partners in the Contract documents by passing 'U' in the field Update_flag of the structure BAPISDHD1X.&lt;/P&gt;&lt;P&gt;I am facing an issue as in the BAPI Return table I am getting messages : S document saved successfully&lt;/P&gt;&lt;P&gt;                                                                                S No data was changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help or give me a solution to update only partners in the Contract documents(VA42).&lt;/P&gt;&lt;P&gt;Also please let me know any other BAPIs that can be used to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bhargav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 13:25:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935230#M1600126</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2011-06-17T13:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935231#M1600127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhargav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to commit your work before the changes are saved.  Use the following code after your BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = 'X'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 14:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935231#M1600127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-17T14:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935232#M1600128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, I am using test sequence in the FM Execution... First BAPI is Contract Update&lt;/P&gt;&lt;P&gt;Second BAPI is Commit. I am already using it.  Any other suggestions are always welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhargav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 14:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935232#M1600128</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2011-06-17T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935233#M1600129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you creating the contract or updating the existing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If updating, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get the contract details using - BAPI_CONTRACT_GETDETAIL&lt;/P&gt;&lt;P&gt;Pass all the tables and data to the - BAPI_CONTRACT_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the tables - PARTNER and corresponding update field flags in PARTNERX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call BAPI to commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THis should work for updating the partner info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI - BAPI_CONTRACT_CREATEFROMDATA is "Not Released" by SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pranu Pranu on Jun 17, 2011 4:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 14:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935233#M1600129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-17T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935234#M1600130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ECC 5.0 I dont have the BAPI_CONTRACT_CHANGE in my system. Please suggest any thing else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhargav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 07:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935234#M1600130</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2011-06-20T07:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CONTRACT_CREATEFROMDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935235#M1600131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to update contract order number then u use following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
      EXPORTING
        i_bapi_view            = i_bapi_view
      TABLES
        sales_documents        = sales_documents
        order_headers_out      = order_headers_out
        order_items_out        = order_items_out
        order_contracts_out    = order_contracts_out
        order_billingplans_out = order_billingplans_out
        order_billingdates_out = order_billingdates_out
        order_partners_out     = order_partners_out
        order_conditions_out   = order_conditions_out.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
EXPORTING
SALESDOCUMENT = p_vbeln
* ORDER_HEADER_IN =
order_header_inx = ls_order_header_x
 LOGIC_SWITCH = logic_switch
tables
return = lt_return
CONDITIONS_IN = lt_cond
CONDITIONS_INX = lt_cond_x
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 08:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-contract-createfromdata/m-p/7935235#M1600131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-20T08:15:27Z</dc:date>
    </item>
  </channel>
</rss>

