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

MWPSTLHMF01 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'PLKOD' CHANGING ct_fieldcat = gt_fieldcatalog.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

CP_BT_FREE_TABLES CALL FUNCTION 'CP_BT_FREE_TABLES'.

CZ_BT_FREE_TABLES CALL FUNCTION 'CZ_BT_FREE_TABLES'.

CP_15_DATA_RESET CALL FUNCTION 'CP_15_DATA_RESET'. "N541719

WPSTS_GET_SUBORD_TL_WPSTLH_ALL CALL FUNCTION 'WPSTS_GET_SUBORD_TL_WPSTLH_ALL' EXPORTING plnal = p_plkod-plnal plnnr = p_plkod-plnnr plnty = p_plkod-plnty sttag = sav_sttag TABLES tlhierarchy = t_wps_tlh EXCEPTIONS tasklist_not_found = 01 level_too_high = 02 internal_error = 03.

WPSTS_TLH_SET_ELIMINATION_FLAG * CALL FUNCTION 'WPSTS_TLH_SET_ELIMINATION_FLAG' "N1590243 * TABLES * tlhierarchy = t_wps_tlh.

CP_BT_PLKO_READ_WITH_KEY CALL FUNCTION 'CP_BT_PLKO_READ_WITH_KEY' EXPORTING plnal = ld_wa_wps_tlh-subplnal plnnr = ld_wa_wps_tlh-subplnnr plnty = ld_wa_wps_tlh-subplnty IMPORTING plkod_exp = exp_plkod vbkz_exp = lv_vbkz EXCEPTIONS not_found = 1 OTHERS = 2.

WPSTLH_INSERT_DOCUMENT_TABLES CALL FUNCTION 'WPSTLH_INSERT_DOCUMENT_TABLES' EXPORTING i_plkod = ld_plkod i_plkod_parent = selected_plkod i_sttag = sav_sttag i_trtyp = sav_trtype TABLES "N965505 tlhierarchy = gt_hierarchy "N965505 EXCEPTIONS no_tasklist = 1 OTHERS = 2.

WPSTS_TL_CHECK_CONFIGURABLE CALL FUNCTION 'WPSTS_TL_CHECK_CONFIGURABLE' EXPORTING i_datuv = sav_sttag i_plnal = selected_xtlhier_key-subplnal i_plnnr = selected_xtlhier_key-subplnnr i_plnty = selected_xtlhier_key-subplnty IMPORTING e_is_configurable = ld_is_configurable TABLES e_t_inob = t_inob e_t_kssk = t_kssk e_t_klah = t_klah.

CUKD_ECM_NUMBER_VALID_OBJ CALL FUNCTION 'CUKD_ECM_NUMBER_VALID_OBJ' "N486381 EXPORTING "N486381 table = 'POSV' "N486381 ecm_number = sav_aennr "N486381 EXCEPTIONS "N486381 ecm_number_not_found = 1 "N486381 ecm_number_not_for_deps = 2 "N486381 date_in_past = 3 "N486381 OTHERS = 4. "N486381

CUKD_API_ALLOCATIONS_READ CALL FUNCTION 'CUKD_API_ALLOCATIONS_READ' "N486381 EXPORTING allocation_number = lv_knobj table = 'POSV' with_alloc_data = ' ' with_basic_data = ' ' TABLES sources = lt_sources_tmp EXCEPTIONS error = 1 OTHERS = 2.

OM_EDITOR_CALL CALL FUNCTION 'OM_EDITOR_CALL' EXPORTING node = hlp_conf_node clint = cocom_clint date = sav_sttag display_mode = ld_display_mode * in_buffer_refresh = 'X' "571895 CHANGING instances = co000_einst EXCEPTIONS internal_error = 1 OTHERS = 2.

CP_BT_UPDATE_CHK CALL FUNCTION 'CP_BT_UPDATE_CHK' IMPORTING flg_change = ld_flg_changed.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = text-119.

