Einführung in das Geschäftsszenario
Die Abrechnung im Datenmodell von SAP Utilities verstehen
Abrechnungsstammdaten verstehen
Erkunden von Rabatten und Zuschlägen
Analyse der Fakturierung
Manuelle Abrechnung erkunden
Fakturierung erläutern
Die Verrechnungssteuerung verstehen
Abschläge verstehen
Rechnungsdruck erläutern
Besonderheiten der Abrechnung erläutern
Verkaufsstatistik verstehen – Integration von Daten und Analysen
IS-U-Abrechnung und -Fakturierung – Erweiterung und Erweiterbarkeit
Nachberechnung verstehen – Empfehlung für das Abrechnungsschema
Einführung in die Sammelrechnung
Die Real-Time-Pricing-Abrechnung erläutern
Vorauszahlung verstehen
Prozess Zähler bis Kasse der Versorgungsindustrie ausführen

Understanding Billing Commercial and Industrial Contracts

Objective

After completing this lesson, you will be able to understand Billing Commercial and Industrial Contracts.

3-Peak Average with Floating Backbilling

This lesson has 3 main topics:

  1. 3-Peak Average with Floating Backbilling
  2. Rate - Time Period Control - Variant Control
  3. Demand Billing – Cosine Phi – Period-End Billing

The customer is charged for the service on the basis of the active power (kW) consumed, or on the service terms agreed in the contact. In this case, the active power consumed is equal to the average demand values (rounded to full kW) measured within one billing month over a period of n minutes (for example, n=15, 30, or 60 minutes).

The demand calculation in a monthly billing is based not only on the peak demand value measured in a month, but also on the average peak demand values over n periods. In the following example, the 3-peak averages of the highest measured demands are to be calculated and provided for billing. This calculation will provide the provisional peak demand value for the year, formed from the three highest monthly peak demands during the billing year. The following example explains how the 3-peak average is calculated on the basis of a 12-month billing period. The scheduling dates (end of the billing period - start of the backbilling period) are used as a comparison period.

The following table shows a section of the schema for this billing rule. In addition to the demand calculation (rate E7_3), the on-peak (rate E7_1) and off-peak consumption (rate E7_2) are charged in this example.

Peak Average with Floating Backbilling: Overview

No.RateVariantPRInp. Op.1Inp. Op.2Outp. Op.1ExBBB BAll BB1RevB B1
1E7_1QUANT I01XEQUANT_1EQPRICE_1EAMOUNT_ 1    
2E7_2QUANT I01XEQUANT_2EQPRICE_2EAMOUNT_ 1    
3E7_3INFACT 01 EDEMAND1 EDEMAND7    
4E7_3DEMAN D14 EDEMAND1 EDEMAND6    
5E7_3BACKB I01    0002   
6E7_3BACKB I03 EDEMAND7 EDEMAND6 X0002 
7E7_3DEMAN D07 EDEMAND6EDEMAND4EDEMAND5    
8E7_3INFACT 01 EDEMAND5 EDEMAND8    
9E7_3DEMAN D01XEDEMAND5ETPRICE_1EAMOUNT_ 1  00030003
10E7_3IF00 EDEMAND5EDEMAND8     
11E7_3ELSE        
12E7_3BACKB I02 EDEMAND5 EDEMAND5    
13E7_3BACKB I01    0003   
14E7_3ENDIF        

Variant: Name of the variant program

PR: Billing line items relevant to posting

1st Inp. Op.: First input operand

2nd Inp. Op.: Second input operand

1st Outp. Op.: Output operand

ExBB: Execute backbilling indicator

BB: Execute schema step in backbilling only indicator

AllBB1: Allocate backbilling indicator

RevBB1: Reverse backbilling indicator

In demand rate E7_3, the current measured demand is transferred to the installation facts using INFACT01. This demand is also updated to the operand planned for peak averaging and required for the current period using DEMAND14. At this point, it only contains one demand value (if only the peak monthly demand value is to be considered). In the next step, backbilling is triggered with BACKBI01. In the Execute backbilling indicator column, you specify which steps are to be carried out in backbilling. In the next step, you write the demand values for the previous periods (adjustment periods) to the output operand for peak averaging using the same group assignment and variant BACKBI03.

Example:

The backbilling period starts on January 1 and ends on December 31 of the same year. The current billing month is April. 40 kW was measured in April.

The following demand values have so far been entered using INFACT01 in the installation facts (demand values from the meter reading):

Energy demand decreases monthly from January to March, with values of 30 kW, 20 kW, and 10 kW, respectively.

After the BACKBI03 variant has been run, the following values for calculating the 3-peak average are available in the current billing period:

Monthly timeline showing demand values: January to April. Demand increases from 30 kW in January to 40 kW in April, with February at 20 kW and March at 10 kW.

During demand preprocessing, the 3-peak average is calculated on the basis of the number of peaks specified in the operand.

In the above example, the demand values 30 kW, 20 kW, and 40 kW are used to calculate the 3-peak average. The result is 30 kW.

In the next step, the calculated peak average is compared with the minimum demand, which is also entered in the facts (rate, rate category, or installation facts). For this purpose, variant DEMAND07 writes the result to the output operand that represents the demand to be cleared. Depending on the fine-tuning control settings, the higher or lower value in this comparison is written to the output operand.

This information is required for the following (+ 1 month) period billing. For this reason, the next step will, in the future (depending on the fine-tuning control setting), involve updating this value with INFACT01.

