Вы находитесь на странице: 1из 28

Project:19189

SAP BI Functional Design Document

19189 SAP Template

BI FUNCTIONAL DESIGN DOCUMENT

Author: Joseph
Version: 0.1
Status: Draft

Kingfisher Group Confidential

Author: Shashank Dighe Page 1 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Document location
The most current version of this document is located within:
<link>

Revision History

Version Who Revision Summary of Changes Changes marked


Number Date
0.1 Joseph 19.12.2017 Initial Draft No

Approvals
This document requires the following approvals:
Name Title Sign Off
Michell Clark MI Technical Specialist
Dick MI Solution Architect
Tim MI Team Manager
Mike SAP Enterprise Architect

Distribution
This document has been distributed to:
Name Title

References
No. Title Document Name Date
1
2
3
4

Author: Shashank Dighe Page 2 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

CONTENTS

1. Introduction............................................................................................................................................. 4
1.1. Purpose of the document.................................................................................................................. 4
1.2. Executive Summary.......................................................................................................................... 4
2. Scope....................................................................................................................................................... 4
2.1. Assumptions..................................................................................................................................... 4
3. Data Modelling for Reporting................................................................................................................. 5
3.1. Semantic Data Model........................................................................................................................ 5
4. Application Configuration Settings....................................................................................................... 6
4.1. Business (Standard) Content Activated............................................................................................ 6
4.2. Specific System Configuration Settings Used...................................................................................6
5. Application development....................................................................................................................... 6
5.1. Infoobjects Definition......................................................................................................................... 6
5.2. Data Flow Objects Definition............................................................................................................. 6
5.2.1 DSO: ZSTIO001 Material Cost Prices........................................................................................6
5.2.2 DSO: ZSDTO001 Consolidated Sales Data...............................................................................8
5.2.3 DSO: ZSDRO002 Closing Balance (Weekly)...........................................................................12
5.2.4 DSO: ZSDRO003 Closing Balance (Monthly)..........................................................................14
5.2.5 DSO: ZSDRO001 Sales Order Lifecycle..................................................................................17
5.2.6 Multiprovider: ZSDMO001 Sales Order Well Details................................................................20
5.3. Report Definition............................................................................................................................. 22
5.3.1. ZSD_M001_QR001 (Order Well Movement Detail by Fiscal Week)...........................................22
6. Interfaces............................................................................................................................................... 24
6.1. Inbound Interface Definition............................................................................................................ 24
6.2. Outbound Interface Definition......................................................................................................... 24
7. Batch Operations.................................................................................................................................. 24
7.1. Key Predecessors and Descendants.............................................................................................. 24
7.2. Data Loading Operations................................................................................................................ 24
7.3. Housekeeping Operations.............................................................................................................. 25
8. Roles, Permissions and Authorisations............................................................................................. 25

9. Data Security and Legal Considerations............................................................................................ 25

10. Cutover / Implementation Considerations......................................................................................25

11. Appendices....................................................................................................................................... 25

Author: Shashank Dighe Page 3 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

1. Introduction
1.1. Purpose of the document
The purpose of this document is to highlight in brief the SAP BI solution to meet the OrderWell
Reporting requirement.

1.2. Executive Summary


The business requirement is to have a report to show customer order sales that have not yet
been fulfilled and the expected margin thereon. This report will benefit the AR accountant to
see customer orders not yet fulfilled and act accordingly, and assess sales still to be
recognised e.g. forecasting. The orderwell term refers to the bucket of unfulfilled sales orders.
The orderwell solution exists in legacy SAP BW system but is highly customized and complex.
Similar solution will be replicated in new SAP BI system but using the standard functionality
and limiting the customization to minimum. The orderwell data flow will be built on top of the
SAP business component delivering the report in BOBJ (WEBI) solution.
The main source of data for this report is SAP sales and billing but report will also incorporate
purchase order data.

2. Scope

2.1. Assumptions

Assumptions
Items believed to be true for and project limits based on the work done in the Business Requirements Definition and High Level Design, can be
further developed

Orderwell reporting solution is similar for all OPCOs


The orderwell balance snapshot will be held at weekly and monthly levels only
SAP has completed the build of the sales order development flow
Margins will be based on the moving average cost at the time when order is created or changed and will
not reflect the cost at the time of running the report
Only sales from new SAP ECC will be included in the order well report
0

Author: Shashank Dighe Page 4 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

3. Data Modelling for Reporting


3.1. Semantic Data Model

The orderwell report will consolidate sales items, billing items, sales delivery and purchase items
data on a daily basis. The cost price will be replaced by moving average cost price to reflect at the
time the sales order was created or changed. Discounts and markdowns values will be determined
from the sales orders and billing conditions DSOs. The consolidated information will then be fed to
the weekly and monthly closing balance DSO along with sales order lifecycle DSO.
Closing Balance (Weekly) This will hold the sales order well information at weekly level on day-
to-day basis. This means for the running week, it will give the orderwell balance as per the last
night batch load.
Closing Balance (Monthly) This will hold the sales order well information at monthly level on
day-to-day basis. This means for the running month, it will give the orderwell balance as per the
last night batch load.
Sales Order Lifecycle This will hold the history of changes to the sales orders segregating each
line as new, amended, returned or cancelled.
The three DSOs will be combined in a multiprovider on top of which BEx queries will be created to
act as source for universes on which BOBJ reports will be created.

Author: Shashank Dighe Page 5 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

4. Application Configuration Settings


4.1. Business (Standard) Content Activated
NA

4.2. Specific System Configuration Settings Used


NA

5. Application development
5.1. Infoobjects Definition

Characteristic Definitions
Characteristics
Technical name Description Data Length Comments
Type
ZCFULROUT Fulfilment Route CHAR 1
Delivery /Collection
ZCDELCOLF
Flag CHAR 1
ZCNORDFLG New Order Flag CHAR 1
ZCCANCFLG Cancellation Flag CHAR 1
ZCAMENFLG Amendment Flag CHAR 1
ZCMDWNFLG Markdown Flag CHAR 1
ZCDISCFLG Discount Flag CHAR 1
ZCBILLFLG Billing Flag CHAR 1

KPI and Key Figure Definitions


KPI / Key Figure
Technical name Description Data Type
ZKMARKDWN SO Markdown Value Amount - CURR
ZKGVALINV Billing Gross Value Amount - CURR
ZKMDWNINV Billing Markdown Value Amount - CURR
ZKDISCINV Billing Discount Value Amount - CURR

5.2. Data Flow Objects Definition


5.2.1 DSO: ZSTIO001 Material Cost Prices
This DSO will hold the material cost prices along with average moving cost prices with history of
cost price changes. The DSO structure will be as per table:

Tech Name Description Key


0COMP_COD
E Company code Yes
0MATERIAL Material Yes
0DATEFROM Valid from Yes
0PLANT Plant Yes
0PRICE_TYPE Price Type Yes

