Professional Documents
Culture Documents
FS - TS - R - PD305 Customer Part Number Genealogy
FS - TS - R - PD305 Customer Part Number Genealogy
FS - TS - R - PD305 Customer Part Number Genealogy
Functional/Technical Specifications
1 of 18
TABLE OF CONTENT
` 2 of 18
Functional and Technical Specifications
Document Name Team (i.e. OTC) RICEF Number
Object Overview
` 3 of 18
305 Business Master data
Object ID
Process
SAP MM
SAP Release
Module
(X ) Report
( ) Interface
( ) Conversion
Object Type ( ) Enhancement
( ) Form
( ) Workflow
Object Description
Mock Up ID / Name
Medium High
Complexity of Object Priority
(following naming
SAP Program
SAP Transaction Name convention guidelines)
Name
Similar SAP
Similar SAP Transaction
Program
` 4 of 18
1. General Object Overview
1.1 Generic WRICEF Descriptions
JUSTIFICATION
[Provide a high level description reason from deviation from standard SAP reports or BW reports.]
SAP does not capture customer part number genealogy; thus, a table is required to allow users to search by using
previous part number iterations. Within current business practices, customer part number changes can indicate
changes to the steel characteristics.
Standard change management functionality will be leveraged to view individual change records of materials and
customer material numbers.
This spec will have two portions –
1. Complete lookup of change history of materials in bulk or of a single material will require a new report to be
developed.
2. Load mechanism will need to be created for repetitive use of loading Z genealogy history table as conversion
object.
` 5 of 18
[Provide a high level description of the Report and the business requirement that will be addressed.]
Customer Genealogy is the history of changes the customer part numbers have undergone at AMUSA. Standard SAP Customer
Material Info Records (CMIR) will be used. The change history for all parts needs to be viewed in a meaningful way, thus the need
for this report. Report will have the ability to drilldown into the specific material attributes when changes occurred.
Report details for Customer Genealogy –
1. New transaction code is needed
2. Wild card searched should be allowed for customer name and customer material number.
3. Report needs to be run in Three modes – i) ALL ii) ACTIVE iii) INACTIVE
4. Fields for overview section of the report are provided below, drilldown into the specific change record will
the show the material VC characteristic values history since conversion.
5. Z table is needed to convert the legacy records of parts genealogy table. Standard ECM records will not
be able to handle additional dates of when the history
` 7 of 18
Version 2.0 – Auto Forecasting Project
Since the AM MDG system is discontinued from the Cliff’s landscape the Part Genealogy for the existing auto parts will not be
available to the business since this data is not stored anywhere in the SAP system. So in order to build that capability inside SAP,
we are leveraging the existing program of Part Genealogy to add the below mentioned features and the requirements of the
business.
1. Add custom table for including the history of the Customer Part number changes from MDG database and call up this
report in the genealogy report. – A new custom table will be created ZPD305_KDMAT_HIS for loading the past 7 years
history data for the material. This will be a one-time load as a cutover activity for the go-live.
2. Change the logic to pull back the material into MDA Workflow even if there’s an active Workflow in the process. (Note:
Today this process happens manually using the NAFTA Part change transaction and this program would be discontinued).
TRANSACTION VOLUME
About 6500 Autoparts
Real-time
DEPENDENCIES
` 8 of 18
[Predecessors and successors]
AUTHORIZATION REQUIREMENTS
[Every authorization object needs to be documented to provide the security administrator information on the purpose and use of the
object. The following sections are the minimal documentation requirements.]
Authorization check is not needed for this report. Transaction should be open to all users.
RELATED DOCUMENTATION (ATTACH OSS NOTES, EMAILS, DOWNLOAD OF EXISTING REPORT, ETC)
ASSUMPTIONS
Reporting
WRICE Description Report Type Data Elements Relevant KPI Owner
F-ID (ABAP, BI,
BOBJ)
PD305 Customer ABAP ALV
Genealogy
Selection Criteria
` 9 of 18
[Please enter the selection criteria that should be available to users before running the report. Indicate if the
criteria are optional or mandatory and if any data restrictions should apply]
Any grouping of selection screen fields into blocks? Title of Selection Screen Block?
` 10 of 18
Functional Design, Validation and Variants
What is the data to be extracted? Does the Selection Criteria include the full primary keys of the tables
from which data is to be extracted?
First section of the report will read KNMT, CDHDR, CDPOS, and ZGENEALOGY tables to retrieve all
records for the customer part number. Will card searches on customer part number and customer
name need to be allowed. Based on the radio button following actions will need to be performed
1. All – tables KNMT, CDHDR, CDPOS, and ZGENEALOGY will need to be read and retrieve
records selected for input criteria. Fields to be displayed are mentioned below in the
layout section. Function module CHANGEDOCUMENT_READ_HEADERS can be used
to lookup the change records with OBJECTCLASS as SD_KNMT and OBJECTID as the
concatenated value of VKORG, VTWEG, KUNNR, MATNR. Based on the Document no,
CDHDR-CHANGENR, CDPOS records can be read for additional values.
2. Active – current record in KNMT should be shown as the only active record.
3. History - current record in KNMT should NOT be show, and all records in CDPOS and
ZGENEALOGY should be shown.
Data needs to be shown according to the layout mentioned in the Report Output section. Record
status will be based on whether record is from KNMT table or CDPOS, Active vs History.
Version 1.1
Improve performance by adjust the selection criteria
Report Output
` 11 of 18
Output Method
[Please indicate the expected output method(s) for the report]
Example:
Saved to File / Sent to print / Send to email account / Download to excel
Main Heading
[Provide the main heading field for the report]
Example:
The main report heading will be: Customer Genealogy Report
Sub Heading
[Provide any required sub-headings and breaks required in the report]
Example:
There will be a sub section under the main contract information detailing the date and time the report
was executed and the users username
` 12 of 18
SYSMT System System
Please list the sequence of the fields (SAP Field names) in which the output must be displayed?
DRILLDOWN REQUIREMENTS
Upon drill into a specific change record users should see the material attributes, VC Characteristics and Values,
associated with specified time period. Behavior of the sub-screen will depend on radio button chosen from the
overview screen.
1. All – All active and history records must be shown. Program RCUCONFCD can be run by just
providing Configuration Instance value without any dates. Configuration Instance value can be
retrieved from table MARC-CUOBJ. Additionally, ZGENEALOGY table must be read for records
of current material and associated plant on the record.
2. Active – run program RCUCONFCD with MARC-CUOBJ with date KNMT-ERDAT to display
material VC attributes from the date of material changed till present. Additionally, ZGENEALOGY
table must be read for records of current material and associated plant on the record.
3. History - run program RCUCONFCD with MARC-CUOBJ without date to display material VC
attributes from the date of material creation till present. Additionally, ZGENEALOGY table must
be read for records of current material and associated plant on the record.
TOTALING
[List any totaling or other calculation requirements for the report]
Example:
Number of contracts matching user selection criteria to be displayed at the bottom of the report
SORTING
[List any sorting requirements for the report]
Example:
Users will be able to sort on contract type and vendor. Default sort sequence will be by contract type.
PAGE BREAK
[Provide details of any page breaking requirements that should be used in addition to field breaks]
Example:
Page breaks will be used where necessary to prevent overflow of retrieved data
ERROR HANDLING
[Include potential errors, notification procedures, and contingency procedures.]
Typical errors include: No data found for given selection criteria.
` 13 of 18
Version 2.0 – Add Customer Genealogy History Custom Table
SYSMT System Char (12) Denotes the system from where the record is created.
ACT_DATE Part Active Date DAT (10) The date when the part was made active. This is also uploaded field for all the existing material.
In the existing transaction ZPD12 in the program ZUS_SOP309_CMIR_MATERIAL, create a new radio button selection
as below and when the user selects this option and executes it, call the new excel upload program to update the data into
the table. The data in this report should be combined from both Ztable and the CMIR change log table for the Customer
part number changes and the date should be sorted in Ascending order.
Create a new button in the existing Part Genealogy report to call up the report into a new ALV display.
Below should be the ALV output layout of the custom table and the Genealogy report for the given customer part number.
Materia Part Red
Local Last Last
l NAFT CPN active Ite Rec
Paren CPN CPN End Plant updated update Start End Rec End
numbe A ID Start Date m Start
t Date d by
r ID
10122 11/8/201 6/25/202 6/25/202 2055 11/8/201 11/8/201
601404 201401547 4/21/2021 4/21/2021 4/21/2021
802055 2 8 IHE 1 USERID 1 8 8
802055 601404 101222026037B 4/21/202 6/25/2021 IHE 6/25/202USERID 6/25/202 2055 4/21/202 6/25/2021 4/21/202 6/25/2021
` 14 of 18
2 1 1 1 1 1
10122 201401547 6/25/202 12/31/999 6/25/202 6/25/202 20556/25/202 12/31/999 6/25/202 12/31/999
601404
802055 2 D 1 9 IHE 1 USERID 1 1 9 1 9
If for a given SAP material, a record is found in the table ZUS_305_PARTGENE for the field ACT_DATE where the
SYSMT=SAP then that record must be updated in the Part active Date, else take the value from CDHDR-UDATE where
the OBJECTID=MATERIAL and CDPOS- FNAME = ZZ1_PARTSTATUS_PRD and CDPOS- VALUE_NEW = A.
For the WF Task for the material other than TS90000048, if there is an active WF found when the MDA user
tries to initiate a change WF, then the systema should cancel any existing Active workflow and create a new
Workflow under the Task TS90000048.
Version 2.1
Add a check box in the ZOTC05 landing page and when it is checked, call a custom pop-up screen with two fields
On pressing enter, call the BDC to change the Customer material info record to change the field (KNMT-KDMAT) taking
the New material number from the input field in the above pop-up screen.
After updating the Customer material in the info record, update the material description field in MARA-MAKT field. After
successfully updating both the records call the function SWE_EVENT_CREATE to start the material workflow with the
below input Parameters
OBJTYPE = BUS1001006
OBJKEY = “MATNR”
EVENT = ‘CREATED’
Generate the below log message in the event of success or failure for the above process. Capture all the
standard error messages in case of failures to update the CMIR or Material description.
` 15 of 18
Version 2.2 – PIV fix for the above changes.
- The CPN change from ORA will now create a “Change MDA” workflow with type WS90000018 instead
of previously created functionality where it will create a “Create new Material WF” with type
WS90000014.
- A new button added into the details screen where only MDA users would be able to trigger the “Create
New Material Workflow” with type WS90000014. This is controlled with the new role Role:
Z_PD_MTF_CRT_MAT_WF and the Authorization Object assigned to it: ZOTC_WF_CR
Version: 2.3 CR00006339-Restrict material workflows from being created by MDA, OSA, and CIM for any
status other than active.
Restrict material workflows from being created by MDA, OSA, and CIM for any status other than active.
Material workflow should not be created for the material whose MARA-ZZ1_PARTSTATUS_PRD <> ‘A’ . All
the material maintenance teams are able to create workflow with ZOTC05 or ( in Fiori transaction) for the
materials which are not Active
Version 2.4 – 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
` 16 of 18
3. Additional Technical Specifications
1. Report: ZUS_PD305_MTF_GENEALOGY_REPORT
2. TCODE: ZOTC05
3. Function Module: ZUS_PD305_GENEALOGY_REPORT
4. TABLE: ZUS_PD305_GENAGY
Version 1.1:
1) In the function module ZUS_PD305_GENEALOGY_REPORT, Commented the code where the change
records related to customer and Material are begin fetched and processed. (lines 160 to 213)
2) In Include ZUS_PD305_MTF_GENEALOGY_REPF01, before selecting all the entries based on
gt_ibinvalues, check if the internal table is initial or not.
Version 1.2:
1. Report: ZUS_SOP309_CMIR_MATERIAL
2. TCODE: ZPD15
3. Table: ZUS_305_PARTGENE
Adding the upload customer part number genealogy history logic in existing report
ZUS_SOP309_CMIR_MATERIAL.
Uploading excel template with the fields Kunnr, Matnr, wrkst, kdmat, start_date, end_date, plant, sysmt
and act_date.
Created one radio button in selection screen as Update Customer Part Genealogy.
Using FM TEXT_CONVERT_XLS_TO_SAP to upload the excel file values into Custom table called
zus_305_partgene.
1. Include: ZUS_PD305_MTF_GENEALOGY_REPF01
2. TCODE: ZOTC05
` 17 of 18
Function Module used:
Table Name Description
REUSE_ALV_GRID_DISPLAY Output of a simple list (single-line)
CHANGEDOCUMENT_READ_HEADERS Change document: Read change document
header
CHANGEDOCUMENT_READ_POSITIONS Change document: Read change document
items
Table used:
Table Name Description
ZUS_305_PARTGENE Customer Part number
KNMT Customer-Material Info Record Data Table
MARA Material master Header
ADRC Addresses (Business Address Services)
T001W Plants/Branches
` 18 of 18