Ansicht
Dokumentation

ISU_QUANTI16 - Write Info Lines for Previous Consumption

ISU_QUANTI16 - Write Info Lines for Previous Consumption

BAL Application Log Documentation   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Operands and their Meanings

Input operands

QUANT Consumption in previous periods from the installation facts
QUANT Consumption in the current billing period
INTEGER Maximum difference of the period lengths

Functionality

This variant writes an info line about the current consumption compared to consumption in previous periods.

You can use this info line to represent changes in consumption on the customer's bill. The variant takes the previous consumption from the installation facts.
AB Start of the current consumption period
BIS End of the current consumption period
DATUM1 Start of the previous consumption period
DATUM2 End of the previous consumption period
I_ABRMENGE Non-discounted consumption in current consumption period
I_ZAHL1 Non-discounted consumption from previous period
I_ZAHL2 Absolute consumption change: I_ABRMENGE - I_ZAHL1
I_ZAHL3 Relative consumption change in percent:
100 * I_ZAHL2 / I_ZAHL1
The field is 0 if I_ZAHL1 = 0.
I_ZAHL4 Non-discounted average current consumption per day:
I_ABRMENGE / (BIS - AB + 1)
I_ZAHL5 Non-discounted average consumption from previous period per
day: ZAHL1 / (DATUM2 - DATUM1 + 1)
I_ZAHL6 Comparison control field; see below
MASSBILL Unit of measurement for the consumption operands

The fields DATUM1, DATUM2, ZAHL1 to ZAHL6 are blank if no appropriate value for consumption from previous period is found in the installation facts. The comparison control field I_ZAHL6 can accept the following values:

  • If no appropriate value is found for consumption from a previous period, then I_ZAHL6 = 0.
  • If a consumption value from a previous period is found, then the length of the previous consumption period is compared with that of the current consumption period. If the two period lengths differ by no more than the value of the third input operand, then I_ZAHL6 = 1.
  • If the two period lengths differ by a value larger than that of the third input operand, then I_ZAHL6 = 2. In this case, for example, you can design the bill form so that only the average consumption values or a special text is displayed.

Changes to the third input operand are not taken into account; the current value always applies (additional information).

Info lines and control options

You must specify which comparison period is to be used to determine the previous consumption:

  • Compare with consumption in the last billing
The consumption from the last billing is displayed.
  • Compare with consumption in the same period minus one year
The previous consumption is determined as follows:
  • One year is subtracted from the start and end of the current billing period.

  • Installation facts from this comparison period are read. It is possible that the comparison period overlaps with more than one billing period. If this is the case, those facts are taken from the billing that overlaps the most with the comparison period.

  • Compare using base period category of the installation
The base period category from the installation determines the type of comparison:
  • For base period category "Previous period": method in point 1

  • For base period category "Period of prev. year": method in point 2

Example

You bill an installation using a schema that contains (among others) the following steps:

CNo. Variant InOp1 InOp2
...
5 QUANTI16 PRECONSUM CONSUM
6 INFACT06 CONSUM PRECONSUM
...

Notes:

  • In step 5, variant QUANTI16 reads the previous consumption values for operand PRECONSUM in the installation facts. The operand usage complete history must be specified for operand PRECONSUM. The current consumption is made available to QUANTI16 by the operand CONSUM.
  • In step 6, the current consumption CONSUM is written to the installation facts under the name PRECONSUM. The PRECONSUM operand has allowed the indicator to have two values, because QUANTI16 processes the undiscounted value. This step contains the variant control "Update the total to the billing period". This enables you to access the consumption historically in a later billing.




Parameters

XY_OBJ
XY_SOBJ
X_OP
X_RED
X_SS

Exceptions

GENERAL_FAULT
REGULAR_ERROR

Function Group

EV00

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 5350 Date: 20240523 Time: 143741     sap01-206 ( 70 ms )