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

EAM_TASKLIST_UNITTEST_HELPER SAP ABAP INCLUDE - Unittest for CL_EAM_TASKLIST - Update







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

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:

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = iv_plnty i_plnnr = iv_plnnr "i_plnal IMPORTING et_plko = lt_plko EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = iv_plnty i_plnnr = iv_plnnr i_plnal = iv_plnal IMPORTING et_plko = lt_plko EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = iv_plnty i_plnnr = iv_plnnr i_plnal = iv_plnal IMPORTING et_plko = lt_plko et_plpo = lt_plpo_exp "expected operations et_plas = lt_plas EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = iv_plnty i_plnnr = iv_plnnr i_plnal = iv_plnal IMPORTING et_plmz = lt_plmz_exp "expected plmz_components et_stpo = lt_stpo_exp "expected stpo_components EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = iv_plnty i_plnnr = iv_plnnr i_plnal = iv_plnal IMPORTING et_plab = lt_plab_exp "expected relations EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = iv_plnty i_plnnr = iv_plnnr i_plnal = iv_plnal IMPORTING et_srv_lines = lt_srv_lines_exp et_srv_outlines = lt_srv_outlines_exp et_srv_limits = lt_srv_limits_exp et_srv_contract_limits = lt_srv_contr_limits_exp EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = iv_plnty i_plnnr = iv_plnnr i_plnal = iv_plnal IMPORTING et_plwp = lt_plwp_exp "expected mpackages EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

PMTL_GET_CPBT_CONTENT CALL FUNCTION 'PMTL_GET_CPBT_CONTENT' EXPORTING i_plnty = ls_plko-plnty i_plnnr = ls_plko-plnnr i_plnal = ls_plko-plnal IMPORTING et_plpo = lt_plpo EXCEPTIONS tasklist_not_found = 1 tasklist_locked = 2 OTHERS = 3.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = abap_true.

EAM_TASKLIST_POST CALL FUNCTION 'EAM_TASKLIST_POST' EXPORTING iv_plnty = iv_plnty iv_plnnr = iv_plnnr IMPORTING et_return = ct_return.



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