The demand is valuated for the current period with DEMAND01.

Up to this point, the 3-peak average has been calculated, a comparison has been made with the previous clearing demand, and the current clearing has been valuated.

Example:

The 3-peak average (calculated from the meter reading results from January to April) is 30 kW. The minimum demand as agreed in the contract is 15 kW; in other words, in the current billing period (April), billing line items are created (DEMAND01) for the demand value of 30 kW. Using INFACT01, you update this value to the installation facts for billing in May. The following schema steps now check whether backbilling for January to March is necessary.

30 kW peak average > 15 kW minimum demand results in the demand of 30 kW, which is to be cleared in the current billing period (April).

Graph showing power demand trend over months with current billing at 30 kW.

In the next step, you use variant IF00 to check whether the current clearing demand corresponds to the previous month's clearing demand. If so (condition fulfilled), backbilling is not carried out; in other words, billing for this installation is completed, since, in this example, no further processing steps are defined in the billing schema.

If the condition is not fulfilled (the current clearing demand is greater or smaller than that of the previous month), all the preceding periods have to be reversed and revaluated using the currently calculated clearing demand. For this reason, the current clearing demand is first written to the adjustment period by means of BACKBI02.

Graph illustrating monthly demand values with marked adjustment periods of 30 kW across the first five months of the year.

When backbilling is triggered using BACKBI01, the variant programs that have the same backbilling group (here 0003) are triggered. If these steps also contain an entry in the backbilling reversal column, schema steps marked in such a way cause the billing line items generated in the preceding periods (adjustment periods) to be reversed.

Example:

The billings up to March have taken into account a clearing demand of 20 kW.

Timeline showing monthly periods of January, February, and March, with labeled 20 kW adjustment periods.

In billing for April, a new clearing demand has been calculated. After variant BACKBI02 has been executed, the following data is available:

Timeline showing monthly progression from January to May with a labeled energy demand of 30 kW.

Backbilling is triggered using BACKBI01. By means of variant DEMAND01, which has the Execute backbilling indicator, 30 kW are charged for the individual adjustment periods, and (as a result of the backbilling reversal indicator) 20 kW from the individual adjustment periods are reversed. The current billing month (in this case April) remains unaffected by this.

Backbilling Indicators in the Billing Schema

The following descriptions refer to the demand rate, in which the peak average is formed and floating backbilling is carried out.

Backbilling Indicators in the Billing Schema

No.RateVariantPRInp. Op.1Inp. Op.2Outp. Op.1ExBBB BAll BB1RevB B1
...          
...          
3E7_3INFACT 01 EDEMAND1 EDEMAND7    
4E7_3DEMAN D14 EDEMAND6 EDEMAND6    
5E7_3BACKB I01    0002   
6E7_3BACKB I03 EDEMAND7 EDEMAND6 X0002 
7E7_3DEMAN D07 EDEMAND6EDEMAND4EDEMAND5    
8E7_3INFACT 01 EDEMAND5 EDEMAND8    
9E7_3DEMAN D01XEDEMAND5ETPRICE_1EAMOUNT_ 1  00030003
10E7_3IF00 EDEMAND5EDEMAND8     
11E7_3ELSE        
12E7_3BACKB I02 EDEMAND5 EDEMAND5    
13E7_3BACKB I01    0003   
14E7_3ENDIF        

Key:

ExBB: Execute backbilling indicator

BB: Execute schema step in backbilling only indicator

AllBB1: Allocate backbilling indicator

RevBB1:Reverse backbilling indicator

The individual backbilling indicators for the BACKBI variants are defined in the billing schema. The backbilling indicators are modeled in Customizing using 'backbilling groups'. These groups are allocated in the backbilling indicators. You need these backbilling groups, for example, to carry out backbilling or period-end billing in the schema. Using these backbilling groups, you can combine rate steps for backbilling and period-end billing.

Backbilling groups can be found in the SAP Reference IMG. To access them, choose SAP UtilitiesContract BillingBilling Mater DataRate StructureSchemasDefine Backbilling Groups.

Execute backbilling indicator: ExBB1

Variants of the variant type 09 (= backbilling variant) can trigger backbilling. To do so, you must enter a backbilling group in the execute backbilling indicator for each variant of this type in the schema.

Allocate backbilling indicator: AllBB1

This indicator contains a backbilling group that is assigned to a schema step. This enables the schema step to be backbilled.

Reverse backbilling indicator: RevBB1

Using this indicator, you assign the billing line items generated by this schema step to a backbilling group. The billing line items can be reversed during backbilling.

Execute schema step in backbilling: BB

If this indicator is set, the schema step is only executed in backbilling. The indicator, therefore, must only be set if at least one backbilling assignment indicator is also set.

Variants

The following variant programs are required for the billing rule in floating backbilling with 3-peak averages. These are listed in the same order they appear in the sample billing schema (see above).

3 - INFACT01 - Writing a demand to the installation facts

In this special case, the output operand defines the operand name that is to be used to write to the installation facts. Input and output operands can have either the same name or different names. In the application itself, the value obtained from the meter reading (register operand) is updated to the output operand for the demand values measured on a monthly basis. If this output operand does not exist, it is created automatically in the installation facts.

4 - DEMAND14 - Rate-independent transfer of register operands

The demand represented by the input operand is updated without changes. This variant is only expedient if the input operand is a register operand. These are only known within the corresponding rate, but may also be needed for processing in the same or different rates.

