Ansicht
Dokumentation

ISU__CE_DISC - Variant program to calculate distribution of consumption

ISU__CE_DISC - Variant program to calculate distribution of consumption

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

Functionality

You use the _CE_DISC variant program to break down submeter consumption by time-of-use periods where the submeter has only one register to measure consumption in all periods. The variant program calculates submeter consumption proportionally according to the actual consumption in the time-of-use periods measured by the master meter.

Examples of time of use periods include:

  • For non-residential customers, workday peak, workday off-peak, weekend peak and weekend off-peak
  • For residential customers, workday daytime, workday night, weekend daytime and weekend night

For more information, see Distribution of Consumption in the IS-U Russia Localization documentation attached to SAP Note 1014954.

Constraints

The variant program does not process consumption values if the following conditions apply:

  • Any input parameter has a negative value
  • The sum of input operands 2 through10 amounts to zero, but the value of input operand 1 is other than zero

Input Operands

  • One input operand of type QUANT for total consumption in the submeter
  • 9 input operands of type QUANT for master meter consumption in time-of-use periods

Output operands

  • 5 output operands of type QUANT for shares of consumption for the first 5 time-of-use periods

Info Lines and Control Options

Depending on the number of time-of-use periods for which you want the system to calculate submeter consumption, you can use the following variant control options:

  • Single call
Use this setting if you want to calculate submeter consumption for up to 5 time-of-use periods.
  • First call
Use this setting if you want to calculate submeter consumption for 6 to 9 time-of-use periods. The variant exports 5 values in output operands in the first call and passes the remaining values to the second call.
  • Second call
The system does not calculate any consumption values. It reads the values that are passed on from the first call and exports the values in the first 4 output operands.

You use the variant control options below to control how the operands are updated:

  • Values Added During Update
  • Values Overwritten During Update

For more information, see IS-U Russia Localization documentation attached to SAP Note 1014954. Under Using Distribution of Consumption in Billing, see Specifying Variant Control Settings.

Rounding Consumption Values

The variant program rounds the consumption values and handles any rounding difference if the following prerequisites are met:

  • The starting point for rounding is the same for all output operands. This setting determines the number of decimal places to which the system carries out rounding. For more information, see Starting Point for Rounding.
Note
You must specify the same number starting point for rounding for all output operands regardless of how many operands are assigned output consumption values in a given calculation run. For example, your variant program is called twice during a rate run. In the second call, the program assigns consumption values only to operand 1 and operand 2. Nevertheless, it checks the rounding settings for operands 3, 4 and 5; therefore, you must make sure that each output operand has the same settings for starting point for rounding.
  • The starting point for rounding value for input operand 1 is lower than or equal to the starting point for rounding value for the output operands. For example, if you have specified +2 for all output operands (that is, the system rounds the value to two digits behind the decimal point), you must specify a value for input operand 1 that is not higher than +2.
You specify the rounding settings for operands in the Easy Access menu under Utilities Industry -> Billing -> Master Data -> Define Operands.
Note
If the rounding settings do not meet the above criteria, the variant program does not round the consumption values and it does not eliminate the rounding difference either. However, rounding will still take place on the level of the output operands according to the rounding settings that you make for each operand.

Handling Rounding Difference

Due to rounding, the sum of the consumption values for the time-of-use periods may differ from the submeter consumption value for all periods.

To eliminate this rounding difference, the variant program sums up the consumption values for time-of-use periods and calculates the difference between this value and the submeter consumption value for all periods. The program adds the difference to the output operand that has the highest submeter consumption value.

Further information





Parameters

XY_OBJ
XY_SOBJ
X_OP
X_RED
X_SS

Exceptions

GENERAL_FAULT
REGULAR_ERROR

Function Group

CE/SAPLIURU_VARIANT_DISC

Fill RESBD Structure from EBP Component Structure   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 5923 Date: 20240523 Time: 105111     sap01-206 ( 98 ms )