<?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_CUSTOMERCONTRACT_CHANGE for update pricing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customercontract-change-for-update-pricing/m-p/1975543#M399728</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;&amp;lt;b&amp;gt;I hope you must have carefully read the standard documnetation of this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, here it is.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION -  BAPI_CUSTOMERCONTRACT_CHANGE
____________________________________________________
Short Text
Change Customer Contract

Functionality
Using this method, you can change or delete contracts.

You can change header data, item data, schedule line data, contract data and configuration data.

In general the following applies:

1. Only enter fields that you want to change.
2. Mark the fields you want to change with an X.
3. Fill in the UPDATEFLAG field with a U.
4. Always enter the key fields when making changes, including in the checkbox list.
5. An exception is configuration. If you change this, you must fill it in completely.
6. Enter quantities and dates under schedule line data.
7. Possible update flags: U = change
                        D = delete
                        I = insert
Example
1. Delete complete contract
2. Delete contract item
3. Changes to contract
4. Change configuration
Notes
1. Minimum entries required:
You MUST enter the contract number in the SALESDOCUMENT structure.
You must always enter key fields when you make a change.
You must always enter the update indicator in the INQUIRY_HEADER_INX.
2. Commitment control
The BAPI does not carry out a database commit. This means that the calling application must leave the commit in order to have changes made to the database. BAPI_TRANSACTION_COMMIT is available for this purpose.
Parameters
SALESDOCUMENT
CONTRACT_HEADER_IN
CONTRACT_HEADER_INX
SIMULATION
BEHAVE_WHEN_ERROR
INT_NUMBER_ASSIGNMENT
LOGIC_SWITCH
RETURN
CONTRACT_ITEM_IN
CONTRACT_ITEM_INX
PARTNERS
PARTNERCHANGES
PARTNERADDRESSES
CONDITIONS_IN
CONDITIONS_INX
CONTRACT_CFGS_REF
CONTRACT_CFGS_INST
CONTRACT_CFGS_PART_OF
CONTRACT_CFGS_VALUE
CONTRACT_CFGS_BLOB
CONTRACT_CFGS_VK
CONTRACT_CFGS_REFINST
CONTRACT_TEXT
CONTRACT_DATA_IN
CONTRACT_DATA_INX
CONTRACT_KEYS
EXTENSIONIN

Exceptions
Function Group
2034&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward suitable points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 13:18:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T13:18:14Z</dc:date>
    <item>
      <title>BAPI_CUSTOMERCONTRACT_CHANGE for update pricing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customercontract-change-for-update-pricing/m-p/1975542#M399727</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 BAPI_CUSTOMERCONTRACT_CHANGE BAPI FM for update a contract. &lt;/P&gt;&lt;P&gt;In some case, the whole contract has not changed, I want only to recalculate the item prices because the items pricing conditions were changed (using transactions VK11/VK12). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does the job when filling the field PRICE_DATE in CONTRACT_HEADER_IN &amp;amp; CONTRACT_HEADER_INX params. BUT only is the precedent value of this date was different in the contract. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of forcing the pricing calculation in the contract (using this FM) even if the contract itself was not changed.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Gilbert Cohen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 12:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customercontract-change-for-update-pricing/m-p/1975542#M399727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T12:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CUSTOMERCONTRACT_CHANGE for update pricing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customercontract-change-for-update-pricing/m-p/1975543#M399728</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;&amp;lt;b&amp;gt;I hope you must have carefully read the standard documnetation of this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, here it is.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION -  BAPI_CUSTOMERCONTRACT_CHANGE
____________________________________________________
Short Text
Change Customer Contract

Functionality
Using this method, you can change or delete contracts.

You can change header data, item data, schedule line data, contract data and configuration data.

In general the following applies:

1. Only enter fields that you want to change.
2. Mark the fields you want to change with an X.
3. Fill in the UPDATEFLAG field with a U.
4. Always enter the key fields when making changes, including in the checkbox list.
5. An exception is configuration. If you change this, you must fill it in completely.
6. Enter quantities and dates under schedule line data.
7. Possible update flags: U = change
                        D = delete
                        I = insert
Example
1. Delete complete contract
2. Delete contract item
3. Changes to contract
4. Change configuration
Notes
1. Minimum entries required:
You MUST enter the contract number in the SALESDOCUMENT structure.
You must always enter key fields when you make a change.
You must always enter the update indicator in the INQUIRY_HEADER_INX.
2. Commitment control
The BAPI does not carry out a database commit. This means that the calling application must leave the commit in order to have changes made to the database. BAPI_TRANSACTION_COMMIT is available for this purpose.
Parameters
SALESDOCUMENT
CONTRACT_HEADER_IN
CONTRACT_HEADER_INX
SIMULATION
BEHAVE_WHEN_ERROR
INT_NUMBER_ASSIGNMENT
LOGIC_SWITCH
RETURN
CONTRACT_ITEM_IN
CONTRACT_ITEM_INX
PARTNERS
PARTNERCHANGES
PARTNERADDRESSES
CONDITIONS_IN
CONDITIONS_INX
CONTRACT_CFGS_REF
CONTRACT_CFGS_INST
CONTRACT_CFGS_PART_OF
CONTRACT_CFGS_VALUE
CONTRACT_CFGS_BLOB
CONTRACT_CFGS_VK
CONTRACT_CFGS_REFINST
CONTRACT_TEXT
CONTRACT_DATA_IN
CONTRACT_DATA_INX
CONTRACT_KEYS
EXTENSIONIN

Exceptions
Function Group
2034&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward suitable points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Atul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 13:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customercontract-change-for-update-pricing/m-p/1975543#M399728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T13:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_CUSTOMERCONTRACT_CHANGE for update pricing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customercontract-change-for-update-pricing/m-p/1975544#M399729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atul, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the efforts to help. &lt;/P&gt;&lt;P&gt;I have already read this help about twenty time. it doesn't answer my specific question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to trigger the recalculation of the prices in the contract. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When filling the price_date field in the header to a new date, it works. &lt;/P&gt;&lt;P&gt;My problem is that the user needs sometime to recalculate the price more than once a day. if the date I give is equal to the pricing date in the contract, the BAPI wont recalculate the prices. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a clue? &lt;/P&gt;&lt;P&gt;Thank you very much. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gilbert Cohen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 06:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-customercontract-change-for-update-pricing/m-p/1975544#M399729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T06:16:39Z</dc:date>
    </item>
  </channel>
</rss>

