SAP ABAP Data Element OIC_RNDQUOT (Rule for rounding quotation price/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_RNDQUOT
Short Description Rule for rounding quotation price/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 Quot. rounding rule 
Heading Rule 
Documentation

Definition

This field controls the way in which the result of quotation averaging is 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. For both modes it occurs in step 3. Depending on the calculation mode, different averaging results are rounded:

Calculation steps for value-based calculation:

  1. For each daily quotation (specified within a formula item line) the daily quotation value is calculated.
  2. For all valid days of the period, the average quotation value ( specified in [ currency ] ) is calculated.
  3. The average quotation value (result of step 2) is rounded.

Calculation steps for rate-based calculation:

  1. For each daily quotation (specified within a formula item line) the daily quotation price (specified in [ cuky_q / (prun_q * uom_q) ] ) is converted to another combination of currency / pricing unit / unit of measure ( cuky1 / prun1 / uom1 ). Which target combination is used depends on the calculation type.
  2. For all valid days of the period, the average quotation price
    ( specified in [ cuky1 / (prun1 * uom1) ] ) is calculated.
  3. The average quotation rate (result of step 2) is rounded.
  4. Depending on the calculation type the result might be converted to another combination ( cuky2 / prun2 / uom2). This combination cuky2 / prun2 / uom2 is called the leading combination of the formula item line.

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:

  • An average quotation value of 123.45 USD is rounded to 123.50 USD, if the user exit routine "ROUNDING with 1 Dec" is selected.
  • An average quotation 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:

  • An average quotation 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.
  • An average quotation 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