Professional Documents
Culture Documents
Technical Specification
Version 0.8
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 1 of 19
DOCUMENT REVISION HISTORY
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 2 of 19
CONTENTS
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 3 of 19
7.0 Open Design Questions............................................19
8.0 Processing Report Output Details.............................20
9.0 Unit Test Plan......................................................................... 20
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 4 of 19
1.0 Request Details
Program Title P&A Reporting
Program Name GMC/IO_FM_MATMAS Type Interface
Function Spec ID NewExtractorForMasterDataE Version 0.8
WM_v1.doc
Developer On Site Coordinator
Phone
Email
Process Team IBM P&A Functional Contact
Phone
Email
SAP System and Version SAP BI 7 Process Doc. NA
Reference
SAP Module and SCM Workstep/ Task NA
Sub module
Priority X Essential ( Business critical) Release
Complexity High
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 5 of 19
SCM. Warehouse Product, Packaging Specification data, Resources, Hazardous Goods, Dangerous
goods details are required for EWM reports, hence Master data needs to be maintained for each object
in the BI system.
3.4 Dependencies
Master data is maintained in SCM which must contain all the reporting attributes.
4.1 Tables
Standard tables used List of table and fields are as below
C:\Documents and
Settings\Administrator\Desktop\kickoff_docs\558_Material_master_mapping_EWM.xls
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 6 of 19
GSDWM_MT_GMC_IO_T_HAZARD_HZMAT
GSDWM_MD_GMC_IO_V_HAZMAT_HZTXT
GSDWM_MD_GMC_IO_V_RESOUR_RSRC
GSDWM_TD_SCWM_BINMAT_FIXBIN_EX
Structure Names: /GMC/IO_DS_WHPROD, /GMC/IO_DS_PKDATA,
/GMC/IO_DS_RSRC, /GMC/IO_DS_HZMAT,
/GMC/IO_DS_DGGOODS, /GMC/IO_DS_HZDESC,
/GMC/IO_DS_ELGPDESC, /GMC/IO_DS_WSTPDESC,
/GMC/IO_DS_PKDESC
Function Module name: /GMC/IO_FM_WHPROD, /GMC/IO_FM_PKDATA,
/GMC/IO_FM_RSRC, /GMC/IO_FM_HZMAT,
/GMC/IO_FM_DGGOODS, /GMC/IO_FM_HZDESC,
/GMC/IO_FM_ELGPDESC, /GMC/IO_FM_WSTPDESC,
/GMC/IO_FM_PKDESC
0WM_PRODNO Product
0WM_PSID Packaging Specification ID
GWMHAZMAT Product Number - HAZ
0WM_RSRC Resource (Means of Transportation or User)
GWMFIXBIN Warehouse Number - Fix Bin
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 7 of 19
GSDWM_MD_GMC_IO_V_HAZMAT_HZTXT – Extractor for Hazardous Material
GSDWM_MT_GMC_IO_T_HAZARD_HZMAT - Extractor for HazMat Substance description
GSDWM_MT_GMC_IO_V_PNODID_ELGPT - Extractor for Element group description
GSDWM_MT_GMC_IO_V_PNODID_WSTPT - Extractor for workstep description
GSDWM_MT_GMC_IO_V_PNODID_PKTXT- Extractor for Pack Spec description
GSDWM_TD_SCWM_BINMAT_FIXBIN_EX – Extractor for Fix Bin and Product assignment
4.3.2 Transformations
Transformation from EWM Master Data Extractors can be seen below:
Transformations to
Info Objects_558.xls
4.3.3 DSO
N/A
4.3.4 Cube
N/A
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 8 of 19
4.8 Processing Logic
Following are the data extraction logics:
Step 1: Go to transaction SE11 and create the following structures :
/GMC/IO_DS_WHPROD
/GMC/IO_DS_PKDATA
/GMC/IO_DS_RSRC
/GMC/IO_DS_HZMAT
/GMC/IO_DS_DGGOODS
/GMC/IO_DS_HZDESC
/GMC/IO_DS_ELGPDESC
/GMC/IO_DS_WSTPDESC
/GMC/IO_DS_PKDESC
Step 2: Create the following new data sources using transaction RSO2:
/GMC/IO_EX_WHPROD
/GMC/IO_EX_PKDATA
/GMC/IO_EX_RSRC
/GMC/IO_EX_HZMAT
/GMC/IO_EX_DGGOODS
/GMC/IO_EX_HZDESC
/GMC/IO_EX_ELGPDESC
/GMC/IO_EX_WSTPDESC
/GMC/IO_EX_PKDESC
Step 3: The function modules and structures will be assigned to relevant data sources as mentioned
below.
Step 4: The data source is delta enabled using the Generic Data option available on the screen.
Step 5: Go to SE37 and create a function modules. These function modules will
have the following parameters:
FM Name : /GMC/IO_FM_WHPROD
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 9 of 19
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_WHPROD
FM Name : /GMC/IO_FM_PKDATA
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_PKDATA
FM Name : /GMC/IO_FM_RSRC
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_RSRC
FM Name : /GMC/IO_FM_HZMAT
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_HZMAT
FM Name : /GMC/IO_FM_DGGOODS
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_DGGOODS
FM Name : /GMC/IO_FM_HZDESC
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 10 of 19
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_HZDESC
FM Name : /GMC/IO_FM_ELGPDESC
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_ELGPDESC
FM Name : /GMC/IO_FM_WSTPDESC
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_WSTPDESC
FM Name : /GMC/IO_FM_PKDESC
IMPORT Parameters:
I_REQUNR TYPE SRSC_S_IF_SIMPLE-REQUNR
I_DSOURCE TYPE SRSC_S_IF_SIMPLE-DSOURCE
I_MAXSIZE TYPE SRSC_S_IF_SIMPLE-MAXSIZE
I_INITFLAG TYPE SRSC_S_IF_SIMPLE-INITFLAG
TABLES Parameter will have the following:
I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT
I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS
E_T_DATALIKE /GMC/IO_DS_PKDESC
Step 6: The table ROOSGENDLM is read for the last delta execution time stamp.
Step 7: A counter variable will be used. For the first data package, the key fields are selected from driver
table /SAPAPO/MATKEY using OPEN CURSOR.
Step 8: Fetch the records which are changed after the previous delta execution into an internal table
using FETCH NEXT CURSOR statement. Number of records to be read per FETCH is
determined by the Import parameter I_MAXSIZE.
Step 9: Extract the data from the relevant fields of the tables /SAPAPO/MATKEY,
/SAPAPO/MATLOC, /SAPAPO/MATLWHST, /SAPAPO/MATLSIM,
/SAPAPO/MATLWH, /SCWM/PAPAK, HSMT_MD, BUT000, /SCWM/V_RSRC
and the structure /GMC/IO_DS_MATMAS is populated from these tables.
Step 10: If there are no records to be fetched, then the exception NO_MORE_DATA, is raised.
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 11 of 19
Step 11: The loop fetches through all the data, until the maximum packet size is reached and send to
extractor.
Step 12: Increase the counter variable for the next fetch.
Step 13: After processing the last package, call the function module
‘RSA8_GENDELTA_ZDD_REPLAY_GET’ to update the table ROOSGENDLM with the latest
Timestamp.
YES
First Start init delta
Start
time with data option
data
load?
NO
End
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 12 of 19
Pack Spec Data flow
YES
First Start init delta
Start
time with data option
data
load?
NO
End
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 13 of 19
Hazardous material data flow
YES
First Start init delta
Start
time with data option
data
load?
NO
End
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 14 of 19
Resource data flow
YES
First Start init delta
Start
time with data option
data
load?
NO
End
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 15 of 19
Dangerous goods data flow
YES
First Start init delta
Start
time with data option
data
load?
NO
Function module
/GMC/IO_FM_DGGOODS populates the
customized DS with dangerous goods
End
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 16 of 19
have to be written to enhance the data source with required fields.
5 If there are tables apart from standard tables that will also fetch Master data fields then
custom data sources will need to be created and data will have to be added directly to
Material Master or a copy of Material Master will have to be created if we do not wish to
alter existing SAP standard object
5.2 Logging
Logging of SAP BW process chains is automatic.
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 17 of 19
7.0 Open Design Questions
No open design questions
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_V0.
8
Page 18 of 19
8.0 Processing Report Output Details
# Report Field Field Report Level Sort length / Processing
Name Format Table-field Description /
Definition Reader/Item
Calculation Logic
SAP BI 15399_ETD_E558_NewExtractorForMasterDataEWM_v0.
8
Page 19 of 19