<?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: Error while using BAPI_CUSTOMERCONTRACT_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573986#M1433239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    For changing the parner details,you need to fill the table partnerchanges with the update flg as "U' and you dont need to fill the table partners.&lt;/P&gt;&lt;P&gt;\&lt;/P&gt;&lt;P&gt;check out the following sample for filling up partnerchnages table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 

    LOOP AT partnerchanges.
      CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'
        EXPORTING
          input  = partnerchanges-partn_role
        IMPORTING
          output = partnerchanges-partn_role.
      partnerchanges-updateflag = 'U'.
       MODIFY  partnerchanges TRANSPORTING updateflag.
    ENDIF.
    ENDLOOP.

 CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
      EXPORTING
        salesdocument       = salesdocument
        contract_header_in  = contract_header_in
        contract_header_inx = contract_header_inx
        logic_switch        = logic_switch
      TABLES
        return              = return
        contract_item_in    = contract_item_in
        contract_item_inx   = contract_item_inx 
        partnerchanges      = partnerchanges
        conditions_in       = conditions_in
        conditions_inx      = conditions_inx
        contract_text       = contract_text.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vigneswaran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2010 12:23:11 GMT</pubDate>
    <dc:creator>former_member491305</dc:creator>
    <dc:date>2010-02-08T12:23:11Z</dc:date>
    <item>
      <title>Error while using BAPI_CUSTOMERCONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573985#M1433238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;    I requirement is to change partner no. at headerlevel in a contract. I have used BAPI_CUSTOMERCONTRACT_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have passed all the required parameters and showing success message as (ex., Fixed Bid Contract 2056 has been saved) in &lt;/P&gt;&lt;P&gt;debugging,after execution it is giving an error as 'update was terminated' (in ST22 this was the error &lt;/P&gt;&lt;P&gt;SAPSQL_ARRAY_INSERT_DUPREC) . I am just updating the existing contract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to resolve my issue.........	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jayasree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 12:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573985#M1433238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-08T12:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_CUSTOMERCONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573986#M1433239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    For changing the parner details,you need to fill the table partnerchanges with the update flg as "U' and you dont need to fill the table partners.&lt;/P&gt;&lt;P&gt;\&lt;/P&gt;&lt;P&gt;check out the following sample for filling up partnerchnages table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 

    LOOP AT partnerchanges.
      CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'
        EXPORTING
          input  = partnerchanges-partn_role
        IMPORTING
          output = partnerchanges-partn_role.
      partnerchanges-updateflag = 'U'.
       MODIFY  partnerchanges TRANSPORTING updateflag.
    ENDIF.
    ENDLOOP.

 CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
      EXPORTING
        salesdocument       = salesdocument
        contract_header_in  = contract_header_in
        contract_header_inx = contract_header_inx
        logic_switch        = logic_switch
      TABLES
        return              = return
        contract_item_in    = contract_item_in
        contract_item_inx   = contract_item_inx 
        partnerchanges      = partnerchanges
        conditions_in       = conditions_in
        conditions_inx      = conditions_inx
        contract_text       = contract_text.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vigneswaran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 12:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573986#M1433239</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2010-02-08T12:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_CUSTOMERCONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573987#M1433240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vigneswaran,&lt;/P&gt;&lt;P&gt;     what is the use of FM CONVERSION_EXIT_PARVW_INPUT here??&lt;/P&gt;&lt;P&gt;do we need to pass the parameters P_NUMB_OLD and P_NUMB_NEW in partnerchnages table??&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;Jayasree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 12:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573987#M1433240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-08T12:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using BAPI_CUSTOMERCONTRACT_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573988#M1433241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,You need to pass New partner number(P_NUMB_NEW)  mandatory.But not necessary to populate old partner number (P_NUMB_OLD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function module is used to convert the external role into intenal partner role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: "BP" will hav to be passed as "RE" to the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vigneswaran S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2010 13:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-using-bapi-customercontract-change/m-p/6573988#M1433241</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2010-02-08T13:11:13Z</dc:date>
    </item>
  </channel>
</rss>

