Hierarchy

⤷

⤷

IMG Activity
ID | BADI_CCM_TIME_SINCE | Add-In: Define Recent Time of Event for TSE (Time Since Event) Calculation |
Transaction Code | S_KA5_12001085 | (empty) |
Created on | 20010903 | |
Customizing Attributes | BADI_CCM_TIME_SINCE | Define Recent Time of Event for TSE (Time Since Event) Calculation |
Customizing Activity | BADI_CCM_TIME_SINCE | Define Recent Time of Event for TSE (Time Since Event) Calculation |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | BADI_CCM_TIME_SINCE |
This BAdI determines the date and time of the recent event for the Time Since Event (TSE) calculation. It is used for the configuration control component.
The BAdI contains the following methods:
- GET_NOTIF_CUST
- BADI_GET_RECENT_TIME_INST
- BADI_GET_RECENT_TIME_NEW
- BADI_GET_RECENT_TIME_INSP
- BADI_GET_RECENT_TIME_OVHL
- BADI_GET_RECENT_TIME_REPR
The first method (GET_NOTIF_CUST) is responsible for the Customzing data exchange. It receives the Customizing data 'Determine Properties of Notifications for Installing and Removing Parts' into the global structure GS_NOTIF_CUST from the class that calculates the TSE values. Do not change or replace this method under any circumstances.
The other methods are responsible for determining the recent event. BADI_GET_RECENT_TIME_INST determines the date and time of the event INSTALLATION, BADI_GET_RECENT_TIME_NEW relates to the event NEW, BADI_GET_RECENT_TIME_INSP relates to the event INSPECTION, BADI_GET_RECENT_TIME_OVHL relates to the event OVERHAUL, and BADI_GET_RECENT_TIME_REPR relates to the event REPAIR. A default implementation exists for events INSTALLATION and NEW (see below), the other methods are empty and can be filled by the customer.
All the methods have the same interface:
IV_EQUNR Importing Type EQUNR Equipment number
EV_RECENT_TIME Exporting Type TIMS Field of type TIMS
EV_RECENT_DATE Exporting Type DATS Field of type DATS
The time and date of the corresponding last event can be determined by implementing these methods dependent on the equipment number.
Example
A possible database table INSP, which contains the recent inspection date and time for equipments:
INSP-EQUNR: Equipment number (key)
INSP-TIME: Recent inspection time
INSP-DATE: Recent inspection date
A possible implementation of the method BADI_GET_RECENT_TIME_INSP could be the following:
method BADI_GET_RECENT_TIME_INSP.
data: LS_INSP type INSP.
select single * from INSP into LS_INSP where EQUNR = IV_EQUNR.
EV_RECENT_TIME = LS_INSP-TIME.
EV_RECENT_DATE = LS_INSP-DATE.
endmethod.
Standard settings
The methods BADI_GET_RECENT_TIME_INST and BADI_GET_RECENT_TIME_NEW have a default implementation:
The recent time of INSTALLATION of a given equipment is determined in the following way: Select all notifications that correspond to the equipment and to the message/notification type for installation maintained in Customizing activity 'Determine Properties of Notifications for Installing and Removing Parts'. From these notifications select the one that has the most recent time and date of notification. Export this time and date.
The recent time/date of the event NEW is read directly from the equipment table. It is either the start-up time/date of the equipment or the creation date of the equipment record (if the former is not available).
Business Attributes
ASAP Roadmap ID | 204 | Establish Functions and Processes |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | BADI_CCM_TIME_SINCE | 0 | KAD0000001 | Aerospace & Defence Industry Solution |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20030225 |
SAP Release Created in | 46C2 |