This step transfers the demand value from the meter reading (register operand) to the output operand planned for the peak average. In its demand description, the operand has the value 3 for calculating the 3-peak average.

5 - BACKBI01 – Triggering backbilling

This variant triggers backbilling. You can hide billing line items that are not required for backbilling using the control function.

You carry out this variant step with the next step using the Execute backbilling indicator.

6 - BACKBI03 – Update demand from the adjustment period

This variant is only required in backbilling or period-end billing.

In backbilling, demands from the adjustment periods are updated to schema steps in the periodic billing period (current billing period).

In period-end billing, demands from the adjustment periods are updated to the schema steps in the rate for period-end billing.

In this variant, the Execute schema step in backbilling onlyindicator must be set. This indicator is set automatically when this variant is used, and it cannot be changed at a later stage.

The recorded monthly demand values are now exported from the installation facts and written to the output operand. In this way, the adjustment period values are also available for the current billing period in the billing schema. With this variant, the 3- peak average is calculated during demand preprocessing (output operand with no. of peaks = 3).

7 - DEMAND07 – Comparison of two demands

This step involves calculating the higher or lower demands from two alternatives.

The result of peak averaging is then compared with the minimum demand agreed in the contract. The higher demand value is updated to the output operand that represents the current clearing demand.

8 - INFACT01 – Writing a demand to the installation facts

In the future, this clearing demand will be updated to the installation facts as a demand for the previous month so that it is available for subsequent period billings. This demand value is essential for backbilling and reversing the demand values that have already been charged (adjustment periods).

9 - DEMAND01 - Valuating a demand with a price

The clearing demand calculated for the current month is valuated with a price. Price prorations are taken into account. The calculated amount is updated.

10 - IF00 - Condition: IF demand1 >,>=,= demand2

This variant introduces an IF nesting level. All the following schema steps are only executed if the condition is fulfilled. The condition is:

IF demand1 > (>=,=) demand2

whereby either the current or the highest values of the input operand are taken into account. The IF variant must be ended using an ENDIF variant. You can also use an ELSE variant.

In this step, the clearing demand is compared with the clearing demand from the previous month. If the demand values are the same, the variant programs after the IF variant are executed. Since no variants are listed here, the variants after the ENDIF variant are called up. If the demand values are different, backbilling must be carried out. This means that all the billing line items for the adjustment period are reversed and recalculated.

11 - ELSE – Start of a NOT operation for an IF variant

This variant introduces the ELSE part of an IF nesting level, that is, the following variants are only executed if the IF variant condition is not fulfilled.

Since the current clearing demand is different from the previous month's clearing demand, backbilling is to be carried out. This would, for example, be the case if the n- peak average had either increased or decreased.

12 - BACKBI02 – Update demand to the adjustment periods

This variant is only required in backbilling or period-end billing. If you use the variant in periodic billing with backbilling, the most recent demand value in the periodic billing period is updated to the adjustment periods. If you use the variant in a rate for period-end billing with backbilling, the most recent demand value in the period-end billing period is updated to the adjustment periods.

In this way, the current demand value is updated to the adjustment periods.

13 - BACKBI01 – Triggering backbilling

This variant triggers backbilling.

In more specific terms, the variant program steps are executed with the same backbilling control group. The schema steps that have the same group in the backbilling reversal indicator column are reversed.

14 - ENDIF – Ending an IF nesting level

This ends the IF nesting level you previously opened using an IF## variant.

Operands

Register operand EDEMAND_1 for the month's measured demand

Operands of the type DEMAND and QUANT can be defined as register operands. The indicator defines the use of operands in the rate.

In the rate header, only operands whose indicator has also been set accordingly can be used as register operands. In the rate steps, operands can only be used if the indicator is not set, or if the operand is the same as the register operand in the rate header.

Furthermore, register operands of the type DEMAND must not be used to create facts in the rate, rate category, or installation. If an operand has already been defined once as a register operand or standard operand, you cannot reverse this, since this may result in inconsistencies. For this reason, you can only make changes by deleting or recreating the operand.

Field NameNameNote
Header Data
OperandEDEMAND_1Name can be freely assigned.
Operand categoryDEMAND 
UsageRegister operandAt the time of billing, the current recorded demand values are stored.
General Data
Rounding#As required.
Rounding type#As required.
Operand groupOptionalBy assigning the operand group to an operand, you specify that the operand is always to be displayed in the fact hierarchy with reference to this operand group.
Access to operand00All values are considered.
History0No restrictions relating to the historical changeability are specified.
Special Control
No. of peaks1 

Operand EDEMAND_6 for the calculated 3-peak average

This operand is created for standard use. The operand is supplied with values from the rate, rate category, or installation facts.

Field NameNameNote
Header Data
OperandEDEMAND_6Name can be freely assigned.
Operand categoryDEMAND 
UsageStandard usage 
General Data
Rounding#As required.
Rounding type#As required.
Operand groupOptionalSee above..
Access to operand02The value on the key date is valid. This control function is selected depending on the contractual conditions.
History0No restrictions relating to the historical changeability are specified.
Special Control
No. of peaks3During demand preprocessing, which is activated for certain variants, this operand contains the result of the calculation (in this case the 3-peak average).

During demand preprocessing, the value for the number of peaks is evaluated and the result of the calculation entered in this operand.

Rate - Time Period Control - Variant Control