CP_BT_PLAN_READ_FROM_DB CALL FUNCTION 'CP_BT_PLAN_READ_FROM_DB' "Note 545246 EXPORTING flg_adm_imp = ' ' plnnr = rc271-plnnr plnty = rc271-plnty IMPORTING plnal_max = ld_plnal_max EXCEPTIONS routing_not_found = 1 OTHERS = 2.

CP_15_READ_PLKZ_FROM_DB CALL FUNCTION 'CP_15_READ_PLKZ_FROM_DB' "Note 545246 EXPORTING plnty_imp = rc271-plnty plnnr_imp = rc271-plnnr EXCEPTIONS not_found = 1.

WPSTLH_CREATE_TASKLIST_DOCTABS CALL FUNCTION 'WPSTLH_CREATE_TASKLIST_DOCTABS' EXPORTING i_plnty = rc271-plnty i_plnnr = rc271-plnnr i_ktext = plkod-ktext i_extid = plkod-tl_extid i_tplnr = rc27e-tplnr i_equnr = rc27e-equnr i_werks = rc271-werks i_statu = rc271-statu i_verwe = rc271-verwe i_aennr = rc271-aennr i_sttag = rc271-sttag IMPORTING e_plkod = plkod EXCEPTIONS no_internal_numbering = 1 OTHERS = 2.

T411_READ





CALL FUNCTION 'T411_READ' EXPORTING spras = sy-langu verwe = plkod-verwe IMPORTING struct = t411 EXCEPTIONS no_entry = 01 no_text = 02.

WPSTS_GET_SUBORD_TL_WPSTLH_ALL CALL FUNCTION 'WPSTS_GET_SUBORD_TL_WPSTLH_ALL' EXPORTING plnal = wa_plkod-plnal plnnr = wa_plkod-plnnr plnty = wa_plkod-plnty sttag = sav_sttag TABLES tlhierarchy = ld_tlhier.

WPSTS_GET_SUBORD_TL_WPSTLH_ALL CALL FUNCTION 'WPSTS_GET_SUBORD_TL_WPSTLH_ALL' EXPORTING plnal = wa_plkod-plnal plnnr = wa_plkod-plnnr plnty = wa_plkod-plnty sttag = sav_sttag TABLES tlhierarchy = ld_tlhier.

WPSTLH_CHECK_RECURSION CALL FUNCTION 'WPSTLH_CHECK_RECURSION' EXPORTING sup_plnty = selected_plkod-plnty sup_plnnr = selected_plkod-plnnr sup_plnal = selected_plkod-plnal sub_plnty = -subplnty "N868825 sub_plnnr = -subplnnr "N868825 sub_plnal = -subplnal "N868825 EXCEPTIONS recursion_exists = 1 OTHERS = 2.

WPSTS_TLH_SET_ELIMINATION_FLAG CALL FUNCTION 'WPSTS_TLH_SET_ELIMINATION_FLAG' TABLES tlhierarchy = sav_xtlhier_key.

WPSTS_TL_CHECK_CONFIGURABLE CALL FUNCTION 'WPSTS_TL_CHECK_CONFIGURABLE' EXPORTING i_datuv = sav_sttag i_plnal = ld_wa_tlhier_key-subplnal i_plnnr = ld_wa_tlhier_key-subplnnr i_plnty = ld_wa_tlhier_key-subplnty IMPORTING e_is_configurable = ld_kzkfg.

CP_BT_PLPO_READ_WITH_KEY CALL FUNCTION 'CP_BT_PLPO_READ_WITH_KEY' EXPORTING plnkn = selected_xtlhier_key-supplnkn plnnr = selected_xtlhier_key-supplnnr plnty = selected_xtlhier_key-supplnty IMPORTING index = ld_index_plpo plpod_exp = ld_wa_plpod EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLPO_UPDATE CALL FUNCTION 'CP_BT_PLPO_UPDATE' EXPORTING aennr = sav_aennr plpod_new = ld_wa_plpod sttag = sav_sttag tabix_old = ld_index_plpo.

