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

MWPSTLHMO02 SAP ABAP INCLUDE - documentation and ABAP source code







MWPSTLHMO02 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 MWPSTLHMO02 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 MWPSTLHMO02. "Basic submit
SUBMIT MWPSTLHMO02 AND RETURN. "Return to original report after report execution complete
SUBMIT MWPSTLHMO02 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 MWPSTLHMO02

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:

CC_CHANGE_NUMBER_READ CALL FUNCTION 'CC_CHANGE_NUMBER_READ' "N486381 EXPORTING "N486381 EAENNR = PLKOD-AENNR "N486381 IMPORTING "N486381 ADATUV = LV_AENNR_DATUV. "N486381

FIELD_SELECTION_MODIFY_ALL CALL FUNCTION 'FIELD_SELECTION_MODIFY_ALL' EXPORTING DYNPROGRUPPE = 'MODI' MODE = 'C' MODULPOOL = 'SAPMWPSTLHM'.

WPSTLH_CHECK_AENNR CALL FUNCTION 'WPSTLH_CHECK_AENNR' EXPORTING i_aennr = rc271-aennr i_sttag = rc271-sttag i_plnty = plkod-plnty i_plnnr = plkod-plnnr i_plnal = plkod-plnal i_no_objdat_pop = 'X' "N1175207 IMPORTING e_sttag = ld_sttag EXCEPTIONS keydate_not_valid = 1 change_number_error = 2 OTHERS = 3.

ENQUEUE_EPPLKO CALL FUNCTION 'ENQUEUE_EPPLKO' EXPORTING plnty = plkod-plnty plnnr = plkod-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 = 'S' msgv1_imp = plkod-plnnr plnty_imp = plkod-plnty.

CM_F_MESSAGE CALL FUNCTION 'CM_F_MESSAGE' EXPORTING arbgb = 'MC' msgnr = '600' msgty = 'A' EXCEPTIONS OTHERS = 1.

T024A_READ CALL FUNCTION 'T024A_READ' EXPORTING WERKS = PLKOD-WERKS FEVOR = PLKOD-VAGRP IMPORTING STRUCT = T024A.

T357M_READ CALL FUNCTION 'T357M_READ' EXPORTING LANGU = SY-LANGU ANLZU = PLKOD-ANLZU IMPORTING STRUCT = T357M TEXT = T357M_T-ANLZUX EXCEPTIONS NO_ENTRY = 01 NO_TEXT = 02.

T411_READ CALL FUNCTION 'T411_READ' EXPORTING SPRAS = SY-LANGU VERWE = PLKOD-VERWE IMPORTING TEXT = T411T-TXT STRUCT = T411 EXCEPTIONS NO_ENTRY = 01 NO_TEXT = 02.

T412_READ CALL FUNCTION 'T412_READ' EXPORTING SPRAS = SY-LANGU PLNST = PLKOD-STATU IMPORTING TEXT = T412T-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 MWPSTLHMO02 or its description.