Rate models do not contain any special control features for floating backbilling or period-end billing. The time period control and variant fine-tuning control settings are, however, defined in the rate models.

Rate - Time Period Control - Variant Control

No.VariantPCFTInp. Op.1Inp. Op.2Outp. Op.1
1INFACT01 01EDEMAND1 EDEMAND7
2DEMAND1 40101EDEMAND1 EDEMAND6
3BACKBI01 F   
4BACKBI03  EDEMAND7 EDEMAND6
5DEMAND070102EDEMAND6EDEMAND4EDEMAND5
6INFACT01 01EDEMAND5 EDEMAND8
7DEMAND010102EDEMAND5ETPRICE_1EAMOUNT_1
8IF00 02EDEMAND5EDEMAND8 
9ELSE 03   
10BACKBI02  EDEMAND5 EDEMAND5
11BACKBI01 F   
12ENDIF     

Section of the rate for demand calculation.

Key:

No. Current rate step number

Variant: Name of the variant

program PC: Time period control

FT: Fine-tuned variant control

In the above example, a time period control function (entry 01 in column PC), which refers to the process for calculating the period to an exact number of days, has been accessed in Customizing. Customizing also provides time period control functions for taking special situations into account, for example:

  • leap years

  • move-ins

  • move-outs

  • values added/omitted sub-periodically (for example, device installation).

Period Control - PC

Using the period control function, you calculate the length of the billing-relevant periods. This length is also referred to as a proportion of a time slice.

Period control is specified in the rate for every rate step, in which a time-dependent calculation is carried out. Using table TE432, the period control function refers to one of three basic processes for calculating time periods (see below).

The time period is required in three cases:

  1. For values valuated with time-dependent prices. In this case, the length of each time slice must be calculated, since it is used to valuate the price. Example for billing a demand to an exact number of days.

  2. For values whose time slice lengths are used for calculations.

    Example for extrapolating a time-dependent amount on a monthly basis.

  3. For prices whose blocks/scales are to be adjusted to the length of their time slices.

Explanations of the different basic procedures

Basic procedure 01: For an exact number of days.

When the time period is calculated for an exact number of days, the difference in the number of days between the time slices is used as a time period.

Basic procedure 02: On a monthly basis with taking key date into account

In this procedure, the time period is calculated in whole months. The number of months is calculated depending on the key date. The advantage of this procedure, for example, is that exactly one month is billed if the billing period covers the key date, but not the whole month. The key date is maintained in the meter reading unit.

Basic procedure 03: On a monthly basis depending on interval

In this procedure, the time period is calculated in months. If the number of days in the billing period is within the interval days specified in the portion, the months in the planned billing period from the portion are used as a time period. If the days in the billing period are not within the interval, the time periods are calculated for exact days. The time portion in days can either be scaled to the standard month (30 days) or to the standard year (365 days).

Variant Control

Using the variant control, you can control the different variant programs. Control indicators are not the same for all variant programs, but depend instead on the task of each variant program.

No.VariantPCFTInp. Op.1Inp. Op.2Outp. Op.1
1INFACT01 01EDEMAND1 EDEMAND7
2DEMAND140101EDEMAND1 EDEMAND6
3BACKBI01 F   
4BACKBI03  EDEMAND7 EDEMAND6
5DEMAND07  EDEMAND6EDEMAND4EDEMAND5
6INFACT010102EDEMAND5 EDEMAND8
7DEMAND01 01EDEMAND5ETPRICE_1EAMOUNT_1
8IF000102EDEMAND5EDEMAND8 
9ELSE 03   
10BACKBI02  EDEMAND5 EDEMAND5
11BACKBI01 F   
12ENDIF     

Rate step no. 1 – INFACT01

The following control functions have been activated here:

  • Information lines relating to demand are not written

  • Update in billing period with proration

This setting was selected so that all the values within the billing period are also available. It prevents information lines from being written, since this information is generated at a later stage using variant DEMAND01.

Rate step no. 2 – DEMAND14

The following control functions have been activated here:

  • Info lines relating to demand are not written

  • Added during update

The information lines are not required here either. The control function relating to updating is not relevant in this example, since the operand is used for the first time in this rate.

Rate step no. 3 – BACKBI01

The indicator for deleting the backbilling line items that are not required is not activated.

This indicator is not used in this example, since, for example, the maximum price in backbilling is not calculated, and line items that are not required may have to be deleted.

Rate step no. 5 – DEMAND07

The following control functions have been activated here:

  • Only billing-relevant information is written

  • The higher demand is determined

  • Data is overwritten during updating

  • Information lines relating to the demand comparison are written

Information lines relating to demand, in particular register meter readings, are written. The level of detail can be specified as follows:

  • No info lines are written.

  • Infolines are written on the service(s) to be billed.

  • Info lines relating to both the method for calculating the relevant demand and the meter readings not included in the calculation are written.

Information on the calculation method is provided with all the billing line items, which include additional information, rather than in separate info lines. The following fields are maintained:

ZAHL1 = First demand

MASS1 = Dimension of the first demand

ZAHL2 = Second demand

MASS2 = Dimension of the second demand

ZAHL3 = Greater/smaller than the two demands

You can also use the control function to prevent info lines from being written.

The control function specifies the two comparison options:

  • Calculation of the greater of the two demands

  • Calculation of the smaller of the two demands

Using the control function, you must also define the type of operand update procedure. Since the output operand is only being used for the first time in this example too, the control function is not required.

Example:

