Technical Specification
General Header
FS Number Ticket Number
Transport Request DMEK968600
Specification Details:
Title Tool Monitoring
Description Tool Monitoring
Business Purpose
Application Area MM
Complexity Medium
Priority Medium
Requested by Smriti Agarwal
Prepared by Angad Chauhan
Reviewed by
Handover on
ABAP Objects
Object Type Development Object Name Category (New / Modified) Package
Transaction ZTOOL_01 NEW ZMM_TOOL
Report NEW
Module Pool ZMP_TOOL_MANAGEMENT
Function Module
Smart Form
User Exit
Interface
Technical Details
Reports / Module Pool
TD 1. Selection Screens
1- 9001 – For Creating Tool Number
2- 9002 – For Viewing Tool Details
3- 9003 – For Generating Tool Version
4- 9004 – For Plant Extension
5- 9005 – For Customer Extension
6- 9006 – For Vendor Extension
7- 9007 – Tool Approver Screen
TOOL MONITORING PROCESS T-CODES:
T-CODES Description
ZTOOL_01 For Creation of Tool Number.
ZTOOL_02 For Viewing saved data of Tool Number and all the extension and edit Functionality.
ZTOOL_APPROVAL For Viewing Approver and next Approver Against Tool Number.
ZTOOL_COCKPIT Cockpit T-code for viewing all the tool monitoring T-codes Screen.
TOOL MONITORING TABLES T-CODES:
TABLES T-CODE DESCRIPTION
ZTOOL_MASTER_N ZTOOL_MASTER_N For Storing Tool Master Data
ZTOOL_REVISION ZTOOL_REVISION For Storing Tool Revision Data
Z TOOL_COMPANY ZTOOL_COMPANY For Storing Plant Data
ZTOOL_SALE ZTOOL_SALE For Storing Customer Data
ZTOOL_JOB ZTOOL_JOB For Storing Supplier Data
ZTOOL_DESC ZTOOL_DESC For Storing Tool Description Data
ZTB_TOOL_MODULE ZTB_TOOL_MODULE For Storing Cockpit Modules
ZTB_TOOL_TCODES ZTOOL_TCODES For Storing Cockpit T-Codes
ZTOOL_APPR_TRANC ZTOOL_APPR_TRANC For Maintaining Approver Transactional Data
ZTOOL_APPR_CONFI ZTOOL_APPR_CONFI For Maintaining Approver Configuration Data
TOOL MONITORING STRUCTURES USED:
Structures
ZST_TOOL_CUSTOMER_DISPLAY
ZST_TOOL_MASTER
ZST_TOOL_PLANT_EXT_INFO
ZST_TOOL_TCODE_LIST
TOOL MONITORING SEARCH HELPS:
Search Helps
ZSH_CL_TOOL_NO
ZSH_TOOL_DESC
ZSH_TOOL_NO
TOOL MONITORING NUMBER RANGE OBJECT:
Number Range Object
ZSNRO_TOOL
TOOL MONITORING MESSAGE CLASS:
Message Class
ZTOOL_MSG
TOOL MONITORING CLASS USED:
CLASS USED
ZCL_TOOL_MANAGEMENT
TD 2. Process Flow / Logic / Algorithm
TD 3. Validations / Error Handling
1- Tool Creation Validation:
zcl_tool_management=>tool_creation_validation(
EXPORTING
is_tool_creation = zst_tool_master " Master Information for Module pool Screen
IMPORTING
es_bapireturn = DATA(ls_return)
"1 Check Validation Blank
IF is_tool_creation-tool_category IS INITIAL . “Validation For tool Category
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '001'.
ENDIF.
IF is_tool_creation-werks IS INITIAL . “Validation For Plant
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '002'.
ENDIF.
IF is_tool_creation-matnr IS INITIAL . “Validation For Material Number
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '003'.
ENDIF.
IF is_tool_creation-cavity IS INITIAL . “Validation For Tool Cavity
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '004'.
ENDIF.
IF is_tool_creation-daily_avg_production IS INITIAL . “Validation For tool average Production
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '005'.
ENDIF.
IF is_tool_creation-mfg_time IS INITIAL . “Validation For tool Manufacture time
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '006'.
ENDIF.
IF is_tool_creation-tool_life_part IS INITIAL . “Validation For tool Life Part
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '007'.
ENDIF.
IF is_tool_creation-tool_life_shot IS INITIAL . “Validation For tool Life Shot
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '008'.
ENDIF.
IF is_tool_creation-tool_development IS INITIAL . “Validation For tool Development
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '009'.
ENDIF.
IF is_tool_creation-tool_development IS NOT INITIAL. “Validation For tool Development
CASE is_tool_creation-tool_development.
WHEN 'IN'. “IN – In house Tool Development
IF is_tool_creation-werks IS INITIAL.
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '011'.
ENDIF.
WHEN 'VT'. “VT- Vendor Tool Development
IF is_tool_creation-lifnr IS INITIAL.
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '012'.
ENDIF.
WHEN 'CT'. “CT- Customer Tool Development
IF is_tool_creation-kunnr IS INITIAL.
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '013'.
ENDIF.
ENDCASE.
ENDIF.
"3 Check Tool Category & Material Relation Ship
SELECT SINGLE tool_no FROM ztool_master_n INTO @DATA(ls_tool_master)
WHERE tool_category = @is_tool_creation-tool_category
AND matnr = @is_tool_creation-matnr.
IF ls_tool_master IS NOT INITIAL. “Validation For Checking Tool Number For Already Exists
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '010'.
ENDIF.
2- Tool Revision Validation:
zcl_tool_management=> VALIDATION_TOOL_REV
“Validation for same tool number with same tool revision Exists.
SELECT SINGLE * FROM ZTOOL_REVISION INTO @DATA(ls_rev) WHERE tool_no = @IS_TOOL_REV-tool_no AN
D tool_revision = @IS_TOOL_REV-tool_revision.
if sy-subrc eq 0.
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '021'.
ENDIF.
3- Plant Extension Validation:
zcl_tool_management=> VALIDATION_TOOL_PLANT
“Validation For Company Code
IF is_tool_plant-bukrs IS INITIAL .
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '022'.
ENDIF.
“Validation For Plant
IF is_tool_plant-werks IS INITIAL .
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '011'.
ENDIF.
4- Customer Extension Validation:
zcl_tool_management=> VALIDATION_TOOL_CUSTOMER
“Validation For Customer
IF is_tool_customer-kunnr IS INITIAL .
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '013'.
ENDIF.
5- Vendor Extension Validation:
zcl_tool_management=> VALIDATION_VNDR_INFOR
“Validation For Vendor
IF is_tool_job-lifnr IS INITIAL.
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '012'.
ENDIF.
6- Approver Validation:
zcl_tool_management=> VALIDATION_APPROVER
“Validation For Approver If Tool is Rejected
SELECT SINGLE status FROM ztool_appr_tranc INTO @DATA(lv_status)
WHERE tool_no = @iv_tool_no.
IF lv_status EQ 'RJ'.
es_bapireturn-type = 'E'.
es_bapireturn-id = 'ZTOOL_MSG'.
es_bapireturn-number = '023'.
ENDIF.
TD 4. Output Format
Interfaces
TD 5. BDC
TD 6. BAPI
TD 7. ALE / IDOC
TD 8. Validations / Error Handling
Enhancements
TD 9. User Exits
TD10. BADIs
TD11. Validations / Error Handling
Forms
TD12. Selection Screen
TD13. Programming logic
TD14. Output Formats
<Attach the required format>
TD15. Validations / Error Handling
<Date Formats, Form Validations, Manual entry checks>
Work Flows
TD16. Business Objects
<New Business Objects super types and / or subtypes required. Also, the New Interfaces, Key
Fields, Attributes, Methods and Events to be created for the Business Object>
TD17. Roles / Rules
<Used for Agent Assignments>
TD18. Tasks
<List the Standard and Custom tasks to be used in the workflow. Describe the implementation
of all custom tasks>
TD19. Workflow Template
WS90000062
TD20. Deadline Monitoring
<Any rules related to deadline monitoring requirements>
TD21. Validations / Error Handling
Security
TD22. Authorization
ZTOOL_AUTH “Authority Object
TD23. Lock Objects
TD24. Other Security Aspects
Test Plan
Added attached in the in UAT
Configuration