SAP ABAP Class CL_DEF_IM_BADI_MPD_REPORTING (Default implementation for business add-in definition BADI_M)
Hierarchy
ECC-DIMP (Software Component) DIMP
   IS-AD-MPD (Application Component) Maintenance Program Definition
     AD_MPD (Package) Maintenance Program Definition
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_EX_BADI_MPD_REPORTING Business add-in interface IF_EX_BADI_MPD_REPORTING 20040122
Properties
Class CL_DEF_IM_BADI_MPD_REPORTING  
Short Description Default implementation for business add-in definition BADI_M    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package AD_MPD   Maintenance Program Definition 
Created 20040122   SAP 
Last change 20050301   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_DEF_IM_BADI_MPD_REPORTING has no forward declaration.
Interfaces
# Interface Abstract Final Description Created on
1 IF_EX_BADI_MPD_REPORTING Business add-in interface IF_EX_BADI_MPD_REPORTING 20040122
Friends
Class CL_DEF_IM_BADI_MPD_REPORTING has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GC_GREEN Constant Private Type reference (TYPE) MPD_STATUS 1 Status is green 20040211
2 GC_GREY Constant Private Type reference (TYPE) MPD_STATUS 4 Status is green 20040211
3 GC_RED Constant Private Type reference (TYPE) MPD_STATUS 3 Status is green 20040211
4 GC_WARN Instance attribute Private Type reference (TYPE) MPD_STATUS 5 Status for Reporting Result 20040416
5 GC_YELLOW Constant Private Type reference (TYPE) MPD_STATUS 2 Status is green 20040211
6 GR_RPT_RESULT Instance attribute Private Object reference (TYPE REF TO) DATA 20040302
7 GS_CREATE_UPDATE Instance attribute Private Type reference (TYPE) MPD_MPCRT_STRC MPD: Import Structure for Maintenance Plan Creation BAdI 20040216
8 GS_MPDPSD Instance attribute Private Type reference (TYPE) MPDPSD MPD: Planning & Scheduling data 20040301
9 GS_UPDATE Instance attribute Private Type reference (TYPE) MPD_MPUPD_STRC MPD: Import Structure for Maintenance Plan Update BAdI 20040216
10 GT_CREATE_UPDATE Instance attribute Private Type reference (TYPE) MPD_MPCRT_TAB MPD: Import Structure for Maintenance Plan Creation BAdI 20040216
11 GT_DOC_STATUS Instance attribute Private Type reference (TYPE) TT_TDWS Stores relative statuses for documents 20040510
12 GT_UPDATE Instance attribute Private Type reference (TYPE) MPD_MPUPD_TAB MPD: Import Structure for Maintenance Plan Update BAdI 20040216
13 GV_INFO_ICON_ON Instance attribute Private Type reference (TYPE) XFELD flag to turn the info icon on 20040416
14 GV_MPDPSD_OK_FLAG Instance attribute Private Type reference (TYPE) XFELD xx 20040213
15 GV_VALID_FOR_UPDATE_FALG Instance attribute Private Type reference (TYPE) XFELD Flag to confirm that the record is valid of update 20040216
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_FOR_COUNTER_DATA Instance method Private Method Checks whether the technical object has counter data 20040305
2 CHECK_FOR_DOCUMENT_STATUS Instance method Private Method Checks the status of documents 20040507
3 CHECK_FOR_DOC_DATA Instance method Private Method Checks for document data 20040217
4 CHECK_FOR_MAINTPLAN_DATA Instance method Private Method Checks for maintenance plan data 20040211
5 CHECK_FOR_MPDPSD Instance method Private Method Checks if the DOKAR has the corresponding MPDPSD in tab TDWO 20040213
6 CHECK_FOR_PLANNED_JOB_STATUS Instance method Private Method Checks the status of planned jobs 20040415
7 CHECK_FOR_PLANSCHED_DATA Instance method Private Method Checks for planning and scheduling data 20040211
8 CHECK_FOR_PLANT Instance method Private Method Checks whether the plants corresponds together 20040714
9 CHECK_FOR_TASKLIST_DATA Instance method Private Method Checks for planning and scheduling data 20040211
10 CHECK_FOR_TECHOBJ_DATA Instance method Private Method Checks for technical object data 20040211
11 CHECK_FOR_UPDATE_RELEVANCE Instance method Private Method Checks whether the record is relevant for update 20040510
12 GET_ACTIVE_STATUS Instance method Private Method Gets active status from an object number 20040309
13 GET_NOTIF_ORDER_FOR_MP Instance method Private Method Gets the relevant notifi. & orders for a certain Maint.plan 20040309
14 SET_LED_ICON_FOR_CHNGIMP Instance method Private Method Sets the LED icon for change implementation reporting 20040216
15 SET_LED_ICON_FOR_CONSIST Instance method Private Method Sets the LED icon for consistency reporting 20040216
16 SET_LED_ICON_FOR_WORKSTAT Instance method Private Method Sets the LED Icon for work status reporting 20040218
17 SET_STATUS Instance method Private Method Sets the reporting status 20040305
18 STATUS_FOR_MAINTPLAN Instance method Private Method Checks the status of the maintenance plan 20040227
Events
Class CL_DEF_IM_BADI_MPD_REPORTING has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TT_AUFNR Private See coding 20040309 tt_aufnr TYPE TABLE OF aufnr
2 TT_DATE Private See coding 20040311 tt_date TYPE TABLE OF dats
3 TT_QMNUM Private See coding 20040309 tt_qmnum TYPE TABLE OF qmnum
4 TT_TDWS Private See coding 20040510 tt_TDWS TYPE TABLE OF TDWS
5 TT_TJ02T Private See coding 20040309 tt_tj02t TYPE TABLE OF tj02t
Method Signatures

Method CHECK_FOR_COUNTER_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_JOBCOUNT Call by reference Type reference (TYPE) BTCJOBCNT Job-ID: 20040715
2 Exporting EV_JOBNAME Call by reference Type reference (TYPE) BTCJOB Name des Hintergrundjobs 20040715
3 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS MPD: Status for Reporting Result 20040305
4 Importing IV_EQUNR Call by reference Type reference (TYPE) EQUI-EQUNR Equipment-Nummer 20040305
5 Importing IV_PSDATA_ID Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PSDATA_ID MPD: Planning and Scheduling Data Identifier 20040305
6 Importing IV_PSDATA_WSET Call by reference Type reference (TYPE) WSET 20040616
7 Importing IV_TPLNR Call by reference Type reference (TYPE) IFLOT-TPLNR Technischer Platz 20040305

Method CHECK_FOR_COUNTER_DATA on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method CHECK_FOR_DOCUMENT_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS Status zum Berichtsergebnis 20040507
2 Importing IV_DOCUMENT Call by reference Type reference (TYPE) MPD_DOCUMENT_KEY MPD: Struktur für Dokumentschlüssel 20040507

Method CHECK_FOR_DOCUMENT_STATUS on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method CHECK_FOR_DOC_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MPDPSD_OK_FLAG Call by reference Type reference (TYPE) XFELD Ankreuzfeld 20040217
2 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS MPD: Status for Reporting Result 20040217
3 Importing IV_DOCUMENT Call by reference Type reference (TYPE) MPD_DOCUMENT_KEY MPD: Struktur für Dokumentschlüssel 20040217
# Exception Resumable Description Created on
1 DOC_IS_NOT_ACTUAL The version of the document is not the most recent 20040510
2 NOT_MPDPSD_RELEVANT Not relevant for transaction 20040510
3 NO_DOC_DATA Keine Dokumentdaten verfügbar 20040510

Method CHECK_FOR_MAINTPLAN_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_STATUS_INACT Call by reference Type reference (TYPE) MPD_JSTAT_TAB MPD: Status Wartungsplan aktiv 20040308
2 Exporting EV_MPLNR Call by reference Type reference (TYPE) MPD_WORKSTAT_RPT_STRC-MPLNR MPD: Maintenance Plan Number 20040225
3 Exporting EV_MPTXT Call by reference Type reference (TYPE) MPD_WORKSTAT_RPT_STRC-MPTXT MPD: Maintenance Plan Text 20040225
4 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_WORKSTAT_RPT_STRC-STATUS MPD: Status for Reporting Result 20040227
5 Importing IR_MAINTPLAN Call by reference Object reference (TYPE REF TO) CL_MPD_MAINTPLAN 20040211
# Exception Resumable Description Created on
1 NOT_RELEVANT MP is not relevant for the display in the reportings 20040713

Method CHECK_FOR_MPDPSD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_OK_FLAG Call by reference Type reference (TYPE) XFELD 20040213
2 Importing IV_DOKAR Call by reference Type reference (TYPE) DRAW-DOKAR Belegart 20040213

Method CHECK_FOR_MPDPSD on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method CHECK_FOR_PLANNED_JOB_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_STATUS Status zum Berichtsergebnis 20040415
2 Importing IS_MPDPSD Call by reference Type reference (TYPE) MPDPSD MPD: Planungs- und Terminierungsdaten 20040415
3 Importing IV_ALREADY_UPDATED Call by reference Type reference (TYPE) XFELD 20040607
4 Importing IV_EQUNR Call by reference Type reference (TYPE) EQUNR Equipmentnummer 20040715
5 Importing IV_JOBCOUNT Call by reference Type reference (TYPE) BTCJOBCNT Job-ID: 20040715
6 Importing IV_JOBNAME Call by reference Type reference (TYPE) BTCJOB Name des Hintergrundjobs 20040715
7 Importing IV_STATUS Call by reference Type reference (TYPE) MPD_STATUS Status zum Berichtsergebnis 20040415
8 Importing IV_TPLNR Call by reference Type reference (TYPE) TPLNR Technischer Platz 20040715
9 Importing IV_UPDATE_MODE Call by reference Type reference (TYPE) XFELD 20040607

Method CHECK_FOR_PLANNED_JOB_STATUS on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method CHECK_FOR_PLANSCHED_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_MPDPSD Call by reference Type reference (TYPE) MPDPSD MPD: Planungs- und Terminierungsdaten 20040308
2 Exporting EV_PLNAL Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PLNAL Gruppenzähler 20040314
3 Exporting EV_PLNNR Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PLNNR 20040314
4 Exporting EV_PLNTY Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PLNTY Arbeitsplantyp 20040314
5 Exporting EV_PSDATA_ID Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PSDATA_ID 20040314
6 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS 20040314
7 Exporting EV_WERGW Call by reference Type reference (TYPE) WERGW Werk zum verantwortlichen Arbeitsplatz 20040715
8 Importing IS_DOKAR Call by reference Type reference (TYPE) MPD_DOCUMENT_KEY-DOKAR Belegart 20040225
9 Importing IS_DOKNR Call by reference Type reference (TYPE) MPD_DOCUMENT_KEY-DOKNR Belegnummer 20040225
10 Importing IS_DOKTL Call by reference Type reference (TYPE) MPD_DOCUMENT_KEY-DOKTL Teildokument 20040225
11 Importing IS_DOKVR Call by reference Type reference (TYPE) MPD_DOCUMENT_KEY-DOKVR Dokumentenversion 20040225

Method CHECK_FOR_PLANSCHED_DATA on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method CHECK_FOR_PLANT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS Status zum Berichtsergebnis 20040714
2 Importing IV_IWERK Call by reference Type reference (TYPE) IWERK Instandhaltungsplanungswerk 20040714
3 Importing IV_WERGW Call by reference Type reference (TYPE) WERGW Werk zum verantwortlichen Arbeitsplatz 20040714
# Exception Resumable Description Created on
1 BURKS_DIFFERENT Company codes are different 20040715
2 KORKS_DIFFERENT Controlling areas are different 20040715
3 NO_PLANNING_PLANT No planning plant 20040715

Method CHECK_FOR_TASKLIST_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_PLNAL Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PLNAL Gruppenzähler 20040225
2 Exporting EV_PLNNR Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PLNNR Key for Task List Group 20040225
3 Exporting EV_PLNTY Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PLNTY Arbeitsplantyp 20040225
4 Exporting EV_PLTXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-PLTXT Task list description 20040512
5 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS MPD: Status for Reporting Result 20040225
6 Importing IS_EQUIPMENT Call by reference Type reference (TYPE) MPD_EQUI MPD: Equipment 20040604
7 Importing IS_FUNCLOCAT Call by reference Type reference (TYPE) MPD_FLOC MPD: Technischer Platz 20040604
8 Importing IS_TASKLIST Call by reference Type reference (TYPE) MPD_TASKLIST_KEY MPD: Technischer Platz 20040211
# Exception Resumable Description Created on
1 WRONG_EQ_TYPE 20040604
2 WRONG_FL_TYPE 20040604

Method CHECK_FOR_TECHOBJ_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_EQTXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-EQTXT 20040314
2 Exporting EV_EQUNR Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-EQUNR Equipmentnummer 20040314
3 Exporting EV_IWERK Call by reference Type reference (TYPE) IWERK Instandhaltungsplanungswerk 20040715
4 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS 20040314
5 Exporting EV_TPLNR Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-TPLNR Technischer Platz 20040314
6 Exporting EV_TPLTXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-TPLTXT 20040314
7 Importing IS_EQUIPMENT Call by reference Type reference (TYPE) MPD_EQUI 20040211
8 Importing IS_FUNCLOCAT Call by reference Type reference (TYPE) MPD_FLOC MPD: Technischer Platz 20040211
# Exception Resumable Description Created on
1 NOT_RELEVANT Technical object is not relevant for the display in the rpts 20040713

Method CHECK_FOR_UPDATE_RELEVANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_EQUIPMENT Call by reference Type reference (TYPE) MPD_EQUI MPD: Equipment 20040602
2 Importing IS_FUNCLOCAT Call by reference Type reference (TYPE) MPD_FLOC MPD: Technischer Platz 20040602
3 Importing IS_MPDPSD Call by reference Type reference (TYPE) MPDPSD MPD: Planungs- und Terminierungsdaten 20040510
# Exception Resumable Description Created on
1 ALREADY_UPDATED 20040602
2 DATA_NOT_RELEVANT 20040510
3 TO_BE_UPDATED 20040602

Method GET_ACTIVE_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_STATUS Call by reference Type reference (TYPE) TJ02T 20040309
2 Importing IV_OBJNR Call by reference Type reference (TYPE) QMOBJNR Objektnummer für Statusverwaltung 20040309

Method GET_ACTIVE_STATUS on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method GET_NOTIF_ORDER_FOR_MP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_AUFNR Call by reference Type reference (TYPE) TT_AUFNR Auftragsnummer 20040309
2 Exporting ET_NOTIF_ENDDATE Call by reference Type reference (TYPE) TT_DATE 20040311
3 Exporting ET_NOTIF_STARTDATE Call by reference Type reference (TYPE) TT_DATE 20040311
4 Exporting ET_NOTIF_STATUS Call by reference Type reference (TYPE) TT_TJ02T 20040309
5 Exporting ET_ORDER_ENDDATE Call by reference Type reference (TYPE) TT_DATE Eckendtermin 20040311
6 Exporting ET_ORDER_STARTDATE Call by reference Type reference (TYPE) TT_DATE Eckstarttermin 20040311
7 Exporting ET_ORDER_STATUS Call by reference Type reference (TYPE) TT_TJ02T 20040309
8 Exporting ET_QMNUM Call by reference Type reference (TYPE) TT_QMNUM Meldungsnummer 20040309
9 Importing IV_WARPL Call by reference Type reference (TYPE) WARPL Wartungsplan 20040309

Method GET_NOTIF_ORDER_FOR_MP on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method SET_LED_ICON_FOR_CHNGIMP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_STATUS_ICON Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_ICON MPD: Statusikone 20040216
2 Importing IV_ALREADY_UPDATED Call by reference Type reference (TYPE) XFELD 20040602
3 Importing IV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS MPD: Status for Reporting Result 20040216
4 Importing IV_STATUS_TXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_TXT MPD: Status Text for reporting 20040216

Method SET_LED_ICON_FOR_CHNGIMP on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method SET_LED_ICON_FOR_CONSIST Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_STATUS_ICON Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_ICON MPD: Statusikone 20040216
2 Importing IV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS MPD: Status for Reporting Result 20040216
3 Importing IV_STATUS_TXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_TXT MPD: Status Text for reporting 20040216

Method SET_LED_ICON_FOR_CONSIST on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method SET_LED_ICON_FOR_WORKSTAT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_STATUS_ICON Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_ICON MPD: Statusikone 20040218
2 Exporting EV_STATUS_TXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_TXT MPD: Statustext für Bericht 20040308
3 Importing IS_NOTIF_STATUS Call by reference Type reference (TYPE) TJ02T Meldungsstatus 20040310
4 Importing IS_ORDER_STATUS Call by reference Type reference (TYPE) TJ02T 20040310
5 Importing IV_COMPLI_DATE Call by reference Type reference (TYPE) MPDPSD-COMPLIANCE_DATE 20040308
6 Importing IV_NOTIF_ENDDATE Call by reference Type reference (TYPE) MPD_NOTIF_ENDDATE 20040312
7 Importing IV_NOTIF_STARTDATE Call by reference Type reference (TYPE) MPD_NOTIF_STARTDATE 20040312
8 Importing IV_ORDER_ENDDATE Call by reference Type reference (TYPE) MPD_ORDER_ENDDATE 20040312
9 Importing IV_ORDER_STARTDATE Call by reference Type reference (TYPE) MPD_ORDER_STARTDATE 20040312

Method SET_LED_ICON_FOR_WORKSTAT on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method SET_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS MPD: Status for Reporting Result 20040305
2 Exporting EV_STATUS_TXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_TXT MPD: Statustext für Bericht 20040305
3 Importing IV_STATUS Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS MPD: Status for Reporting Result 20040305
4 Importing IV_STATUS_TXT Call by reference Type reference (TYPE) MPD_CONSIST_RPT_STRC-STATUS_TXT MPD: Statustext für Bericht 20040305
5 Importing IV_TEXT Call by reference Type reference (TYPE) CHAR200 Text element text 20040305

Method SET_STATUS on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.

Method STATUS_FOR_MAINTPLAN Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_JSTAT Call by reference Type reference (TYPE) MPD_JSTAT_TAB Tabellentyp für Objektstatus 20040227
2 Importing IV_MPLNR Call by reference Type reference (TYPE) MPD_WORKSTAT_RPT_STRC-MPLNR MPD: Maintenance Plan Number 20040227

Method STATUS_FOR_MAINTPLAN on class CL_DEF_IM_BADI_MPD_REPORTING has no exception.
History
Last changed by/on SAP  20050301 
SAP Release Created in 500