The calculated 3-peak average is compared with a predefined minimum demand in the contract (rate, rate category, or installation facts). The greater of the two demands is billed.

Rate step no. 6 – INFACT01

The following control functions have been activated here:

  • Info lines regarding demand are not written

  • Update future demand

The required information lines are written in the next step.

The demand (in this case, the demand to be cleared) must be updated for the future to ensure that this demand value is available for the next period billing. This value is written on a proration basis to the installation facts for the installation to be billed. If the operand is not available in the facts, it is created. In rate step 8, the value is compared with the new clearing demand and, if necessary, backbilling is carried out.

Rate step no. 7 – DEMAND01

The following control functions have been activated here:

  • Only billing-relevant information is written.

To enable the information to be displayed on the bill (these information lines were suppressed up to now), you choose this control function.

Rate step no. 8 – IF00

The following control functions have been activated here:

  • Demand 1 = Demand 2

  • Use current value

The relational operator between the two demands must be specified. You can basically choose the following for this purpose:

  • If Demand1 > Demand2

  • If Demand1 >= Demand2

  • If Demand1 = Demand2

Demand1 corresponds to the previous month's clearing demand. Demand2 is the current clearing demand. If this demand is the same as the previous month's clearing demand, backbilling is not carried out. If these values are different (demand 2 is greater or less than demand 1), the previous month must be backbilled.

The billing period may contain several different values, for example, due to prorations. For this reason, you must specify the value to be used. For this setting, the value that is valid at the end of the billing period is used.

Rate step no. 11 – BACKBI01

Not activated.

With this control function, billing line items for backbilling that are not required are not suppressed, since, in this case, they are not part of the contract.

Example of when this control function is activated:

Backbilling for calculating demand with a maximum price in previous billing periods is to be started to determine the maximum amount in each of the periods. If the total of the maximum amounts is greater than the total of all the energy and service amounts, the result from calculating the highest amount is to be reversed. If the control function for deleting backbilling line items that are not needed is selected, the billing line items for the maximum amount are deleted, otherwise the maximum amounts are set as negative values.

Rate Category

The rate category is entered in the utility installation. It determines the criteria for the billing rates, for example, the backbilling and/or period-end billing control function. When the rate category in the installation is changed, the periods in billing are analyzed separately.

During backbilling or period-end billing, you must not change the rate category within the backbilling period or period-end billing period.

Field NameNameNote
Header Data
Rate categoryE7Name can be freely assigned.
Division  
General Data
Billing class#As required.
Outsorting price group billing#As required. The outsorting checks during billing are entered (for example, maximum net amount) here.
Billing schema
Billing schema Here, you must enter all the rates for an installation that are required for calculation.
Backbilling
Floating backbillingXSee below.
Number of periods12Periods for floating backbilling. With this entry, the peak average calculation is restarted after 12 periodic billings.

Indicator: Floating backbilling

If you set this indicator, floating backbilling can be carried out for the contracts assigned to this rate category. In floating backbilling, backbilling is carried out within a fixed billing period. In floating backbilling, you must specify the number of periods that backbilling covers.

Floating backbilling can be triggered from a periodic billing (or a final billing).

Demand Billing – Cosine Phi – Period-End Billing

Instead of charging the customer for the demand, the active energy during the on-peak rate period, active energy during the off-peak rate period, and basic price flat rates, you calculate a charge by multiplying the price limit by the minimum energy. The minimum energy in kWh is calculated from the sum of the active energy during the on- peak rate period and the active energy during the off-peak rate period used during the calendar year (period billing).

The bill is created either in a separate bill (period-end billing), or included with the last period billing.

In this period-end billing, the active energy consumed during the on-peak rate period and off-peak rate period (which is updated in the individual period billings) is added. This amount is valuated using a defined maximum price. The result of this calculation is compared with the sum of the amounts from the individual rates in the period billings. The amounts are updated for each rate in the period billings.

If you establish during period-end billing that the period billings during the calendar year were more favorable for the customer, no further billing is carried out. If the comparison yields a negative result, that is, during period-end billing, you establish that the bills created in the adjustment periods (period billings) are not in the customer's favor, the individual adjustment periods are credited, and the valuation from period-end billing is charged to the customer.

This example takes into account the following special features in period-end billing. It is assumed that the customer uses electricity with a defined cosine phi.

Overcompensation above this agreed value is billed at a special price.

The percentage ratio for the normal-rate reactive energy and the normal-rate active energy is used to calculate the current demand factor (cosine phi).

The following table shows an extract of the schema for this billing rule. In addition to the demand calculation (rate E8_3), on-peak (rate E8_1) and off-peak consumption (rate E8_2) are charged in this example. Overcompensation for the reactive current rate is calculated using a separate rate (rate E8_4).

Peak Average with Floating Backbilling: Overview