CP_BT_PLKO_READ_WITH_KEY CALL FUNCTION 'CP_BT_PLKO_READ_WITH_KEY' "< IMPORTING index = selected_plkod_index plkod_exp = selected_plkod EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLKO_UPDATE CALL FUNCTION 'CP_BT_PLKO_UPDATE' EXPORTING aennr = sav_aennr plkod_new = plkod sttag = sav_sttag tabix_old = selected_plkod_index.

CP_BT_PLKO_READ_WITH_KEY CALL FUNCTION 'CP_BT_PLKO_READ_WITH_KEY' "<

CP_BT_PLPO_READ_ALL CALL FUNCTION 'CP_BT_PLPO_READ_ALL' EXPORTING not_sumnr = con_x TABLES plpo_ex = t_plpoe EXCEPTIONS plas_not_found = 1 plpo_not_found = 2.

CP_BT_PLPO_READ_WITH_INDEX CALL FUNCTION 'CP_BT_PLPO_READ_WITH_INDEX' EXPORTING index = -index_plpo "N868825 IMPORTING plpod_exp = ld_wa_plpod.

CP_BT_PLKO_READ_WITH_KEY CALL FUNCTION 'CP_BT_PLKO_READ_WITH_KEY' EXPORTING plnal = ld_wa_plpod-subplnal plnnr = ld_wa_plpod-subplnnr plnty = ld_wa_plpod-subplnty IMPORTING plkod_exp = ls_plkod EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLPO_READ_WITH_KEY CALL FUNCTION 'CP_BT_PLPO_READ_WITH_KEY' EXPORTING plnkn = selected_xtlhier_key-supplnkn plnnr = selected_xtlhier_key-supplnnr plnty = selected_xtlhier_key-supplnty IMPORTING index = ld_index_plpo plpod_exp = ld_wa_plpod EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLAS_READ_WITH_KEY_PLNKN CALL FUNCTION 'CP_BT_PLAS_READ_WITH_KEY_PLNKN' EXPORTING plnkn = selected_xtlhier_key-supplnkn plnnr = selected_xtlhier_key-supplnnr plnty = selected_xtlhier_key-supplnty IMPORTING index = ld_index_plas EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLAS_READ_WITH_INDEX CALL FUNCTION 'CP_BT_PLAS_READ_WITH_INDEX' EXPORTING index = ld_index_plas IMPORTING plas_exp = ld_wa_plas EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLAS_UPDATE CALL FUNCTION 'CP_BT_PLAS_UPDATE' EXPORTING plas_new = ld_wa_plas tabix_old = ld_index_plas aennr = sav_aennr sttag = sav_sttag.

OM_IS_DEPENDENCY_CHANGED CALL FUNCTION 'OM_IS_DEPENDENCY_CHANGED' EXPORTING node = hlp_conf_node EXCEPTIONS not_found = 1 no_changes = 2 changes = 3 OTHERS = 4.

OM_INSTANCES_GET CALL FUNCTION 'OM_INSTANCES_GET' EXPORTING node = hlp_conf_node CHANGING instances = t_co000_einst EXCEPTIONS not_found = 1 no_instances = 2 internal_error = 3 OTHERS = 4.




CP_BT_PLPO_READ_WITH_KEY CALL FUNCTION 'CP_BT_PLPO_READ_WITH_KEY' EXPORTING plnkn = ld_hlp_plnkn plnnr = selected_plkod-plnnr plnty = selected_plkod-plnty IMPORTING index = ld_index_plpod plpod_exp = ld_wa_plpod.

CP_BT_PLPO_UPDATE CALL FUNCTION 'CP_BT_PLPO_UPDATE' EXPORTING aennr = sav_aennr plpod_new = ld_wa_plpod sttag = sav_sttag tabix_old = ld_index_plpod.

CP_BT_PLKO_READ_WITH_INDEX CALL FUNCTION 'CP_BT_PLKO_READ_WITH_INDEX' EXPORTING index = ld_index_plko IMPORTING plkod_exp = ld_wa_plkod vbkz_exp = ld_vbkz_plko EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLPO_READ_WITH_INDEX CALL FUNCTION 'CP_BT_PLPO_READ_WITH_INDEX' EXPORTING index = ld_index_plpo IMPORTING plpod_exp = ld_wa_plpod vbkz_exp = ld_vbkz_plpo EXCEPTIONS not_found = 1 OTHERS = 2.

