Define Calculation Formula for Migration of Subsidies
Customizing Activity
REFXMI_BADI_CALCSUBS
Define Calculation Formula for Migration of Subsidies
Document
Document Class
SIMG
Hypertext: Object Class - Class to which a document belongs.
Document Name
REFXMI_BADI_CALCSUBS
Use
In Classic RE, you could specify separately for each condition that a part of the rent was not paid by the master tenant but by another party, called a subsidizer. The part of the rent paid by the subsidizer was specified either as a percentage or by a specific amount. The remaining amount of the condition was then charged to the master tenant.
During the migration, the system migrates conditions, for which there is or was a subsidy agreement, as follows:
The system creates a condition with condition purpose I - Statistical. The amount of this condition is the same as the amount of the condition being migrated.
A second condition is created, this time with the condition purpose SUBS -Subsidy, Share of Subsidizer. This condition either relates to the first condition (percentage of the first condition, calculation formula E1 - % Share of Condition), or it has a fixed amount.
A third condition is created with condition purpose A - Actual Rent. The amount of this condition is the difference between the first and second conditions. This condition amount is invoiced to the master tenant. The calculation formula for this condition is ZSUB Subsidy (BAdI).
You have to implement the calculation formula using a BAdI. SAP provides an example implementation (class CL_EXM_IM_RECD_CALC_RULE_SUBS). You have to create an implementation of the BADI_RECD_CALC_RULE BAdI that is identical to the example implementation, and then activate your copy. Otherwise, after the migration, the system does not calculate the share of the master tenant for contracts that are subsidized. For information on implementing the BAdI, see SAP Note 996300. Also refer to the documentation for the example implementation.
Requirements
Standard settings
Activities
If you have at least one contract for which a subsidy was agreed, and you migrate this contract automatically, then proceed as described above. If you have at least one contract with such a subsidy agreement in Classic RE, then the system issues a warning in the log of the step Analyze Dataset.