Functional and Technical Specification Document For
Functional and Technical Specification Document For
Functional/Technical Specifications
1 of 11
TABLE OF CONTENT
` 2 of 11
Functional and Technical Specifications
Document Name Team (i.e. OTC) RICEF Number
FSTS_I_PD755_S42_SQL_PARTGENEALOGY PD 755
Name Telephone Number & EMAIL address
Shanker Srinivasan 801-708-4666
Form Completed By
Object Overview
Object Title
Object Description
Mock Up ID / Name
` 3 of 11
1. General Object Overview
1.1 Generic WRICEF Descriptions
JUSTIFICATION
This Interface is created to provide the S4 Hana Auto parts master genealogy data into the SQL as a data dump for further
reporting in legacy. A new extractor ZIBP_2_SQL_PART_GENEALOGY is created in S4 to supply the required data where CPI will
read those and update the SQL landing table called PART_GENEALOGY in the SQL database
TRANSACTION VOLUME
All the Auto product master data from S4 system. (Approx. 6500 parts)
Daily = +- 10
Cutover = 35000 max
DEPENDENCIES
The Part status custom field ZPART_STATUS should be populated with the status of the parts in all the existing parts.
` 4 of 11
AUTHORIZATION REQUIREMENTS
N/A
RELATED DOCUMENTATION (ATTACH OSS NOTES, EMAILS, DOWNLOAD OF EXISTING REPORT, ETC)
N/A
ASSUMPTIONS
5 years of historical conversion.
` 5 of 11
2. Object Specific Design
2.1 Interfaces
A BW InfoSource Extractor “ZSQL_PART_GENEALOGY” will be created under MM component with all the material master attributes
for the auto parts for sending it to Auto IBP planning area.
Interface
WRICE Description Interface Applications Data Frequency / Owner
F-ID Method Elements Volumes
SOP755 S42SQL_PA
RT_GENEAL
OGY
File Specifics
` 6 of 11
(The below link for the Data mapping requirement will be changed after the Go-live. This should be updated later.)
https://arcelormittal.sharepoint.com/:x:/r/sites/AMUSA_PM_AutoForecasting/Blueprint/13%20Master%20Data%20Mapping/Master
%20data%20list_Auto.xlsx?d=wd264d05f0bd24a54be6966cc49e43418&csf=1&web=1&e=zoY5px
There are two mapping rule created for based on part status with “Future” and all other status like “Active”,
“Inactive”, “Built-out” and “Obsolete”.
Table
Data
Field/Attribute name Field description Mapping rule / Field Logic
type
Char
KUNNR Customer number (10) KNMT_KDMAT
Char
MATNR Material Number (40) IBINVAL_SEL_F
Char
KDMAT Customer Material (35) KNMT_MATNR
Char
WRKST Basic Material (48) KNMT- ERDAT
DATS
START_DATE Created ON (8) ZUS_305_PARTGENE-START_DATE
START_TIME Created AT Tims (6) ZUS_305_PARTGENE-START_TIME
DATS
END_DATE Changed ON (8) ZUS_305_PARTGENE-END_DATE
END_TIME Changed AT Tims (6) ZUS_305_PARTGENE-END_TIME
Char ZSOP_CDS_I_KNMT_1ST_CHAR-
PLANT Plant (20) WERKS
UDATE Created ON Char (8) CDHDR-UDATE
UTIME Created AT Char (6) CDHDR-TIME
Char
USERNAME User Name (12) CDHDR-USERNAME
Char
SYSMT System (10) ZUS_305_PARTGENE-SYSMT
DATS
ACT_DATE Active Part Date (8) ZUS_305_PARTGENE-ACT_DATE
Char
RED_ITEM_ID Red Legacy Item ID (40) IBINVAL_SEL_F
DATS
START_DATE Created ON (8) ZUS_305_PARTGENE-START_DATE
DATS
END_DATE Changed ON (8) ZUS_305_PARTGENE-END_DATE
Approach
N/A
Metrics
N/A
Error Handling
N/A
2.2 Enhancements
enhancements
WRIC Description Data Object Functional Alternative Reason Owner
EF-ID (Sales Order) Gap SAP Standard
PD-
755
Read data from custom CDS view called ZSOP_PRODAUTO_I per the logic below.
Only the auto parts materials are selected to send in this interface into non-auto and the selection should be based on
the below parameters:
MARA-MTART = “ZPRT”
MARA-WRKST NE “SPACE”
Infer the values in the CDS as per the field logic mentioned in the mapping tables.
Join the below table with the MATNR key to get the list materials to be considered for Genealogy extractor.
Where ZSOP_PRODAUTO_I – MATNR = ZUS_305_PARTGENE - MATNR
Check for the parameter table ZUSSOP754DAILY to check if the flag is set for the Daily or Cutover
DAILY = X
` 8 of 11
When X, then take the system date and (-1) day; date and pass it into table CDPOS to get the changes
where
Performance improvements and fix to duplicate issues, only fetching changes of the customer/material info
record for the 8 series customer.
For daily variant, show the result for created materials within the period of time.
Version 1.2 – Adding Red Legacy Item ID and its Start and End Date
Create new fields as specified in the mapping table (RED_ITEM_ID, START DATE, END DATE,
REC_STARTDATE, REC_END DATE) in the table ZUS_305_PARTGENE.
This Red Item number will get updated from SQL connection against SAP Material ID with validity
dates.
Transaction - ZOTC05 Part Genealogy Report extract and display above 3 fields in the output.
Based on the Record End Date and Start Date, the Active RED Legacy Item would be considered.
Based on the Record Start and End Date the Latest record will be read as Active information
` 9 of 11
3. Additional Technical Specifications
1. Program name: ZUS_SOP755_PART_GENE_EXTRACTOR
2. Extractor: ZPD755_S42SQL_PARTGENE_EXTR
3. Type: Extractor.
Program flow logics Version 1.1:
1. After selection option input enter the filter parameters (MATNR, KUNNR) and executing the
extractor.
2. Extractor triggers the ZUS_SOP755_PART_GENE_EXTRACTOR FM with the filter parameter.
3. We use ZBC_GET_PARAMETER FM to fetch parameter lookup using ‘ZUSSOP754DAILY’
parameter.
4. Next we select objected from CDHDR by inner joining CDPOS using ‘’SD_KNMT’ in object class ,
objectid without any space, ‘KDMT’ in fname and ‘U’ in chngind.
5. After the objected ID is selected, we perform determinar_tamanho_estrutura and
converter_estrutura_para_carac from zbcpar002 Program.
6. Selecting MATNR, ZPART_STATUS, PRDID from ZSOP_CDS_I_PROD_AUTO using filter
parameter.
7. We select MATNR, WRKST, KDMAT, PLANT, KUNNR, START_DATE,
END_DATE, SYSMT, ACT_DATE
By inner joining zus_305_partgene using MATNR and KUNNR.
8. Again we select DISTINCT records of PLANT_CODE, PLANT_TEXT, CAP_DESC, CITY, STATE
by using INNER Join for T001W, ADRC where R_OBJECTID_KNMT = 'ICP' AND
R_OBJECTID_MAT = 'IEQ'.
9. While mapping the data with output we select OBJECTID, CHANGENR, UDATE,
USERNAME, VALUE_NEW, VALUE_OLD by inner joining CDHDR AND CDPOS.
10. Once the extractor is executed output will be populated using
ZUS_SOP755_PART_GENE_EXTRACTOR Structure.
Table used:
Table Name Description
ZSOP_CDS_I_PROD_AUTO Prod Autopart CDS View
ZUS_305_PARTGENE Customer Part Genealogy
ZSOP_CDS_I_KNMT_1ST_CHAR CDS View
T001W Plants/Branches
ZUS_308_DINTAX Get dinamic tax codes to Create Materia Master
` 10 of 11
for Non Auto
CDHDR Change document header
CDPOS Change document items
MARA General Material Data
` 11 of 11