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

MWPSTLEF01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

WPSTS_GET_SUBORDINATE_TL_ALL CALL FUNCTION 'WPSTS_GET_SUBORDINATE_TL_ALL' EXPORTING PLNAL = RMIPM-PLNAL PLNNR = RMIPM-PLNNR PLNTY = RMIPM-PLNTY TABLES PLKO_SUB = T_PLKO EXCEPTIONS NO_DATA_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3.

TCA01_FOR_PM_CHK CALL FUNCTION 'TCA01_FOR_PM_CHK' EXPORTING PLNTY_IMP = P_PLNTY EXCEPTIONS PM_ANLEITUNG = 01 PM_EQUI_PLAN = 02 PM_IFL_PLAN = 03.

PM_ROUTINGS_SELECTION CALL FUNCTION 'PM_ROUTINGS_SELECTION' EXPORTING I_IND_TYPE = 'W' I_EQUNR = RMIPM-EQUNR I_TPLNR = RMIPM-TPLNR I_BAUTL = ' ' I_IWERK = VIQMEL-IWERK I_IND_WPLAN = '1' I_DATUM = VIQMEL-QMDAT "N499529 TABLES SEL_TAB = SEL_TAB.

TCA09_READ CALL FUNCTION 'TCA09_READ' EXPORTING PLNAW = 'I' IMPORTING STRUCT = TCA09 EXCEPTIONS NO_ENTRY = 1.

TEXT_FOR_HEADER CALL FUNCTION 'TEXT_FOR_HEADER' EXPORTING OBJECT = TCA09-OBJALT ID = TCA09-IDALT LTSCH = KEY_TEXT LTSCH_NEU = KEY_TEXT KTEXT = RMIPM-PLANTEXT SPALTEN = FELDLAENGE LINELENGTH = FELDLAENGE TEXTTITLE = HEADLINE SHOW_FLAG = 'X' * LANGUAGE = H_PLKOB-TXTSP.



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 MWPSTLEF01 or its description.