No.RateVariantPRInp. Op.1Inp. Op.2Outp. Op.1ExBBB BAll BB1RevB B1
1E8_1QUANT I01XEQUANT_1EQPRICE_1EAMOUNT_ 1   004
2E8_1LUMSUM01XELPRICE_1EFACTOR_1EAMOUNT_ 1   004
3E8_1INFACT 06 EQUANT_1 EQUANT_6    
4E8_1INFACT 02 EAMOUNT_ 1 EAMOUNT_ 1    
5E8_1QUANT I14 EQUANT_1 EQUANT_30002   
6E8_2QUANT I01XEQUANT_2EQPRICE_2EAMOUNT_ 2 X0002004
7E8_2INFACT 06 EQUANT_2 EQUANT_7    
8E8_2INFACT 02 EAMOUNT_ 2 EAMOUNT_ 2    
9E8_3DEMAN D01XEDEMAND1ETPRICE_1EAMOUNT_ 3  00030003
10E8_3INFACT 02 EAMOUNT_ 3 EAMOUNT_ 3    
11E8_4QUANT I13 EQUANT_3EQUANT_9EFACTOR_3    
12E8_4IF03 EFACTOR_4EFACTOR_3     
13E8_4QUANT I09 EQUANT_3EFACTOR_2EQUANT_100003   
14E8_4QUANT I02 EQUANT_9EQUANT_10EQUANT_11    
15E8_4QUANT I01XEQUANT_11EQPRICE_5EAMOUNT_ 1    
16E8_4ENDIF        
17E8_EQUANT I10 EQUANT_6EQUANT_7EQUANT_8    
18E8_EQUANT I01XEQUANT_8EQPRICE_4EAMOUNT_ 4    
19E8_ECOMPUT02 EAMOUNT_ 1EAMOUNT_ 2EAMOUNT_ 5    
20E8_ECOMPUT02 EAMOUNT_ 5EAMOUNT_ 3EAMOUNT_ 6    
21E8_EIF02 EAMOUNT_ 4EAMOUNT_ 6     
22E8_EUTILIT01 EAMOUNT_ 4      
23E8_EELSE        
24E8_EBACKBI01    0004   
25E8_EENDIF        

In addition, deletion operand EAMOUNT_4 must be defined for schema step 18 to create a reference to the UTILIT01 variant in schema step 22.

Key:

Variant: Name of the variant program

PR: Billing line items relevant to posting

1st Inp. Op.: First input operand

2nd Inp. Op.: Second input operand

1st Outp. Op.: Output operand

ExBB: Execute backbilling indicator

BB: Execute schema step in backbilling only indicator

AllBB1: Allocate backbilling indicator

RevBB1: Reverse backbilling indicator

In addition to the calculation of the on-peak rate active energy (QUANTI01), the rate components of on-peak rate E8_1 contain a time-based flat rate calculation with variant LUMSUM01. The meter reading results and the calculated total amount are updated with the appropriate variants (INFACT06 = for the quantities and INFACT02 for the amounts) to the facts for the current installation. With variant QUANTI14, the current meter reading difference (which corresponds to the consumption) is transferred independently of the rate. This step is necessary to define the demand factor (cosine phi) in rate E8_4.

The off-peak rate (E8_2) is valuated using variant QUANTI01. In this case too, the quantity and the calculated amount is updated to the installation facts.

The demand rate only provides for the valuation of the current demand measured in the current month. This is obtained using variant DEMAND01. The calculated amount is also written to the installation facts.

The reactive current calculation is modeled in rate E8_4. In the first step of this rate, the cosine phi is calculated using QUANTI13 from the on-peak rate active energy and reactive energy. The value entered in the first operand is interpreted as active energy, and the value entered in the second operand as reactive energy. Each of the values entered are cumulated, that is, if more than one register is involved, the consumption values are added first. The on-peak rate value results from rate E8_1 that transferred the consumption independently of the rate. The IF03 now checks whether a cosine phi entered in the facts is greater than the current demand factor calculated. If so, a n-% proportion of the on-peak rate active energy is calculated using variant QUANTI09.

The result is deducted from the measured reactive energy using variant QUANTI02. With QUANTI01, this quantity is now valuated with a price. The rate nesting is ended using ENDIF.

The final rate, E8_E, is only run in period-end billing. Furthermore, the header data of this rate specifies that it may only be used in period-end billing. After the period billings, a separate period-end billing order is created if the rate category does not provide for period billing with integrated period-end billing.

With variant QUANTI10, the on-peak and off-peak rate quantities cumulated from the period billings are added. This result is valuated with the maximum price with variant QUANTI01. To be able to compare the amounts from the period billings with the amount just calculated, the cumulated on-peak and off-peak rate amounts from the period billings must first be added using variant COMPUT02. In the second step, the total is added to the amount for the demand rate from the period billings. Variant IF02 now compares these amounts. If the calculation in the period billing is more favorable for the customer, the billing line item generated during period-end billing is deleted using UTILIT01. If the comparison yields a negative result, variant BACKBI01 is used to reverse the billing line items (variants) for which the backbilling reversal group is set. The billing line items generated during period-end billing are charged to the customer.

Variants

The following variant programs are required for the existing billing rule. These are listed in the same order they appear in the sample billing schema.

Active Energy On-Peak Rate

1 - QUANTI01 - Valuating a quantity with a price

A quantity is valuated with a price. Price prorations are taken into account. If several registers are included in the quantity to be billed, the total consumption of the registers is used when you determine the amount; in other words, the registers are not valuated individually. The calculated amount is updated. The updated amount is used for a maximum price limitation in period-end billing.

2 - LUMSUM01 - Billing a flat rate taking one factor into account

Calculating a flat rate in accordance with a price table. This factor is multiplied with a factor. Prorations of the flat rate prices and the factor are taken into account. The calculated amount is updated and added to the amount calculated in step 1.

3 - INFACT06 - Writing a quantity to the installation facts

In this special case, the output operand defines the operand name that is to be used to write to the installation facts. Input and output operands can have either the same name or different names.

