Hierarchy
⤷ 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_RNDSUR |
Short Description | Rule for rounding surcharge 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 | Surch. rounding rule |
Heading | 5 | Rule |
Documentation
Definition
This field controls the way in which the surcharges or surcharge values 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. For both modes it occurs in step 2. Depending on the calculation mode, different results are rounded:
Calculation steps for value-based calculation:
- The total calculated surcharge value is calculated within a formula item line. Total surcharge value means the surcharge value which results after currency conversion (average or daily currency conversion).
- The calculated total surcharge value (result of step 1) is rounded.
Calculation steps for rate-based calculation:
- The surcharge (=rate; specified in [ cuky_s / (prun_s * uom_s) ] ) is converted to another combination of currency / pricing unit / unit of measure (cuky2 / prun2 / uom2). This combination cuky2 / prun2 / uom2 is called the leading combination of the formula item line. Which target combination is used depends on the calculation type. The currency conversion rule controls, whether the currency conversion is performed using an average or a daily currency rule:
- Average currency conversion
The surcharge is converted by applying the corresponding averaged exchange rate. - Daily currency conversion
The surcharge is converted using a daily exchange rate (for all valid days of the period). These daily surcharge rates are summed up and the average surcharge rate is calculated. - The surcharge rates resulting from step 1a) or 1b) are 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 surcharge value of 123.45 USD is rounded to 123.50 USD, if the user exit routine "ROUNDING with 1 Dec" is selected.
- A surcharge 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 surcharge (=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 surcharge (=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 |