Ansicht
Dokumentation

ISU__CE_SOC1 - Calculate Social Benefits from Amounts in Installation Facts

ISU__CE_SOC1 - Calculate Social Benefits from Amounts in Installation Facts

rdisp/max_wprun_time - Maximum work process run time   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Operands

AMOUNT Name of operand with stored Social Benefit amount (please see hints bellow)
AMOUNT Amount of Social Benefit calculated in current period (this will be added to result)
AMOUNT Amount of Social Benefit used from start of period (this will be subtracted from result)

AMOUNT
AMOUNT Output amount with calculated social benefit for billing period

Functionality

This variant program will calculate amount of social benefit for one contract (VERTRAG). Maximum amount is taken from database table Social Benefits: Store Amounts of Social Benefits per Periods (transaction SE16 - /SAPCE/IUUA_SBEN) and is compared with amount from installation facts (it could be either estimated or real). All smaller values for previous months are summed and outputted.

Social benefit is a special type of benefits based on professional features. It is offered to consumers employed in education, medicine and culture (but are not pensioners).

Social benefits are proposed for customers for the previous month, i.e. in May subsidy authority provide lists for April. Therefore, benefit calculation takes place a month later, not month to month, as it is with all other benefits. It is also possible to have a situation when the lists are provided for several previous periods, i.e. in May for March and April.

Info lines and control options

One info line for each social benefit in history is written here.

Example

Social benefit information for March and April proposed in May 2006:

Full name Account no. Amount March Amount April Cons. Norm
Petrov P.P. 123456 2.43 UAH 4.32 UAH 30 kWh
Ivanov I.I. 456798 5.85 UAH 4.32 UAH 30 kWh
Zacharenko Z.Z. 329092 4.32 UAH --- 30 kWh

Social benefits are valid from 01-MAR-2006 till 31-MAR-2006 and from 01-APR-2006 till 30-APR-2006 and all of them will be billed in period 01-MAY-2006 till 31-MAY-2006.

If the customer Petrov P.P. has in April consumption equal to consumption norm 30 kWh and the price will be 0,144 UAH per kWh (including VAT) so the social benefit in this case will be 4.32 UAH - amount proposed.

Proposed value of social benefit for customer Petrov P.P. in April is 4.32 UAH (which correspond to consumption norm 30 kWh). But this customer has consumption only 25 kWh, price is 0,144 UAH per kWh (including VAT) so the social benefit in this case will be 3.60 UAH - amount provided.

This variant program will write two info lines for March and April provided social amount and summed value on output.

Notes

Here is example how could be social benefits stored into installation facts:

Step Variant Program Input Parameter Input Parameter Output Parameter
1 _CE_BEN1   QUANT(old)
2 IF01 QUANT(max) > QUANT(old)
3 QUANTI02 QUANT(max) - QUANT(old) QUANT(calc)
4 IF01 QUANT(calc) > QUANT(new)
5 QUANTI14 QUANT(new)   QUANT(calc)
6 ENDIF
7 QUANTI01 QUANT(calc) QPRICE AMOUNT
8 INFACT06 AMOUNT   AMOUNT
9 ENDIF

In step 1) read quantity QUANT(old) from installation facts from beginning of month to day before billing period. If this amount is smaller then consumption norm QUANT(max) - step 2) - subtract this value from consumption norm in step 3) and mark it as calculated consumption QUANT(calc). For example consumption norm is set to 30 kWh, consumption in period 1.1. - 10.1. was 10 kWh, so the amount of subsidy will be calculated from 20 kWh.

If calculated value is larger than new consumption QUANT(new) - step 4) - than amount from new value will be counted only - step 5).

Amount is calculated in this simple example only in one step from price and result quantity - step 7). This amount is then stored in installation facts - step 8).

Further information





Parameters

XY_OBJ
XY_SOBJ
X_OP
X_RED
X_SS

Exceptions

GENERAL_FAULT
REGULAR_ERROR

Function Group

CE/SAPLIUUA_SOC_BENEFITS

BAL_S_LOG - Application Log: Log header data   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 7093 Date: 20240523 Time: 111243     sap01-206 ( 83 ms )