4 - INFACT02 - Writing an amount to the installation facts

In this special case, the output operand defines the operand name that is to be used to write to the installation facts. Input and output operands can have either the same name or different names. This amount is used in period-end billing to calculate the maximum amount.

5 - QUANTI14 - Rate-independent transfer of register operands

The quantity represented by the input operand is updated without changes. This variant is only expedient if the input operand is a register operand. These are only known within the corresponding rate, but may also be needed for processing in different rates. The quantity is required for calculating the cosine phi demand factor.

Active Energy Off-Peak Rate

6 - QUANTI01 - Valuating a quantity with a price

An off-peak rate quantity is valuated with a price.

7 - INFACT06 - Writing a quantity to the installation facts

This quantity is also written to the installation facts.

8 - INFACT02 - Writing an amount to the installation facts

The calculated amount from the valuation of the off-peak rate is written to the installation facts.

9 - DEMAND01 - Valuating a demand with a price

A demand is valuated with a price. Price prorations are taken into account. The calculated amount is updated. A measured demand is billed here. You can also bill a predefined demand (in conditions, rate category, installation facts), or a demand calculated in a previous schema step. The updated amount is used for a maximum price limitation.

10 - INFACT02 - Writing an amount to the installation facts

The calculated amount from the valuation of the demand rate is written to the installation facts.

11 - QUANTI13 - Calculating cosine phi from active energy and reactive energy

The cosine phi is calculated using the active energy and reactive energy. The value entered in the first operand is interpreted as active energy (measured quantity of the on- peak rate register), and the value entered in the second operand as reactive energy (measured quantity of the reactive energy register). Each of the values entered is cumulated, that is, if more than one register is involved, the consumption values are added first.

You must ensure that the calculation for the consumption values in question is based exclusively on the operand name and the consumption values assigned using it. The specifications made at the register level regarding the use of an active energy or reactive energy register are not taken into account.

The cosine phi is calculated as follows:

CosPhi = 1 / SQRT((reactive*reactive) / (active*active) + 1) For the following, cosine phi is calculated as:

Reactive = 0, active > 0 ==> CosPhi = 1

Reactive > 0, active = 0 ==> CosPhi = 0

Reactive = 0, active = 0 ==> CosPhi = 0

In this way, a cosine phi is calculated and updated for the entire period to be billed.

12 - IF03 - Condition: IF factor1 >,>=,= factor2

This variant introduces an IF nesting level. All the following schema steps are only executed if the condition is fulfilled. The condition is:

IF factor1 > (>=,=) factor2

whereby either the current or the highest values of the input operand are taken into account. In this example, the factor1 > factor2 comparison and the analysis of thecurrent quantity are chosen. Factor1 contains the calculated cosine phi, while factor2 receives the value from the facts.

The IF variant must be ended using an ENDIF variant. You can also use an ELSE variant. If the demand factors are identical, this query generates an additional billing line item for overcompensation.

13 - QUANTI09 - Multiplying a quantity

A quantity is multiplied by a factor, and the result updated. The calculation is made taking into account prorations of the factor. In this example, the measured on-peak rate quantity is multiplied by a factor

(n % of the on-peak rate consumption). The percentage is entered in the rate, rate category, or installation facts. The quantity has been transferred in the on-peak rate (E8_1) independently of the rate.

14 - QUANTI02 - Subtracting two quantities

The quantities represented by both input operands are subtracted, and the result updated. If negative results are permitted (see control options), prorations are not relevant. If, however, because of the control setting, you have to know whether this yields a negative result, the time slices resulting from prorations must be analyzed individually.

The n % on-peak rate quantity calculated in the previous step is now subtracted from the measured reactive energy consumption.

15 - QUANTI01 - Valuating a quantity with a price

The calculated difference is valuated with a price.

16 - ENDIF – Ending an IF nesting

You use this variant to end an IF nesting level, that is, all the following variants are executed again.

Period-End Billing Rate

The following steps are only taken in period-end billing.

17 - QUANTI02 - Adding two quantities

The quantities represented by both input operands are added, and the result updated. If historical quantities exist in the period to be billed, these are all added. The origin of the quantities is not relevant, that is, the quantities could be both current meter reading results or values from the installation facts. Info lines relating to the quantity or consumption are written. You can use the control function to define how the operands are to be updated. In period-end billing, the on-peak and off-peak rate consumption values were updated and are now to be added to determine whether the customer is entitled to a particular discount in period-end billing.

18 - QUANTI01 - Valuating a quantity with a price

The total calculated is valuated with a defined maximum price and updated in an amount operand.

19 and 20 - COMPUT02 - Adding two amounts (twice)

The on-peak rate amounts calculated in the period billings are added to the calculated off-peak rate amounts. The result is then added to the calculated demand amounts.

21 - IF02 - Condition: IF amount1 >,>=,= amount2

This variant introduces an IF nesting level. All the following schema steps are only executed if the condition is fulfilled. The condition is:

IF amount1 >= amount2

In this case, only the current input operand values are analyzed.

In this step, the total of the period billings (total of all the amounts for the rates in question) is multiplied by the result of the valuation of the total quantity (on-peak consumption + off-peak consumption), and compared with a defined maximum price.

22 - UTILIT01 - Deleting the billing line items

The billing line items for the amount received are deleted along with their info line items. The billing line items can also be marked as info line items. In this way, they are not relevant to posting or statistics, although they can be printed on the bill. The billing line items to be deleted are identified using the deletion operand.

