Utility Report Base
Utility Report Base
Page 1 of 11
Tolaram SAP S4 HANA implementation
Table of Contents
Revision History.......................................................................................................................... 2
References................................................................................................................................. 2
Responsible Persons................................................................................................................... 4
1 Reference Documents.......................................................................................................... 5
3 Purpose................................................................................................................................ 5
4 Scope................................................................................................................................... 6
7.1 Enhancement...........................................................................................7
7.1.1 Design of desired enhancement...................................................7
7.1.2 Standard Form Model...................................................................8
7.1.3 Desired Output.............................................................................8
8 Exception Handling............................................................................................................... 9
9 Dependencies....................................................................................................................... 9
10 Constraints........................................................................................................................... 9
11 Authorizations....................................................................................................................... 9
12 Impact Analysis..................................................................................................................... 9
Page 2 of 11
Tolaram SAP S4 HANA implementation
Revision History
References
Reader should read this document in conjunction with the following documents
Responsible Persons
1 Consultant
Acronym Description
Page 3 of 11
Tolaram SAP S4 HANA implementation
1 Reference Documents
3 Purpose
4 Scope
Since Utility Order settlement and Allocation cycle will be run periodically, every Month-end, the variances will be
available only after the month-end cycle is run. To enable Business get a Daily picture of Utility costs, a Report as per
attached XLS file is required.
Page 4 of 11
Tolaram SAP S4 HANA implementation
In OTA Plant, the Power produced is used between Noodles and Seasoning Plants. This is recorded as Power
consumption in KWH as per Meter reading in SKF, on a daily basis. This will be used to distribute the Power costs
between Noodles and Seasoning.
6 Process Logic
6.1 Enhancement
Z Tables to be created/modified
Selection Screen
Allow only A110 or A810 in Plant field. Else, throw Error – This Report is only for OTA Plants
Selection Logic
If Utility Drop-down is Power, then Variable PLSTAR = 1000, if Steam, then PLSTAR = 2000.
If PLSTAR = 1000, Get Power Meter readings from SKF Data. Read COBK with KOKRS = 1000, VRGNG
= RKS, BUDAT = Posting Date. Get BELNR. If COBK-STOKZ = X or STFLG = X, Ignore as these are
Page 5 of 11
Tolaram SAP S4 HANA implementation
Reversed documents. Pass COBK-BELNR to COEPR-BELNR, get SMEBTR (Qty or KWH), STAGR
(Meter Area – Seasoning or Noodles)
Create 2 Fields in this Internal Table IT1 to store Allocation % based on STAGR.
Field 1 - NALLOC = ( SMEBTR per BUDAT where STAGR = ONL001 / Sum of SMEBTR per BUDAT)
Example from above data – 8000 / 8000+2000
Field 2 - SALLOC = ( SMEBTR per BUDAT where STAGR = OSM001 / Sum of SMEBTR per BUDAT)
Example from above data – 2000 / 8000+2000
Read all Data from ZCO_UTIL_AOP for given Plant, Year (from Posting date), LSTAR = PLSTAR. If no
data exists, give Error message and exit. Error Message – AOP data not maintained for Plant xxxx in
ZCO_UTIL_AOP Table
Page 6 of 11
Tolaram SAP S4 HANA implementation
If PLSTAR = 1000 and Plant is A810, pass A110 instead to AUFM for Consumption Data.
Get above fields + SHKZG, DMBTR, WAERS, MENGE, MEINS, AUFNR. Filter AUFNR with AUFK-
AUFNR where AUFK-AUART = ZUTL.
Revision V1.2
Filter AUFNR with AFKO-AUFNR, Pass PLNBEZ = ‘20000000’ IF PLSTAR = 1000 or PLNBEZ =
‘20000001’ IF PLSTAR = 2000.
Only 1 Order from AUFM for PLSTAR – 1000 (PLNBEZ – 20000000) after Filtering AFKO-AUFNR
Page 7 of 11
Tolaram SAP S4 HANA implementation
Summarise DMBTR and MENGE data per posting date and Material. If AUFM-BWART is 262, multiply
DMBTR and MENGE with -1 before totalling per BUDAT and MATNR
Pass Posting Date range to COBK-BUDAT with COBK-VRGNG = RKL and get BELNR. Pass COBK-
BELNR to COEP-BELNR, Plant to COEP-WERKS, Utility to COEP-PLSTAR, COEP-KOKRS = 1000,
COEP-VERSN = 0
Page 8 of 11
Tolaram SAP S4 HANA implementation
If SUMMARY Checkbox is not Ticked – we will present data Date-wise as per attached Output.
For each Data Line in ZCO_AOP_MASTER1, match MATNR and attach data from Step 2 as additional
fields. See below how data should be combined.
For each line in above step, match Posting Date in Step 3 and attach data. Since there are 2 Materials, same
line from Step 3 will be attached to each Material Line.
If SUMMARY is Ticked.
In Table IT3, SUM DMBTR, MENGE per MATNR. For BWART = 262, multiply with -1
Not Applicable.
Page 9 of 11
Tolaram SAP S4 HANA implementation
7 Exception Handling
8 Dependencies
9 Constraints
10 Authorizations
11 Impact Analysis
12 Test Specification
6
7
8
Page 10 of 11
Tolaram SAP S4 HANA implementation
9
10
11
12
13
14
15
16
Page 11 of 11