SAP ABAP Data Element OIC_RNDITEM (Rule for rounding term item value)
Hierarchy
BBPCRM (Software Component) BBPCRM
   CRM (Application Component) Customer Relationship Management
     CRM_APPLICATION (Package) All CRM Components Without Special Structure Packages
       OIC (Package) MAP Marketing, Accounting and Pricing
Basic Data
Data Element OIC_RNDITEM
Short Description Rule for rounding term item value  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type OIC_EXIT    
Data Type NUMC   Character string with only digits 
Length 3    
Decimal Places 0    
Output Length 3    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Rnd. rule 
Medium 15 Rounding rule 
Long 20 Item rounding rule 
Heading Rule 
Documentation

Definition

This field controls the way in which the results of the formula line item evaluation are rounded.

The rounding is performed using user exit routines. Certain user exit routines are delivered which round the input value to a certain number of decimals or tens.

Further methods that can be used for rounding are defined in Customizing for Industry Solution Oil & Gas (Downstream) under the following menu path:
   
MAP (Marketing, Accounting and Pricing) -> Formula & Average Pricing -> Maintain formula & average pricing user exits -> Formula evaluation -> Formula rounding

The following section describes at what step of the evaluation the rounding occurs for the two possible calculation modes (Step 2 for value-based calculation and step 3 for rate-based calculation). Depending on the calculation mode, different results are rounded:

Calculation steps for value-based calculation:

  1. The item value for a formula item line is calculated depending on the selected Calculation user exit routine. This user exit routine combines the different elements of the formula item line, especially the average quotation value and the total surcharge value.
  2. The calculated item value (result of step 1) is rounded.

Calculation steps for rate-based calculation:

  1. The item rate (specified in [ cuky_i / (prun_i * uom_i ) ] ) of a formula item line is calculated depending on the selected Calculation user exit routine. This user exit routine combines the different elements of the formula item line, especially the average quotation rate and the surcharge rate. The combination cuky_i / prun_i / uom_i is always the same just as the leading combination of the formula item line cuky2 / prun2 / uom2.
  2. The item rate resulting from step 1 is converted to the combination of the formula rate (cuky_f / prun_f / uom_f). This ensures that all rates within a formula term can be simply added.
  3. The item rate (specified in [ cuky_f / (prun_f * uom_f ) ] ) is rounded.


Terminology for 'decimals' and 'tens'

Assume you have a field with the value 123.456 .

  • The digits after the decimal sign (4, 5 and 6) are called decimals.
  • The digits before the decimal sign (1,2 and 3) are called tens.

Example

Calculation mode is value based:

  • A item value of 123.45 USD is rounded to 123.50 USD, if the user exit routine "ROUNDING with 1 Dec" is selected.
  • A item value of 123.45 USD is rounded to 120.00 USD, if the user exit routine "ROUNDING to 1. Tens" is selected.

Note: For value-based calculation the number of decimals of the field that is rounded depends on the number of decimals the corresponding currency has (2 decimals in this example for USD).

Calculation mode is rate based:

  • A item rate of 123.45678901234567 USD / 1 TO is rounded to 123.45680000000000 USD / 1 TO, if user exit routine "ROUNDING with 4 Dec" is selected.
  • A item rate of 123.45678901234567 USD / 1 TO is rounded to 120.00000000000000 USD / 1 TO, if user exit routine "ROUNDING to 1. Tens " is selected.

Note: For rate-based calculation the fields used internally always have 14 decimals.

Procedure

Enter a user exit routine number or select one from the list.

History
Last changed by/on SAP  20050224 
SAP Release Created in