The schema step is only executed if the condition for variant IF02 is fulfilled. It is fulfilled if the amount calculated using QUANTI01 in the period-end billing rate is greater than the amount resulting from the total of the amount calculations for the rates (period billings).

23 - ELSE – Starting a NOT operation for an IF variant

If this is not the case, the NOT operation variants are executed.

24 - BACKBI01 – Triggering backbilling

This variant triggers backbilling. You can hide billing line items that are not required for backbilling using the control function.

Backbilling is to be carried out or a credit memo issued for all the billing line items created in previous billing periods.

The billing line items to be reversed are selected using the backbilling reversal indicator (backbilling group).

This applies to schema steps 1 and 2 for the on-peak rate, and schema step 6 for the off- peak rate.

25 - ENDIF – Ending an IF nesting

The nesting level opened in the schema step must be ended using this variant.

Rate Category

The rate category is entered in the utility installation, and controls the following:

  • monthly billing

  • period-end billing and floating backbilling

  • the outsorting check

  • other billing-relevant data (for example, agreed quantities, demands, prices, or flat rates).

Field NameNameNote
Header Data
Rate category#Name can be freely assigned.
Division# 
General Data
Billing class#As required.
Outsorting price group billing#As required. The outsorting checks during billing are entered (for example, maximum net amount) here.
Billing schema
Billing schema#Here, you must enter all the rates for an installation that are required for calculation.
Backbilling
No backbillingX 
Number of periods0 
Period-End Billing
Separate period-end billXSee below.
PEB prioX 
Diff. in days1 
Number of periods12 

Period-End Billing Indicator

There are essentially three control options for period-end billing:

  • No period-end billing

  • Integrated period-end billing

  • Separate period-end billing

The above example uses the 'separate period-end billing' process.

No period-end billing:

Billing does not provide for any billing rule relating to period-end billing.

Period-end billing with last billing

If this indicator is set, integrated period-end billing is carried out for the contracts assigned to this rate category. In integrated period-end billing, period-end billing is carried out along with the last periodic billing for the period-end billing period (or final billing).

The billing line items resulting from period-end billing are added to the billing document (billing that triggers period-end billing). A separate period-end billing document is not created. In period-end billing, the number of periods covered by period-end billing must be entered.

Separate period-end billing

If this indicator is set, separate period-end billing is carried out for the contracts assigned to this rate category. For this purpose, a period-end billing order is created when the last periodic billing for the period-end billing period (or final billing) is carried out. Period-end billing is executed when the period-end billing order is billed. To do so, you can determine whether period-end billing has to be executed before the next periodic billing.

You can also determine the minimum number of days after the last periodic billing that period-end billing can be carried out. Billing the period-end billing order results in a separate billing document (period-end billing document). In period-end billing, the number of periods covered by period-end billing must be entered.

Period-end billing prioritization

If a period-end billing order is generated when a contract is billed, the value of the field is transferred from the corresponding rate category to the period-end billing order.

It has the following role here:

When this indicator is set, a period-end billing order has priority over another order. If there is another billing order with a different billing procedure for the same contract (periodic, interim billing, etc), this must not be billed until the period-end billing order has been billed.

If this indicator is not set, the period-end billing order does not have a priority. A periodic order for the same contract can be billed before the period-end billing order. This ensures that the next periodic billing is not missed because period-end billing is delayed. This indicator is only relevant for rate categories with period-end billing, and must be set so that the results of period-end billing are used in the next periodic billing.

Example: when the period-end billing rate is executed, values are written to the installation facts and are used in the next periodic billing. The indicator must be set for this procedure.

Difference days: Bill ← → Period-end billing

This field is only relevant in the event of a separate period-end billing. Here, you determine the number of days between the last periodic billing of a period-end billing period (or final billing) and the billing of the period-end billing order.

Period-end billing cannot be carried out before the specified number of days has passed.

Example: The difference specified is 5 days. The last periodic billing was executed on January 3, 2000. This means that the earliest date on which period-end billing can take place is January 8, 2000.

Period lengths in period-end billing

Here, you determine the number of periods covered by the period-end billing period in period-end billing.

Period-End Billing Rate

In the header data for the period-end billing rate, you must set the usage indicator (permissibility) "Period-end billing permitted".

Period-End Billing Rate

Rate Header Data
PermissibilityPeriod-end billing permitted
Rate Steps
No.RateVariantPRInp. Op.1Inp. Op.2Outp. Op.1
1E8_EQUANTI10 EQUANT_6EQUANT_7EQUANT_8
2E8_EQUANTI10XEQUANT_8EQPRICE_4EAMOUNT_4
3E8_ECOMPUT02 EAMOUNT_1EAMOUNT_2EAMOUNT_5
4E8_ECOMPUT02 EAMOUNT_5EAMOUNT_3EAMOUNT_6
5E8_EIF02 EAMOUNT_4EAMOUNT_6 
6E8_EUTILIT01 EAMOUNT_4  
7E8_EELSE    
8E8_EBACKBI01    
9E8_EENDIF    

The rate steps for the period-end billing rate are actually only executed in period-end billing.

Period-End Billing Schema Header Data

In the billing schema, exactly one rate can be added in the billing schema for which the indicator 'Permissible as period-end billing rate' is set. This means that period-end billing can be carried out with the schema. The key for this rate is displayed in the schema header. The steps for this rate are added at the end of the schema.