CP_BT_PLAS_READ_WITH_INDEX CALL FUNCTION 'CP_BT_PLAS_READ_WITH_INDEX' EXPORTING index = ld_index_plas IMPORTING plas_exp = ld_wa_plas vbkz_exp = ld_vbkz_plas EXCEPTIONS not_found = 1 OTHERS = 2.

CP_EX_DATA_REFRESH_NEW CALL FUNCTION 'CP_EX_DATA_REFRESH_NEW'. "N761244

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = ld_textline1 textline2 = ld_textline2 titel = ld_title cancel_display = ' ' IMPORTING answer = ld_answer.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '1' object = 'CUOB_KNNR' IMPORTING number = lv_knobj_new EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 buffer_overflow = 7.

CUKD_COPY_ALLOCATION CALL FUNCTION 'CUKD_COPY_ALLOCATION' EXPORTING allocation_number_old = lv_knobj_old table = 'POSV' * ECM_NUMBER = SAV_AENNR * VALID_FROM_DATE = SAV_STTAG IMPORTING allocation_number_new = lv_knobj_new EXCEPTIONS ecm_number_not_found = 1 ecm_number_not_for_deps = 2 no_allocation_found = 3 date_in_past = 4 OTHERS = 5.

OM_DEPENDENCY_COPY CALL FUNCTION 'OM_DEPENDENCY_COPY' EXPORTING knobj_old = lv_knobj_old knobj_new = lv_knobj_new im_kntab = space "N1117814 EXCEPTIONS knobj_old_not_found = 1 knobj_new_not_found = 2 customer_source_not_found = 3 OTHERS = 4.

WPSTS_TL_CHECK_CONFIGURABLE CALL FUNCTION 'WPSTS_TL_CHECK_CONFIGURABLE' EXPORTING i_datuv = sav_sttag i_plnal = selected_xtlhier_key-subplnal i_plnnr = selected_xtlhier_key-subplnnr i_plnty = selected_xtlhier_key-subplnty IMPORTING e_is_configurable = ld_is_configurable TABLES e_t_inob = t_inob e_t_kssk = t_kssk e_t_klah = t_klah.

CUKD_API_ALLOCATIONS_READ CALL FUNCTION 'CUKD_API_ALLOCATIONS_READ' "N486381 EXPORTING allocation_number = p_knobj_new table = 'POSV' * DATE = SY-DATUM with_alloc_data = ' ' with_basic_data = ' ' TABLES sources = lt_sources_new EXCEPTIONS error = 1 OTHERS = 2.

CUKD_DELETE_ALLOCATION CALL FUNCTION 'CUKD_DELETE_ALLOCATION' "N486381 EXPORTING allocation_number = p_knobj_new "N486381 table = 'POSV' "N486381 EXCEPTIONS error = 1 ecm_number_not_found = 2 ecm_number_not_for_deps = 3 ecm_needed = 4 date_in_past = 5.

CUKD_API_ALLOCATIONS_READ CALL FUNCTION 'CUKD_API_ALLOCATIONS_READ' "N486381 EXPORTING allocation_number = p_knobj_old table = 'POSV' with_alloc_data = ' ' with_basic_data = ' ' TABLES sources = lt_sources_old EXCEPTIONS error = 1 OTHERS = 2.

CUKD_DELETE_ALLOCATION CALL FUNCTION 'CUKD_DELETE_ALLOCATION' "N486381 EXPORTING "N486381 allocation_number = p_knobj_new "N486381 table = 'POSV' "N486381 EXCEPTIONS error = 1 ecm_number_not_found = 2 ecm_number_not_for_deps = 3 ecm_needed = 4 date_in_past = 5.

CP_EX_DATA_REFRESH_NEW CALL FUNCTION 'CP_EX_DATA_REFRESH_NEW'. "N761244



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