Академический Документы
Профессиональный Документы
Культура Документы
Author: Joseph
Version: 0.1
Status: Draft
Document location
The most current version of this document is located within:
<link>
Revision History
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
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
11. Appendices....................................................................................................................................... 25
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.
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
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.
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
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
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).
Below is the mapping for the data from sales line item DSO. This will be loaded via a delta DTP.
Start Routine:
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 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.
Below is the mapping for the data from billing line item DSO. This will be loaded via a delta DTP.
Start Routine:
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:
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
.
Below is the mapping for the data from PO item DSO. This will be loaded via a delta DTP.
Start Routine:
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.
Start Routine:
We only need 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 sales line item DSO. This will be loaded via a full DTP.
Start Routine:
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.
Delete the records from source package which are marked for deletion.
If source_package-bill_qty = source_package-ord_qty
OR source_package-rejection_st = C.
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.
Below is the mapping for the data from sales line item DSO. This will be loaded via a full DTP.
Start Routine:
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.
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.
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.
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.
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
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
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
Navigati
Company Code 0COMP_CODE on
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.
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.
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.
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
7. Batch Operations
7.1. Key Predecessors and Descendants
NA
11. Appendices
For example - discarded options for this Functional Design Document.