SAP® Documentation

Single view

/NAM/ISM_AM_CL_HEIGHT_ROUNDING - Disjunction ID ISM_AM_HEIGHT_ROUNDING

PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The Class implementation is used to perform Rounding of Height.

1. Select Rounding data for UOM / BU / CC / DT.

2. If Step 1 fails, Select Rounding data for UOM / BU / CC.

3. If Step 2 fails, Select Rounding data for UOM / BU.

4. Perform rounding if a rule is found.

5. Get lower rounding target and upper rounding target based on rounding value.

6. Check whether or not ROUNDING_THRESHOLD is initial.

Upward rounding should be applied if ROUNDING_UP_DOWN (Rounding up/down) is (+ UP)

Downward rounding should be applied if ROUNDING_UP_DOWN (Rounding up/down) is (-DOWN).

If THRESHOLD is not initial, then upward rounding or downward rounding should be applied as per following rules.

  • If the upward rounding indicator is set, then the actual height will be rounded up unless
    actual ad height ≤ lower rounding target + threshold.

  • If the downward rounding indicator is set, then the actual height will be rounded down unless actual ad height ≥ upper rounding target threshold.

  • To get the upward rounded value, the actual height is divided by the rounding step. The value obtained is ceiled using the ceil function. The value thus obtained is multiplied by the rounding step to get the actual rounded value.

  • To get the downward rounded value, the actual height is divided by the rounding step. The value obtained is floored using the floor function. The value thus obtained is multiplied by the rounding step to get the actual rounded value.

Relationships

Example

Notes

Further information






RFUMSV00 - Advance Return for Tax on Sales/Purchases   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 2082 Date: 20190626 Time: 214950     sap01-206 ( 13 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.