Author: Shashank Dighe Page 6 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

0DATETO Valid to
0PRICE_MAT Material Price
0PRICE_BAS
E Base Quantity for Price
0CURRENCY Currency key
0UNIT Unit of measure
0CURTYPE Currency Type
0PRICE_CTR
L Price Control Indicator
0STLMT_CTR Price Determination
L Control
0VALUATION Valuation view
0VAL_CLASS Valuation class
0VAL_TYPE Valuation type

This DSO will be sourced via SAP standard extractor 0CO_PC_ACT_05. An enhancement to the
extractor will be added to derive date of price change with look up to MBEW table on which the
extractor is based. The transformation mapping is as shown below:

Source (Datasource:
0CO_PC_ACT_05) Target (DSO: ZSTIO001)
Tech Tech
Name Description Mapping Name Description
COMP_CO 0COMP_CO
DE Company code 1:1 DE Company code
MATERIAL Material 1:1 0MATERIAL Material
1:1
End 0DATEFRO
ZZ_LAEPR Date of price change Routine M Valid From
PLANT Plant 1:1 0PLANT Plant
PRICE_TYP Price Type (Valuation 0PRICE_TY
E Method) 1:1 PE Price Type
Constant
31.12.999
9 0DATETO Valid To
0PRICE_MA
MATPRICE Standard price 1:1 T Material Price
PRICE_BA 0PRICE_BA
SE Price Unit 1:1 SE Base Quantity for Price
CURRENC 0CURRENC
Y Currency key 1:1 Y Currency key
UNIT Base Unit of Measure 1:1 0UNIT Unit of measure
CURTYPE Currency type 1:1 0CURTYPE Currency Type
PRICE_CT 0PRICE_CT
RL Price Control Indicator 1:1 RL Price Control Indicator
STLMT_CT Article Price 0STLMT_CT Price Determination
RL Determination 1:1 RL Control
VALUATIO 0VALUATIO
N Valuation View 1:1 N Valuation view
VAL_CLAS 0VAL_CLAS
S Valuation Class 1:1 S Valuation class
VAL_TYPE Valuation Type 1:1 0VAL_TYPE Valuation type

Author: Shashank Dighe Page 7 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Start Routine:

Loop through source package where price change date is blank and populate it with run date.
Drop everything where price change is not equal to run date.

End Routine:

Get all records from target DSO comparing result package comp code, material, plant and price
type where valid to date is 31.12.9999
Loop through result package and check if record exist in target DSO. If found change end date
of target record to start date 1 from result package record. Append this record.

The DSO will be a full load from the source for the current fiscal period and price types P01
(Standard Price) and P02 (Moving average price).

5.2.2 DSO: ZSDTO001 Consolidated Sales Data


This DSO will be fed from different sales sources to consolidate required information from all
these sources. The main sources of data will be sales order and billing item DSOs, which will
feed order and billing information and will help to flag cancellations, amendments and new
orders. It will also get purchase order number (if one exists) and vendor number for the sales
order from the PO line item DSO and forecast delivery date from the sales delivery DSO. The
DSO structure will be as per table:

Tech Name Description Key


0COMP_COD
E Company code Yes
0DOC_NUMB
ER Sales document Yes
0S_ORD_ITE
M BW: Document Item Yes
0DOC_TYPE Sales doc. Type
0PLANT Plant
0MATERIAL Material
0BASE_UOM Base Unit of Measure
0SALES_UNI
T Sales Unit
0EANUPC EAN Number
0SOLD_TO Sold to party
0SALESORG Sales Organization
0SALES_OFF Sales Office
0CREATEDO
N Created on
0DISTR_CHA
N Distribution Channel
0CUST_GRO
UP Customer Group
0SHIP_POINT Shipping Point
0ITEM_CATE
G Item Category
0OI_EBELN PO Document Number
0REASON_R
EJ Reason for rejection
0REJECTN_S Rejection status

Author: Shashank Dighe Page 8 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Tech Name Description Key


T
0VENDOR Vendor
ZCFULROUT Fulfilment Route
ZCDELCOLF Delivery /Collection Flag
0SO_I_CNT No. of SO Items
0CH_ON Changed on
0DOC_CURR
CY Document Currency
0CONF_DATE Confirmed Delivery Date
0BILL_NUM Billing Number
0BILL_ITEM Billing Item
0BILL_DATE Billing Date
0NET_VALUE SO Net Value
0TAX_VALUE SO Tax Value
0SUBTOTAL_
6 SO Gross Value
0CML_OR_Q
TY Order quantity
ZKMARKDW
N SO Markdown Value
0QUANT_B Sales Quantity at BUOM
0RPA_REA SO Discount Value
0COST Cost
0INV_QTY Billing Quantity
0NETVAL_IN
V Billing Net Value
0TAX_AMOU
NT Billing Tax Value
ZKGVALINV Billing Gross Value
ZKMDWNINV Billing Markdown Value
ZKDISCINV Billing Discount Value

Below is the mapping for the data from sales line item DSO. This will be loaded via a delta DTP.

Source (DSO: /IMO/SD_D11) Target (DSO: ZSDTO001)


Tech Name Description Mapping Tech Name Description
0COMP_COD 0COMP_COD
E Company code 1:1 E Company code
0DOC_NUMB 0DOC_NUMB
ER Sales document 1:1 ER Sales document
0S_ORD_ITE 0S_ORD_ITE
M BW: Document Item 1:1 M BW: Document Item
0DOC_TYPE Sales doc. type 1:1 0DOC_TYPE Sales doc. type
0PLANT Plant 1:1 0PLANT Plant
0MATERIAL Material 1:1 0MATERIAL Material
0EANUPC EAN Number 1:1 0EANUPC EAN Number
Base Unit of Base Unit of
0BASE_UOM Measure 1:1 0BASE_UOM Measure
0SALES_UNI Sales Unit 1:1 0SALES_UNI Sales Unit

Author: Shashank Dighe Page 9 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Source (DSO: /IMO/SD_D11) Target (DSO: ZSDTO001)


