on 2020 Feb 04 9:27 AM
Dear All,
I need the BAPI to change the contract condition's calculation object for the transaction RECN,
I have tried with the BAPI BAPI_RE_RO_CHANGE, but it allow me to update condition master data. Also I have debugged found the class behind program as CL_RECD_CONDITION.
Attaching screen shot for your reference. Kindly give yours input in order to fix my issue.

Many Thanks,
Request clarification before answering.
Hi John,
The calculation objects fields are quite important since they determine to which object type the condition is related and how this condition is calculated. The latter obviously doesn't matter when you are using the Formula "A - Fixed Amount", but just to give you an example.
You have one contract with Building A and Building B. You ad condition type Basic Rent for 10.000 and use the calculation object as REC CoCd/Contract#. This means the basic rent is 10.000 for the entire contract (both buildings). When you would have used calculation object Building A you are specifying the rent for Building A being 10.000.
When the condition type hasn't been posted yet make sure to consider that when you change the calculation object the system automatically updates the Distribution Object as well which might not be desired. In the scenario where the condition type is already posted you can no longer change the calculation object anymore. It will therefor depend if you must change the calculation object or if it is ok to change this for future postings. If you can change this for future postings you can copy the condition type using a future "valid from date" and change the calculation object. Effectively by copying what you are doing is end dating the original condition type and adding the same condition type with valid from date being End Date + 1 Day.
Unfortunately there are quite a few consideration, especially if you are using IFRS16 functionality as well since the calculation object will have an impact on the valuation calculation and posting as well.
Technically changing the calculation object is one thing but you first need to be very clear on what the situation is and why you need to change this object and how (time dependently or not).
To answer your questions about the deleting. Please note that if you delete a condition type that is already posting the system will REVERSE ALL POSTINGS that have been previously posted and this will directly impact the cash flow.
I would highly recommend to work through the scenario's in detail with a functional consultant to make sure that the changes will have the desired outcome.
Regards, Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John, I'm not a technical expert but I would imagine you have to use BAPI_RE_CN_CHANGE with parameter CONDITION and structure BAPI_RE_CONDITION_DATC and use components
CALCULATION_OBJECT_TYPE and CALCULATION_OBJECT_ID.
Not sure if this helps.
Regards, Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Andre,
Thanks for your valuable comment, I have gone through your suggestion but as per SAP function module documentation those fields are key field to change any of condition record for contract. Find the screen shot for reference. I have found the way as below,
1. Reading the contract condition data using BAPI_RE_CN_GET_DETAIL
2. Deleting the condition record and insert the condition record with the help of condition table from detail BAPI and update using your above mention BAPI. Could you advise me will it impact any of my contract cash flow ?
If I do the above will it impact any of the backend step in contract. Kindly advise.

Many Thanks,
John
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.