Ansicht
Dokumentation

REAJ_ADJ_ROUND - Rounding During Adjustment

REAJ_ADJ_ROUND - Rounding During Adjustment

RFUMSV00 - Advance Return for Tax on Sales/Purchases   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

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.

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.

Notes for Developers






General Data in Customer Master   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 3893 Date: 20240523 Time: 214431     sap01-206 ( 50 ms )