Tech Name Description Mapping Tech Name Description
T T
0SOLD_TO Sold to party 1:1 0SOLD_TO Sold to party
0SALESORG Sales Organization 1:1 0SALESORG Sales Organization
0SALES_OFF Sales Office 1:1 0SALES_OFF Sales Office
0CREATEDO 0CREATEDO
N Created on 1:1 N Created on
0DISTR_CHA Distribution 0DISTR_CHA Distribution
N Channel 1:1 N Channel
0CUST_GRO 0CUST_GRO
UP Customer Group 1:1 UP Customer Group
0SHIP_POINT Shipping Point 1:1 0SHIP_POINT Shipping Point
0ITEM_CATE 0ITEM_CATE
G Item Category 1:1 G Item Category
0REASON_R 0REASON_R
EJ Reason for rejection 1:1 EJ Reason for rejection
0REJECTN_S 0REJECTN_S
T Rejection status 1:1 T Rejection status
0ITEM_CATE
G Item Category Read Master Data ZCFULROUT Fulfilment Route
0SO_I_CNT No. of SO Items 1:1 0SO_I_CNT No. of SO Items
Formula
(If ITEM_CATEG = Z0
11 then C elseif
ITEM_CATEG = ZHOM Delivery /Collection
then D else blank) ZCDELCOLF Flag
Formula
0CH_ON (IF CH_ON initial
0CREATEDO Changed on populate CREATEDON
N Created on ELSE CH_ON) 0CH_ON Changed on
0DOC_CURR 0DOC_CURR
CY Document Currency 1:1 CY Document Currency
0NET_VALUE SO Net Value 1:1 0NET_VALUE SO Net Value
0TAX_VALUE SO Tax Value 1:1 0TAX_VALUE SO Tax Value
0SUBTOTAL_ 0SUBTOTAL_
6 SO Gross Value 1:1 6 SO Gross Value
0CML_OR_Q 0CML_OR_Q
TY Order quantity 1:1 TY Order quantity
Sales Quantity at Sales Quantity at
0QUANT_B BUOM 1:1 0QUANT_B BUOM
ZKMARKDW
End Routine N SO Markdown Value
End Routine 0RPA_REA SO Discount Value
0COST Cost 1:1 0COST Cost

Start Routine:

Delete source_package where 0DOC_CATEG NE O

Look up on item_categ master data to get item categories relevant to billing in a range table. These
can be identified where 0CCMBLUS is not initial.
Delete source_package where item_categ is not in the range table

Author: Shashank Dighe Page 10 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

This will pass only billing relevant sales orders to the consolidated DSO.

End Routine:

Get Billing Order Conditions with condition types (0KNART) ZZ03 to ZZ05 and ZZ07 to ZZ09 for the
sales order & items from DSO /IMO/SD_D14 for all entries of sales order & items in the
result_package. Sum of values (condition values 0KNVAL) for condition types ZZ03 to ZZ05 will give
total discount value 0RPA_REA and sum of values (condition values 0KNVAL) for condition types
ZZ07 to ZZ09 will give total billing markdown value ZKMARKDWN.

* Make sure that values are ve and at document currency

Below is the mapping for the data from billing line item DSO. This will be loaded via a delta DTP.

Source (DSO: /IMO/SD_D31) Target (DSO: ZSDTO001)


Tech Name Description Mapping Tech Name Description
0COMP_COD 0COMP_COD
E Company code 1:1 E Company code
0DOC_NUMB 0DOC_NUMB
ER Sales document 1:1 ER Sales document
0S_ORD_ITE BW: Document 0S_ORD_ITE BW: Document
M Item 1:1 M Item
Routine to populate
run_date0 0CH_ON Changed on
0DOC_CURR Document 0DOC_CURR Document
CY Currency 1:1 CY Currency
0BILL_NUM Billing Number 1:1 0BILL_NUM Billing Number
0BILL_ITEM Billing Item 1:1 0BILL_ITEM Billing Item
0BILL_DATE Billing Date 1:1 0BILL_DATE Billing Date
0INV_QTY Billing Quantity 1:1 0INV_QTY Billing Quantity
0NETVAL_IN
0NETVAL_INV Billing Net Value 1:1 V Billing Net Value
0TAX_AMOU 0TAX_AMOU
NT Billing Tax Value 1:1 NT Billing Tax Value
0SUBTOTAL_
6 Billing Gross Value 1:1 ZKGVALINV Billing Gross Value
Billing Markdown
End Routine ZKMDWNINV Value
Billing Discount
End Routine ZKDISCINV Value

Start Routine:

Delete source_package where 0BILL_CAT = W

This will drop the POS billing docs as they are not required for orderwell

Look up on item_categ master data to get item categories relevant to billing in a range table. These
can be identified where 0CCMBLUS is not initial.
Delete source_package where item_categ is not in the range table

This will pass only billing relevant orders to the consolidated DSO.

End Routine:

Author: Shashank Dighe Page 11 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Get Billing Order Conditions with condition types (0KNART) ZZ03 to ZZ05 and ZZ07 to ZZ09 for the sales
order & items from DSO /IMO/SD_D14 for all entries of sales order & items in the result_package. Sum of
values (condition values 0KNVAL) for condition types ZZ03 to ZZ05 will give total discount value ZKDISCINV
and sum of values (condition values 0KNVAL) for condition types ZZ07 to ZZ09 will give total billing
markdown value ZKMDWNINV
.

* Make sure that values are ve and at document currency

Below is the mapping for the data from PO item DSO. This will be loaded via a delta DTP.

Source (DSO: ZMMAO002) Target (DSO: ZSDTO001)


Tech Name Description Mapping Tech Name Description
0COMP_COD 0COMP_COD
E Company code 1:1 E Company code
0DOC_NUMB 0DOC_NUMB
ER Sales document 1:1 ER Sales document
BW: Document 0S_ORD_ITE BW: Document
0DOC_ITEM Item 1:1 M Item
Purchase Order
0OI_EBELN No. 1:1 0OI_EBELN Purchase Order No.
0VENDOR Vendor 1:1 0VENDOR Vendor

Start Routine:

Delete source_package where DOC_NUMBER is initial


Delete source_package where RECORDMODE is R

We only need POs for sales orders and if a record with recordmode R is updated in the consolidated
DSO, it will delete the entire record.

Below is the mapping for the data from PO item DSO. This will be loaded via a delta DTP.

Source (DSO: /IMO/SD_D53) Target (DSO: ZSDTO001)


Tech Name Description Mapping Tech Name Description
0COMP_COD 0COMP_COD
E Company code 1:1 E Company code
0DOC_NUMB 0DOC_NUMB
ER Sales document 1:1 ER Sales document
BW: Document 0S_ORD_ITE BW: Document
0DOC_ITEM Item 1:1 M Item
0CONF_DAT
0CONF_DATE Confirmed Date 1:1 E Confirmed Date

Start Routine:

Delete source_package where DOC_CATEG is not equal to C


Delete source_package where RECORDMODE is R

We only need sales orders and if a record with recordmode R is updated in the consolidated DSO, it
will delete the entire record.

SORT BY DOC_NUMBER S_ORD_ITEM CONF_DATE DESCENDING.


Delete adjacent duplicates comparing doc number and item to get unique record for doc and item

Author: Shashank Dighe Page 12 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

5.2.3 DSO: ZSDRO002 Closing Balance (Weekly)


This DSO will be fed from consolidated sales DSO and will hold weekly orderwell snapshot
(WTD for current week) The data can be sliced by fiscal week or calendar week as per
requirement. This DSO will hold the closing balance of the SAP sales for each week. The DSO
structure will be as per table:

Tech Name Description Key


