2007 Feb 21 12:29 PM
Hi all,
I am using BAPI_CUSTOMERCONTRACT_CHANGE BAPI FM for update a contract.
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).
It does the job when filling the field PRICE_DATE in CONTRACT_HEADER_IN & CONTRACT_HEADER_INX params. BUT only is the precedent value of this date was different in the contract.
Is there a way of forcing the pricing calculation in the contract (using this FM) even if the contract itself was not changed.
Thanks
Gilbert Cohen
Hi all,
I am using BAPI_CUSTOMERCONTRACT_CHANGE BAPI FM for update a contract.
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).
It does the job when filling the field PRICE_DATE in CONTRACT_HEADER_IN & CONTRACT_HEADER_INX params. BUT only is the precedent value of this date was different in the contract.
Is there a way of forcing the pricing calculation in the contract (using this FM) even if the contract itself was not changed.
Thanks
Gilbert Cohen
2007 Feb 21 1:18 PM
Hi
<b>I hope you must have carefully read the standard documnetation of this BAPI.
If not, here it is.</b>
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
2034Hope this will help.
Please reward suitable points.
Regards
- Atul
2007 Feb 22 6:16 AM
Hi Atul,
Thanks for the efforts to help.
I have already read this help about twenty time. it doesn't answer my specific question.
I need to trigger the recalculation of the prices in the contract.
When filling the price_date field in the header to a new date, it works.
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.
Do you have a clue?
Thank you very much.
Gilbert Cohen
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |