SAP Reports / Programs | Plant Maintenance | Preventive Maintenance | Maintenance Task Lists(PM-PRM-TL) SAP PM

MWPSTLHMI01 SAP ABAP INCLUDE - documentation and ABAP source code







MWPSTLHMI01 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter MWPSTLHMI01 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT MWPSTLHMI01. "Basic submit
SUBMIT MWPSTLHMI01 AND RETURN. "Return to original report after report execution complete
SUBMIT MWPSTLHMI01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT MWPSTLHMI01

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

CP_NV_DETERMINE_PLNNR CALL FUNCTION 'CP_NV_DETERMINE_PLNNR' "N456845 EXPORTING "N456845 FLG_UNIQUE = ' ' "N456845 PLNTY = RC271-PLNTY "N456845 IMPORTING "N456845 PLNNR = RC271-PLNNR. "N456845

WPSTLH_CHECK_AENNR CALL FUNCTION 'WPSTLH_CHECK_AENNR' EXPORTING I_AENNR = RC271-AENNR I_STTAG = RC271-STTAG I_PLNTY = RC271-PLNTY I_PLNNR = RC271-PLNNR I_PLNAL = RC271-PLNAL I_NO_OBJDAT_POP = LV_NO_POP_UP "N1175207 IMPORTING E_STTAG = LD_STTAG EXCEPTIONS KEYDATE_NOT_VALID = 1 CHANGE_NUMBER_ERROR = 2 OTHERS = 3.

CP_99_PLAN_MESSAGE_SET CALL FUNCTION 'CP_99_PLAN_MESSAGE_SET' "N459234 EXPORTING "N459234 MSGNR_IMP = '020' "N459234 MSGV1_IMP = LD_STTAG "N459234 MSGTY_IMP = 'W' "N459234 PLNTY_IMP = RC271-PLNTY. "N459234

ENQUEUE_ECAENRS CALL FUNCTION 'ENQUEUE_ECAENRS' EXPORTING AENNR = RC271-AENNR.

CZ_PLATZ_READ CALL FUNCTION 'CZ_PLATZ_READ' EXPORTING TPLNR = RC27E-TPLNR STATUS_CHECK_IMP = CON_X IMPORTING RC27E_EXP = RC27E EXCEPTIONS PLATZ_NOT_FOUND = 1 OTHERS = 2.

CZ_EQUIPMENT_READ CALL FUNCTION 'CZ_EQUIPMENT_READ' EXPORTING EQUNR = RC27E-EQUNR STTAG = RC271-STTAG CHECK_STATUS_IMP = CON_X IMPORTING RC27E_EXP = RC27E EXCEPTIONS EQUIPMENT_NOT_FOUND = 1 OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = TEXT-008 TEXT_QUESTION = TEXT-009 DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' IMPORTING ANSWER = LD_ANSW.

CP_NV_EXTERNAL_NUMBER_CHECK CALL FUNCTION 'CP_NV_EXTERNAL_NUMBER_CHECK' EXPORTING I_RC271_PLNNR = RC271-PLNNR I_TCA01 = SAV_TCA01 IMPORTING E_NO_EXT_NUMBER = FLG_WRONG_NR.

CP_99_PLAN_MESSAGE_SET CALL FUNCTION 'CP_99_PLAN_MESSAGE_SET' EXPORTING MSGNR_IMP = '003' MSGTY_IMP = 'E' MSGV1_IMP = RC271-PLNNR PLNTY_IMP = SAV_TCA01-PLNTY.

ENQUEUE_EPPLKO CALL FUNCTION 'ENQUEUE_EPPLKO' EXPORTING PLNTY = RC271-PLNTY PLNNR = RC271-PLNNR EXCEPTIONS FOREIGN_LOCK = 01 SYSTEM_FAILURE = 02.

CP_99_PLAN_MESSAGE_SET CALL FUNCTION 'CP_99_PLAN_MESSAGE_SET' EXPORTING MSGNR_IMP = '004' MSGTY_IMP = 'E' MSGV1_IMP = RC271-PLNNR PLNTY_IMP = RC271-PLNTY.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING ARBGB = 'MC' MSGNR = '600' MSGTY = 'A' EXCEPTIONS OTHERS = 1.

TCA01_READ CALL FUNCTION 'TCA01_READ' EXPORTING PLNTY = RC271-PLNTY SPRAS = SY-LANGU IMPORTING STRUCT = SAV_TCA01 TEXT = TCA02-TXT.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name MWPSTLHMI01 or its description.