0COMP_COD
E Company code Yes
0DOC_NUMB
ER Sales document Yes
0S_ORD_ITE
M BW: Document Item Yes
0FISCPER Fiscal Period Yes
0CALWEEK Calendar Week Yes
0FISCVARNT Fiscal Variant Yes
0DOC_TYPE Sales doc. type
0PLANT Plant
0MATERIAL Material
0EANUPC EAN Number
0BASE_UOM Base Unit of Measure
0SALES_UNI
T Sales Unit
0SOLD_TO Sold to party
0SALESORG Sales Organization
0SALES_OFF Sales Office
0CREATEDO
N Created on
0DISTR_CHA
N Distribution Channel
0OI_EBELN PO Document Number
0REASON_R
EJ Reason for rejection
0REJECTN_S
T Rejection status
0VENDOR Vendor
0CONF_DATE Delivery Date
ZCFULROUT Fulfilment Route
ZCDELCOLF Delivery /Collection Flag
0SO_I_CNT No. of SO Items
0DOC_CURR
CY Document Currency
0CONF_DATE Confirmed Delivery Date
0NET_VALUE SO Net Value
0TAX_VALUE SO Tax Value
0SUBTOTAL_
6 SO Gross Value
0CML_OR_Q
TY Order quantity
ZKMARKDW
N SO Markdown Value

Author: Shashank Dighe Page 13 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Tech Name Description Key


0RPA_REA SO Discount Value
0COST Cost

Below is the mapping for the data from sales line item DSO. This will be loaded via a full DTP.

Source (DSO: ZSDTO001) Target (DSO: ZSDRO002)


Tech Name Description Mapping Tech Name Description
0COMP_COD 0COMP_COD
E Company code 1:1 E Company code
0DOC_NUMB 0DOC_NUMB
ER Sales document 1:1 ER Sales document
0S_ORD_ITE 0S_ORD_ITE
M BW: Document Item 1:1 M BW: Document Item
Routine to derive from
RUN_DATE 0FISPER Fiscal Period
Routine to derive from
RUN_DATE 0CALWEEK Calendar Week
Constant BW 0FISCVARNT Fiscal Variant
0DOC_TYPE Sales doc. type 1:1 0DOC_TYPE Sales doc. type
0PLANT Plant 1:1 0PLANT Plant
0MATERIAL Material 1:1 0MATERIAL Material
0EANUPC EAN Number 1:1 0EANUPC EAN Number
Base Unit of
0BASE_UOM Base Unit of Measure 1:1 0BASE_UOM Measure
0SALES_UNI 0SALES_UNI
T Sales Unit 1:1 T Sales Unit
0SOLD_TO Sold to party 1:1 0SOLD_TO Sold to party
0SALESORG Sales Organization 1:1 0SALESORG Sales Organization
0SALES_OFF Sales Office 1:1 0SALES_OFF Sales Office
0CREATEDO 0CREATEDO
N Created on 1:1 N Created on
0DISTR_CHA 0DISTR_CHA Distribution
N Distribution Channel 1:1 N Channel
PO Document PO Document
0OI_EBELN Number 1:1 0OI_EBELN Number
0REASON_R 0REASON_R
EJ Reason for rejection 1:1 EJ Reason for rejection
0REJECTN_S 0REJECTN_S
T Rejection status 1:1 T Rejection status
0VENDOR Vendor 1:1 0VENDOR Vendor
0CONF_DAT
E Delivery Date 1:1 0CONF_DATE Delivery Date
ZCFULROUT Fulfilment Route 1:1 ZCFULROUT Fulfilment Route
Delivery /Collection Delivery /Collection
ZCDELCOLF Flag 1:1 ZCDELCOLF Flag
0SO_I_CNT No. of SO Items 1:1 0SO_I_CNT No. of SO Items
0DOC_CURR 0DOC_CURR
CY Document Currency 1:1 CY Document Currency
0CONF_DAT Confirmed Delivery Confirmed Delivery
E Date 1:1 0CONF_DATE Date
0NET_VALUE SO Net Value Formula 0NET_VALUE SO Net Value

Author: Shashank Dighe Page 14 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Source (DSO: ZSDTO001) Target (DSO: ZSDRO002)


Tech Name Description Mapping Tech Name Description
0NETVAL_IN (0NET_VALUE -
V Billing Net Value 0NETVAL_INV)
0TAX_VALUE Formula
0TAX_AMOU SO Tax Value (0TAX_VALUE
NT Billing Tax Value 0TAX_AMOUNT) 0TAX_VALUE SO Tax Value
0SUBTOTAL_ Formula
6 SO Gross Value (0SUBTOTAL_6 0SUBTOTAL_
ZKGVALINV Billing Gross Value ZKGVALINV) 6 SO Gross Value
0CML_OR_Q Formula
TY Order quantity (0CML_OR_QTY 0CML_OR_Q
0INV_QTY Billing Quantity 0INV_QTY) TY Order quantity
ZKMARKDW SO Markdown Value Formula
N Billing Markdown (ZKMARKDWN ZKMARKDW
ZKMDWNINV Value ZKMDWNINV) N SO Markdown Value
0RPA_REA SO Discount Value Formula
ZKDISCINV Billing Discount Value (0RPA_REA ZKDISCINV) 0RPA_REA SO Discount Value
End Routine 0COST Cost

Start Routine:

Delete from source package where 0ITEM_CATEG IS INITIAL.


Delete from source package where recordmode is X

Fetch the run date from parameter table( get fetch run date using FM
ZBW_FM_FETCH_RUN_DATE) and determine the running fiscal period.

Fetch from target DSO all entries for sales order & items matching source package for running fiscal
period.

If source package order and billing qty is equal or rejection status is C,


check if the source record exist in the target DSO. If it exists and order qty is zero, mark the record
for deletion
else clear all required KFs in the target..
If the source record doesnt exist in the target mark the record for deletion.

Delete the records from source package which are marked for deletion.

The above code basically will run like this:

If source_package-bill_qty = source_package-ord_qty
OR source_package-rejection_st = C.

READ target DSO to check if source sales already exist.


IF sy-subrc = 0.
If order_qty = 0.
Mark record for deletion.
Else.
Clear KFs.
Endif.
ELSE.
Mark for deletion.
Endif.
Endif.

Author: Shashank Dighe Page 15 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

End Routine:

Get the latest average moving cost price (0PRICE_MAT where 0PRICE_TYPE = P02) from DSO
ZSTIO001 for article site company code combination. Do currency conversion to bring the value to
document currency if required. Multiply quantity at BUOM with cost price to get actual cost price for
the line item.

5.2.4 DSO: ZSDRO022 Closing Balance (Monthly)


This DSO will be fed from consolidated sales DSO and will hold monthly orderwell snapshot
(MTD for current week). This DSO will hold the closing balance of the SAP sales for each
month. The DSO structure will be as per table:

Tech Name Description Key


