Hierarchy

⤷

⤷

IMG Activity
ID | REAJ_ADJ_ROUND | Rounding During Adjustment |
Transaction Code | S_EE6_85000181 | (empty) |
Created on | 20110802 | |
Customizing Attributes | REAJ_ADJ_ROUND | Rounding During Adjustment |
Customizing Activity | REAJ_ADJ_ROUND | Rounding During Adjustment |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_REAJ_ADJUSTMENT_ROUND |
Use
The Business Add-In (BAdI) supports the control of some rounding settings when you execute the standard functions for adjustments of conditions without your writing program code.
Requirements
Standard settings
Activities
Create a BAdI implementation and implement the method GET_ROUNDING_CONTEXT. Then activate the BAdI implementation.
For information on using BAdIs, see this documentation.
Caution: The implementation of the method has to be independent of the interface. It must not contain any COMMIT WORK or ROLLBACK WORK statements. For example, direct output of messages using the MESSAGE statement is not allowed.
Parameter Description
- ID_ADJMRULE and ID_ADJMSUBRULE
The ID_ADJMRULE (combined adjustment rule) and ID_ADJMSUBRULE (adjustment rule) parameters contain the adjustment rules that the implementation is dependent on.
- IF_INDX_THRESHOLD_PERCENTAGE and IF_INDX_PROPORTION_POINTS
Using these parameters, the rounding times are reported to the method:
- IF_INDX_THRESHOLD_PERCENTAGE
- The percentage difference in conjunction with the minimum change in percent is calculated in the standard system with 8 decimal places as follows: Percentage change = (new index level / last index level) * 100 - 100. The system can round this value if you set the parameters CD_ROUNDTYPE, CD_ROUNDDECIMAL and CD_ROUNDUNIT.
- IF_INDX_PROPORTION_POINTS
- In the standard system, the new unit price is calculated to 6 decimal places as follows:
- New unit price = last unit price * (new index level / last index level). However, you might sometimes want to round the quotient (new index level / last index level) before multiplying. You can achieve this by settings the CD_ROUNDTYPE, CD_ROUNDDECIMAL and CD_ROUNDUNIT parameters.
- CD_ROUNDTYPE
Returns the rounding type. Possible values are:
- No rounding = 0
- There is no rounding.
- Round down = 1
- The relevant number is rounded downward. For this option, you also have to enter the number of decimal places or the rounding unit.
- Round up = 2
- The relevant number is rounded upward. For this option, you also have to enter the number of decimal places or the rounding unit.
- Arithmetic = 3
- The relevant number is rounded using arithmetic rounding. For this option, you also have to enter the number of decimal places or the rounding unit.
- CD_ROUNDDECIMAL
Defines the number of decimal places to which the system rounds.
- CD_ROUNDUNIT
Defines the unit to which the system rounds.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 1 | Critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20110802 |
SAP Release Created in | 606 |