SAP ABAP IMG Activity REFX_RESR_CALC_RENT (Implement Enhancements (BAdI): Calculation of Sales-Based Rent)
Hierarchy
EA-FIN (Software Component) EA-FIN
   RE-FX (Application Component) Flexible Real Estate Management
     RE_CA_CU (Package) RE: Customizing (IMG) and Area Menu
IMG Activity
ID REFX_RESR_CALC_RENT Implement Enhancements (BAdI): Calculation of Sales-Based Rent  
Transaction Code S_PEN_05000409   (empty) 
Created on 20050623    
Customizing Attributes REFX_RESR_CALC_RENT   Calculation of Sales-Based Rent 
Customizing Activity REFX_RESR_CALC_RENT   Calculation of Sales-Based Rent 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name RESR_CALC_RENT    

Use

The Business Add-In (BAdI)

  • Makes it possible to change the sales-based rent of a sales rule that was calculated in the standard system
  • Gets the behavior context for the calculation of sales-based rent

The following methods are available. They are executed by the system during sales-based settlement.

  • CALCULATE - change the standard calculation of sales-based rent

    The transfer parameters are:

    • IO_CONTRACT - object reference on the contract. You use this parameter for calling the API_RE_CN_GET_DETAIL function module, if you need additional data from the contract.
    • ID_RPTERMNO - number of the reporting rule
    • ID_RHYTHMTYPE - frequency type of the reporting rule (sales report or certified sales)
    • IS_SETTLPERIOD - settlement period
    • IS_CALCINCOMPLETE - attributes for pro rata calculations (shortened settlement periods)
    • IT_SALESREPORT - sales reports within the settlement period
    • IS_CALCBASE - attributes of sales rule
    • IT_SALESGRADING - sales grading

      Parameters that can be changed are:

    • CD_SALESRENTNET - calculated net amount of sales-based rent
    • CT_CALCDETAIL - details of the calculation. The details are stored as part of the sales-based rent settlement. They can be printed later in correspondence.
    • CT_MESSAGES - additional messages for the log

      Net sales-based rent and the details for the calculation contain the values determined using the standard procedure.

      If there is an error message among the messages returned, the system marks the calculation as incorrect. When the BAdI method is called, the CT_MESSAGES parameter is always blank.

  • GET_BEHAVIOR_CONTEXT - gets the behavior context for the calculation of sales-based rent

    The transfer parameters are:

    • IO_OBJECT- Generic object reference
    • IS_SRSEPERIOD - List with settlement periods
    • IS_CALCRULE - calculation rule for sales rule
    • IS_SETTLRHYTHM    - Assignment of a frequency rule to the sales rule
    • ID_RHYTHMTYPE - Frequency type

      Parameters that can be changed are:

    • CF_PRORATE_AT_BEGIN - Prorated calculation at contract start

      If you want the gradings to be considered on a prorated basis at the start of the contract within the first settlement period, then create a Business Add-In implementation for this, and set the changing parameter to CF_PRORATE_AT_BEGIN = 'X' in the method GET_BEHAVIOR_CONTEXT.

      Note:
      If the amounts were already defined as prorated when the gradings were created, you are not allowed to set CF_PRORATE_AT_BEGIN to 'X'.
      The BAdI method is only called if the frequency start of the sales rule is not INITIAL and the 'Frequency Start' date is before the rental start date.

Requirements

Standard settings

Activities

Create a BAdI implementation and implement the methods you require for your enhancement. Then activate the BAdI implementation.

Note that when implementing the BAdI you are not allowed to use statements that affect the interface, such as direct output of messages using MESSAGE.

Notes for Developers

Example

Business Attributes
ASAP Roadmap ID 153   Design enhancements 
Mandatory / Optional 3   Nonrequired activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20101011 
SAP Release Created in 600