0COMP_COD
E Company code Yes
0DOC_NUMB
ER Sales document Yes
0S_ORD_ITE
M BW: Document Item Yes
0CALMONTH Calendar Month Yes
0DOC_TYPE Sales doc. type
0PLANT Plant
0MATERIAL Material
0EANUPC EAN Number
0BASE_UOM Base Unit of Measure
0SALES_UNI
T Sales Unit
0SOLD_TO Sold to party
0SALESORG Sales Organization
0SALES_OFF Sales Office
0CREATEDO
N Created on
0DISTR_CHA
N Distribution Channel
0OI_EBELN PO Document Number
0REASON_R
EJ Reason for rejection
0REJECTN_S
T Rejection status
0VENDOR Vendor
0CONF_DATE Delivery Date
ZCFULROUT Fulfilment Route
ZCDELCOLF Delivery /Collection Flag
0SO_I_CNT No. of SO Items
0DOC_CURR
CY Document Currency
0CONF_DATE Confirmed Delivery Date
0NET_VALUE SO Net Value
0TAX_VALUE SO Tax Value

Author: Shashank Dighe Page 16 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Tech Name Description Key


0SUBTOTAL_
6 SO Gross Value
0CML_OR_Q
TY Order quantity
ZKMARKDW
N SO Markdown Value
0RPA_REA SO Discount Value
0COST Cost

Below is the mapping for the data from sales line item DSO. This will be loaded via a full DTP.

Source (DSO: ZSDTO001) Target (DSO: ZSDRO022)


Tech Name Description Mapping Tech Name Description
0COMP_COD 0COMP_COD
E Company code 1:1 E Company code
0DOC_NUMB 0DOC_NUMB
ER Sales document 1:1 ER Sales document
0S_ORD_ITE 0S_ORD_ITE
M BW: Document Item 1:1 M BW: Document Item
Routine to derive from
RUN_DATE 0CALMONTH Calendar Month
0DOC_TYPE Sales doc. type 1:1 0DOC_TYPE Sales doc. type
0PLANT Plant 1:1 0PLANT Plant
0MATERIAL Material 1:1 0MATERIAL Material
0EANUPC EAN Number 1:1 0EANUPC EAN Number
Base Unit of
0BASE_UOM Base Unit of Measure 1:1 0BASE_UOM Measure
0SALES_UNI 0SALES_UNI
T Sales Unit 1:1 T Sales Unit
0SOLD_TO Sold to party 1:1 0SOLD_TO Sold to party
0SALESORG Sales Organization 1:1 0SALESORG Sales Organization
0SALES_OFF Sales Office 1:1 0SALES_OFF Sales Office
0CREATEDO 0CREATEDO
N Created on 1:1 N Created on
0DISTR_CHA 0DISTR_CHA Distribution
N Distribution Channel 1:1 N Channel
PO Document PO Document
0OI_EBELN Number 1:1 0OI_EBELN Number
0REASON_R 0REASON_R
EJ Reason for rejection 1:1 EJ Reason for rejection
0REJECTN_S 0REJECTN_S
T Rejection status 1:1 T Rejection status
0VENDOR Vendor 1:1 0VENDOR Vendor
0CONF_DAT
E Delivery Date 1:1 0CONF_DATE Delivery Date
ZCFULROUT Fulfilment Route 1:1 ZCFULROUT Fulfilment Route
Delivery /Collection Delivery /Collection
ZCDELCOLF Flag 1:1 ZCDELCOLF Flag
0SO_I_CNT No. of SO Items 1:1 0SO_I_CNT No. of SO Items
0DOC_CURR 0DOC_CURR
CY Document Currency 1:1 CY Document Currency
0CONF_DAT Confirmed Delivery 1:1 0CONF_DATE Confirmed Delivery

Author: Shashank Dighe Page 17 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Source (DSO: ZSDTO001) Target (DSO: ZSDRO022)


Tech Name Description Mapping Tech Name Description
E Date Date
0NET_VALUE Formula
0NETVAL_IN SO Net Value (0NET_VALUE -
V Billing Net Value 0NETVAL_INV) 0NET_VALUE SO Net Value
0TAX_VALUE Formula
0TAX_AMOU SO Tax Value (0TAX_VALUE
NT Billing Tax Value 0TAX_AMOUNT) 0TAX_VALUE SO Tax Value
0SUBTOTAL_ Formula
6 SO Gross Value (0SUBTOTAL_6 0SUBTOTAL_
ZKGVALINV Billing Gross Value ZKGVALINV) 6 SO Gross Value
0CML_OR_Q Formula
TY Order quantity (0CML_OR_QTY 0CML_OR_Q
0INV_QTY Billing Quantity 0INV_QTY) TY Order quantity
ZKMARKDW SO Markdown Value Formula
N Billing Markdown (ZKMARKDWN ZKMARKDW
ZKMDWNINV Value ZKMDWNINV) N SO Markdown Value
0RPA_REA SO Discount Value Formula
ZKDISCINV Billing Discount Value (0RPA_REA ZKDISCINV) 0RPA_REA SO Discount Value
End Routine 0COST Cost

Start Routine:

Delete from source package where 0ITEM_CATEG IS INITIAL.


Delete from source package where recordmode is X

Fetch the run date from parameter table and determine the running fiscal period.
Fetch from target DSO all entries for sales order & items matching source package for running fiscal
period.

If source package order and billing qty is equal or rejection status is C, check if the source record
exist in the target DSO. If it exists and order qty is zero, mark the record for deletion else clear all
required KFs in the target.. If the source record doesnt exist in the target mark the record for
deletion.

Delete the records from source package which are marked for deletion.

End Routine:

Get the latest average moving cost price (0PRICE_MAT where 0PRICE_TYPE = P02) from DSO
ZSTIO001 for article site company code combination. Do currency conversion to bring the value to
document currency if required. Multiply quantity at BUOM with cost price to get actual cost price for
the line item.

5.2.5 DSO: ZSDRO001 Sales Order Lifecycle


This DSO will be fed from consolidated sales DSO and will hold the daily changes to the orders as
well as the new orders. This DSO will hold different flags to indicate the lifecycle of the sales order
that is whether it is a new order, changed order or cancelled order. The DSO will be based on the
following structure:

Tech Name Desc Key


0CH_ON Changed on Yes
0COMP_COD Company code Yes

Author: Shashank Dighe Page 18 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Tech Name Desc Key


E
0DOC_NUMB
ER Sales document Yes
0S_ORD_ITE
M BW: Document Item Yes
0FISCPER Fiscal Period
0CALWEEK Calendar Week
0CALMONTH Calendar Month
0FISCVARNT Fiscal Variant
0DOC_TYPE Sales doc. type
0PLANT Plant
0MATERIAL Material
0EANUPC EAN Number
0SALES_UNI
T Material Unit Measure
0SOLD_TO Sold to party
0SALESORG Sales Organization
0SALES_OFF Sales Office
0CREATEDO
N Created on
0DISTR_CHA
N Distribution Channel
0CUST_GRO
UP Customer Group
0SHIP_POINT Shipping Point
0ITEM_CATE
G Item Category
0OI_EBELN PO Document Number
0REASON_R
EJ Reason for rejection
0REJECTN_S
T Rejection status
0VENDOR Vendor
ZCFULROUT Fulfilment Route
ZCDELCOLF Delivery /Collection Flag
0BASE_UOM Base UOM
0SO_I_CNT No. of SO Items
0DOC_CURR
CY Document Currency
0CONF_DATE Delivery date
ZCNORDFLG New Order Flag
ZCCANCFLG Cancellation Flag
ZCAMENFLG Amendment Flag
ZCMDWNFL
G Markdown Flag
ZCDISCFLG Discount Flag
0BILL_NUM Billing Number
0BILL_ITEM Billing Item
0BILL_DATE Billing Date

Author: Shashank Dighe Page 19 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Tech Name Desc Key


ZCBILLFLG Billing Flag
0NET_VALUE SO Net Value
0TAX_VALUE SO Tax Value
0SUBTOTAL_
6 SO Gross Value
0QUANT_B Sales Qty in BUOM
0CML_OR_Q
TY Order quantity
ZKMARKDW
N SO Markdown Value
0RPA_REA SO Discount Value
0COST Cost
0INV_QTY Billing Quantity
0NETVAL_IN
V Billing Net Value
0TAX_AMOU
NT Billing Tax Value
ZKGVALINV Billing Gross Value
ZKMDWNINV Billing Markdown Value
ZKDISCINV Billing Discount Value

Below are the transformation rules for the above DSO. This will be a delta load. The key figures in the
transformation will be set to summation mode.

Source (DSO: ZSDTO001) Target (DSO: ZSDRO001)


Tech Name Description Mapping Tech Name Description
0CH_ON Changed on 1:1 0CH_ON Changed on
0COMP_COD 0COMP_COD
E Company code 1:1 E Company code
0DOC_NUMB 0DOC_NUMB
ER Sales document 1:1 ER Sales document
0S_ORD_ITE 0S_ORD_ITE
M BW: Document Item 1:1 M BW: Document Item
0CH_ON Changed on 1:1 0FISCPER Fiscal Period
0CH_ON Changed on 1:1 0CALWEEK Calendar Week
0CH_ON Changed on 1:1 0CALMONTH Calendar Month
Constant as BW 0FISCVARNT Fiscal Variant
0DOC_TYPE Sales doc. type 1:1 0DOC_TYPE Sales doc. type
0PLANT Plant 1:1 0PLANT Plant
0MATERIAL Material 1:1 0MATERIAL Material
0EANUPC EAN Number 1:1 0EANUPC EAN Number
0SALES_UNIT Sales Unit Measure 1:1 0SALES_UNIT Sales Unit Measure
0SOLD_TO Sold to party 1:1 0SOLD_TO Sold to party
0SALESORG Sales Organization 1:1 0SALESORG Sales Organization
0SALES_OFF Sales Office 1:1 0SALES_OFF Sales Office
0CREATEDO 0CREATEDO
N Created on 1:1 N Created on
0DISTR_CHA 0DISTR_CHA
N Distribution Channel 1:1 N Distribution Channel

Author: Shashank Dighe Page 20 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Source (DSO: ZSDTO001) Target (DSO: ZSDRO001)


Tech Name Description Mapping Tech Name Description
0CUST_GRO 0CUST_GRO
UP Customer Group 1:1 UP Customer Group
0SHIP_POINT Shipping Point 1:1 0SHIP_POINT Shipping Point
0ITEM_CATE 0ITEM_CATE
G Item Category 1:1 G Item Category
PO Document PO Document
0OI_EBELN Number 1:1 0OI_EBELN Number
0REASON_RE 0REASON_RE
J Reason for rejection 1:1 J Reason for rejection
0REJECTN_ST Rejection status 1:1 0REJECTN_ST Rejection status
0VENDOR Vendor 1:1 0VENDOR Vendor
ZCFULROUT Fulfilment Route 1:1 ZCFULROUT Fulfilment Route
Delivery /Collection Delivery /Collection
ZCDELCOLF Flag 1:1 ZCDELCOLF Flag
0BASE_UOM Base UOM 1:1 0BASE_UOM Base UOM
0SO_I_CNT No. of SO Items 1:1 0SO_I_CNT No. of SO Items
0DOC_CURR 0DOC_CURR
CY Document Currency 1:1 CY Document Currency
0CONF_DATE Delivery date 1:1 0CONF_DATE Delivery date
Formula
(If start date eq
changed date, X) ZCNORDFLG New Order Flag
End Routine ZCCANCFLG Cancellation Flag
End Routine ZCAMENFLG Amendment Flag
End Routine ZCMDWNFLG Markdown Flag
End Routine ZCDISCFLG Discount Flag
0BILL_NUM Billing Number 1:1 0BILL_NUM Billing Number
0BILL_ITEM Billing Item 1:1 0BILL_ITEM Billing Item
0BILL_DATE Billing Date 1:1 0BILL_DATE Billing Date
ZCBILLFLG Billing Flag End Routine ZCBILLFLG Billing Flag
0NET_VALUE SO Net Value End Routine 0NET_VALUE SO Net Value
0TAX_VALUE SO Tax Value End Routine 0TAX_VALUE SO Tax Value
0SUBTOTAL_ End Routine 0SUBTOTAL_
6 SO Gross Value 6 SO Gross Value
0QUANT_B Sales Qty in BUOM End Routine 0QUANT_B Sales Qty in BUOM
0CML_OR_QT End Routine 0CML_OR_QT
Y Order quantity Y Order quantity
ZKMARKDW End Routine ZKMARKDW
N SO Markdown Value N SO Markdown Value
0RPA_REA SO Discount Value End Routine 0RPA_REA SO Discount Value
0COST Cost End Routine 0COST Cost
0INV_QTY Billing Quantity End Routine 0INV_QTY Billing Quantity
0NETVAL_INV Billing Net Value End Routine 0NETVAL_INV Billing Net Value
0TAX_AMOU End Routine 0TAX_AMOU
NT Billing Tax Value NT Billing Tax Value
ZKGVALINV Billing Gross Value End Routine ZKGVALINV Billing Gross Value
Billing Markdown End Routine Billing Markdown
ZKMDWNINV Value ZKMDWNINV Value

Author: Shashank Dighe Page 21 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Source (DSO: ZSDTO001) Target (DSO: ZSDRO001)


Tech Name Description Mapping Tech Name Description
Billing Discount Billing Discount
ZKDISCINV Value End Routine ZKDISCINV Value

Start Routine:

Delete source package where item category is initial and record mode is X.

End Routine:

Move records from result package to internal table and remove duplicate sales order numbers.
Loop through this internal table to populate a range table of sales order numbers.

Fetch from target DSO sales order number, item, changed on date, bill no and item for all sales order
lines matching orders from result package.

Fetch sum(of all required KFs) from target DSO for match sales orders from result package group by
sales order and items.

If result package changed on date is initial fill it with created on date.


If rejection status is C and changed on date is equal to run date, populate the cancellation flag and clear
all the key figures.

Check if result package record is already present in target comparing sales order and item. If present
and changed on date is different and bill no and item are similar. Clear all key figures. If not present,
check if sales order exist, if yes, populate the amendment flag. If billing qty is not initial populate billing
flag and do the same for markdowns and discounts

Read the aggregated internal table and subtract the corresponding KF values from the data package.
Do it for all the KFs.
For markdown and discount KFs check if the result package value is different from the target DSO, if
yes, populate the corresponding markdown and discount flag.
Similarly check for net value KF, if different, cancellation flag is initial and item category is ZSER,
populate amendment flag.
Also check for sales qty KF, if different, cancellation flag is initial, populate amendment flag.
If billing qty is not initial populate the billing flag.

Get the latest average moving cost price (0PRICE_MAT where 0PRICE_TYPE = P02) from DSO
ZSTIO001 for article site company code combination. Do currency conversion to bring the value to
document currency if required. Multiply quantity at BUOM with cost price to get actual cost price for the
line item.

5.2.6 Multiprovider: ZSDMO001 Sales Order Well Details


A multiprovider on top of DSOs ZSDRO001, ZSDRO002 and ZSDRO022 will be created to facilitate
reporting on order balance and details together. The structure of the multiprovider is as below:

Infoproviders Assignment
Dimensio ZSDRO ZSDRO ZSDRO0
n Tech Name Desc 001 002 22
Unit 0SALES_UNI
Sales Unit Measure
T Y Y Y
0BASE_UOM Base UOM Y Y Y

Author: Shashank Dighe Page 22 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Infoproviders Assignment
Dimensio ZSDRO ZSDRO ZSDRO0
n Tech Name Desc 001 002 22
0DOC_CURR Document
CY Currency Y Y Y
0FISCPER Fiscal Period Y Y N
0CALWEEK Calendar Week Y Y N
Time
0CALMONTH Calendar Month Y N Y
0FISCVARNT Fiscal Variant Y Y Y (N)
0DOC_NUMB
Document Sales document
ER Y Y Y
0S_ORD_ITE BW: Document
Document M Item Y Y Y
Item
0DOC_TYPE Sales doc. type Y Y Y
0COMP_COD
Company code
E Y Y Y
0PLANT Plant Y Y Y
Store 0SALESORG Sales Organization Y Y Y
0SALES_OFF Sales Office Y Y Y
0DISTR_CHA Distribution
N Channel Y Y Y
0MATERIAL Material Y Y Y
Material
0EANUPC EAN Number Y Y Y
0SOLD_TO Sold to party Y Y Y
Customer 0CUST_GRO
Customer Group
UP Y Y (N) Y (N)
0CREATEDO
Created on
N Y Y Y
Dates 0CH_ON Changed on Y N N
0CONF_DAT
Delivery date
E Y Y Y
PO Document
PO 0OI_EBELN
Number Y Y Y
Number
0VENDOR Vendor Y Y Y
0REASON_R Reason for
EJ rejection Y Y Y
0REJECTN_S
Rejection status
T Y Y Y
ZCFULROUT Fulfilment Route Y Y Y
Delivery
ZCDELCOLF
/Collection Flag Y Y Y
Flags ZCNORDFLG New Order Flag Y N N
ZCCANCFLG Cancellation Flag Y N N
ZCAMENFLG Amendment Flag Y N N
ZCMDWNFL
Markdown Flag
G Y N N
ZCDISCFLG Discount Flag Y N N
ZCBILLFLG Billing Flag Y N N
Key 0SO_I_CNT No. of SO Items Y Y Y
Figures 0NET_VALUE SO Net Value Y Y Y

Author: Shashank Dighe Page 23 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Infoproviders Assignment
Dimensio ZSDRO ZSDRO ZSDRO0
n Tech Name Desc 001 002 22
0TAX_VALUE SO Tax Value Y Y Y
0SUBTOTAL_
SO Gross Value
6 Y Y Y
0QUANT_B Sales Qty in BUOM Y N N
0CML_OR_Q
Order quantity
TY Y Y Y
ZKMARKDW SO Markdown
N Value Y Y Y
0RPA_REA SO Discount Value Y Y Y
0COST Cost Y Y Y
0INV_QTY Billing Quantity Y N N
0NETVAL_IN
Billing Net Value
V Y N N
0TAX_AMOU
Billing Tax Value
NT Y N N
ZKGVALINV Billing Gross Value Y N N
Billing Markdown
ZKMDWNINV
Value Y N N
Billing Discount
ZKDISCINV
Value Y N N

5.3. Report Definition


5.3.1. ZSD_M001_QR001 (Order Well Movement Detail by Fiscal Week)
This Bex query will define the order well movement report by fiscal week. Below is the
structure of the query:
Query Structure
Description Object Section
Article (Hierarchy) 0MATERIAL Row
Navigati
Selling Store 0PLANT on
Navigati
Raising Store 0SALES_OFF on
Navigati
ZCFULROUT
Fulfilment Route on
Navigati
Category 0MATERIAL__ZCCATGY on
Navigati
Order No 0DOC_NUMBER on
Collection Navigati
ZCDELCOLF
/Delivery on
Navigati
Delivery Date 0CONF_DATE on
Navigati
PO Number 0OI_EBELN on
0MATERIAL__ZCPRBUYG Navigati
Prod Buyer Group P on
Navigati
Prod Sub Group 0MATERIAL__ZCSCATGY on

Author: Shashank Dighe Page 24 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Navigati
Company Code 0COMP_CODE on

Selection /Input Parameters


Selections Object Type Option
by ZSDRO001 & ZQR001_VAR_
Infoprovider 0INFOPROV Constant ZSDRO002 001
Selection ZQR001_VAR_
Company Code 0COMP_CODE Options Optional 002
ZQR001_VAR_
Fiscal Week 0FISCPER Range Mandatory 003
0CURRENCY (trans ZQR001_VAR_
Currency var) Single Entry Mandatory 004
Selection ZQR001_VAR_
Selling Store 0PLANT Options Optional 005
Selection ZQR001_VAR_
Raising Store 0SALES_OFF Options Optional 006
Selection ZQR001_VAR_
ZCFULROUT
Fulfilment Route Options Optional 007
Selection ZQR001_VAR_
Order No 0DOC_NUMBER Options Optional 008
Collection Selection ZQR001_VAR_
ZCDELCOLF
/Delivery Options Optional 009
Selection ZQR001_VAR_
Delivery Date 0CONF_DATE Options Optional 010

Key Figures /KPIs


Typ
Descriptions e Key Figure Restriction /Formula
Infoprovider = ZSDRO002 ZQR001_RKF_001
Net Opening Balance RKF 0NET_VALUE ZCEPPER*
Infoprovider = ZSDRO001 ZQR001_RKF_002
New Order Flag = X
Net New Orders RKF 0NET_VALUE Amendment Flag = #
Infoprovider = ZSDRO001 ZQR001_RKF_003
Net Amendments RKF 0NET_VALUE Amendment Flag = X
ZQR001_RKF_004
Infoprovider = ZSDRO001
New Order Flag = #
Amendment Flag = #
Net Additional Cancellation Flag = #
Discounts RKF 0RPA_REA Discount Flag = X
ZQR001_RKF_005
Infoprovider = ZSDRO001
New Order Flag = #
Amendment Flag = #
Net Additional ZKMARKDW Cancellation Flag = #
Markdowns RKF N Markdown Flag = X
Net Added Net Additional Discounts + ZQR001_CKF_001
Markdowns/Disc CKF Net Additional Markdowns
Infoprovider = ZSDRO001 ZQR001_RKF_006
Net Cancelled RKF 0NET_VALUE Cancellation Flag = X
0NETVAL_IN Infoprovider = ZSDRO001 ZQR001_RKF_007
Net Delivered Sales RKF V Billing Flag = X

Author: Shashank Dighe Page 25 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

Key Figures /KPIs


Typ
Descriptions e Key Figure Restriction /Formula
Infoprovider = ZSDRO002 ZQR001_RKF_008
Net Closing Balance RKF 0NET_VALUE ZCELPER*
Infoprovider = ZSDRO002 ZQR001_RKF_009
Cost RKF 0COST ZCELPER*
ZQR001_CKF_002
Net OrderWell Margin CKF Net Closing Balance - Cost
Gross Opening 0SUBTOTAL_ Infoprovider = ZSDRO002 ZQR001_RKF_010
Balance RKF 6 ZCEPPER*
Infoprovider = ZSDRO001 ZQR001_RKF_011
0SUBTOTAL_ New Order Flag = X
Gross New Orders RKF 6 Amendment Flag = #
0SUBTOTAL_ Infoprovider = ZSDRO001 ZQR001_RKF_012
Gross Cancelled RKF 6 Cancellation Flag = X
Infoprovider = ZSDRO001 ZQR001_RKF_013
Gross Delivered Sales RKF ZKGVALINV Billing Flag = X
Gross Closing 0SUBTOTAL_ Infoprovider = ZSDRO002 ZQR001_RKF_014
Balance RKF 6 ZCELPER*
Gross OrderWell Gross Closing Balance - ZQR001_CKF_003
Margin CKF Cost
Opening Balance Tax Infoprovider = ZSDRO002 ZQR001_RKF_015
Amt RKF 0TAX_VALUE ZCEPPER*
Infoprovider = ZSDRO001 ZQR001_RKF_016
New Order Flag = X
New Orders Tax Amt RKF 0TAX_VALUE Amendment Flag = #
Cancelled Orders Tax Infoprovider = ZSDRO001 ZQR001_RKF_017
Amt RKF 0TAX_VALUE Cancellation Flag = X
Delivered Sales Tax 0TAX_AMOU Infoprovider = ZSDRO001 ZQR001_RKF_018
Amt RKF NT Billing Flag = X
Closing Balance Tax Infoprovider = ZSDRO002 ZQR001_RKF_019
Amt RKF 0TAX_VALUE ZCELPER*

Following exit variables will be created for the query:

1) Customer Exit Variable ZCECPER (Current Fiscal Period)

This will be a ready for input variable to be used for selection on fiscal period. The logic will be to
populate the current period based on run date in i_step = 1.

2) Customer Exit Variable ZCEPPER (Fiscal Period Offset -1)

This will be not an input variable. The logic will be to read the low value for variable ZCECPER and
populate offset -1 period value in i_step = 2.

3) Customer Exit Variable ZCELPER (Fiscal Period Offset -1)

This will be not an input variable. The logic will be to read and populate the high value for variable
ZCECPER if its option is BT else populate low value in i_step = 2.

Following other two similar reports will be created to report by calendar week and calendar month. The only
difference will be ti replace fiscal week & related variables with similar weekly and monthly variables. Also for
calendar month query the balance figures will come from infoprovider ZSDRO003.

Author: Shashank Dighe Page 26 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

ZSD_M001_QR002 (Order Well Movement Detail by Calendar Week)


ZSD_M001_QR003 (Order Well Movement Detail by Calendar Month)

A generic extractor ZITEMCATG_ATTR (Item Category Data) on table TVAP will be created to load master
data for 0ITEM_CATEG. There will be an enhancement for this extractor to fetch fulfilment route from
TVARVC table.

6. Interfaces
6.1. Inbound Interface Definition
NA

6.2. Outbound Interface Definition


NA

7. Batch Operations
7.1. Key Predecessors and Descendants
NA

7.2. Data Loading Operations

Below is the list of process chains to be created:


Technical Name Description Source Target
ZPC_I_PUR_TR_IM_ZSTIO001 Data Load for Material Cost Prices 0CO_PC_ACT_05 ZSTIO001
ZPC_T_FI_TR_OW_ZSDTO001_1 Data Load for Order Well (PO) ZMMAO002 ZSDTO001
ZPC_T_FI_TR_OW_ZSDTO001_2 Data Load for Order Well (Sale Delivery) /IMO/SD_D50 ZSDTO001
ZPC_T_FI_TR_OW_ZSDTO001_3 Data Load for Order Well (Billing) /IMO/SD_D31 ZSDTO001
ZPC_T_FI_TR_OW_ZSDTO001_4 Data Load for Order Well (Sales Order) /IMO/SD_D11 ZSDTO001
ZPC_R_FI_TR_OW_ZSDRO001 Data Load for Order Well (Lifecycle) ZSDTO001 ZSDRO001
ZPC_R_FI_TR_OW_ZSDRO002 Data Load for Order Well (Balance Weekly) ZSDTO001 ZSDRO002
ZPC_R_FI_TR_OW_ZSDRO003 Data Load for Order Well (Balance Monthly) ZSDTO001 ZSDRO003

7.3. Housekeeping Operations

Author: Shashank Dighe Page 27 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED
Project:19189
SAP BI Functional Design Document

8. Roles, Permissions and Authorisations


This will be aligned to the overall authorisation policy adopted by the Template project.

9. Data Security and Legal Considerations


Not required.

10. Cutover / Implementation Considerations

11. Appendices
For example - discarded options for this Functional Design Document.

Author: Shashank Dighe Page 28 of 28 18-Nov-14


Copyright 2007 Kingfisher Group PLC ALL RIGHTS RESERVED

Вам также может понравиться