SAP Reports / Programs | Personnel Management | Personnel Administration(PA-PA) SAP PA

MPE00CY1 SAP ABAP INCLUDE - Form Routines for Maintaining Trees in PE02







MPE00CY1 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 MPE00CY1 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 MPE00CY1. "Basic submit
SUBMIT MPE00CY1 AND RETURN. "Return to original report after report execution complete
SUBMIT MPE00CY1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Form Routines for Maintaining Trees in PE02


INCLUDES used within this REPORT MPE00CY1

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:

HR_READ_CYCLE CALL FUNCTION 'HR_READ_CYCLE' EXPORTING CYCLE = $CYCLE IMPORTING CYCLE_MOLGA = ATTR_CY-MOLGA CYCLE_PROCL = ATTR_CY-PROCL CYCLE_DIRECTORY = IT52CE TABLES TABLE_CYCLE = IT52C5 EXCEPTIONS CYCLE_NOT_EXISTS = 1 OTHERS = 2.

TR_TASK_OVERVIEW CALL FUNCTION 'TR_TASK_OVERVIEW' EXPORTING IV_USERNAME = SY-UNAME IV_CATEGORY = CATEGORY IV_CLIENT = SY-MANDT * IMPORTING * EV_ORDER = * EV_TASK = * EV_VALIDDAYS = * EV_DEVCLASS = EXCEPTIONS INVALID_USERNAME = 01 INVALID_CATEGORY = 02 INVALID_CLIENT = 03 INTERNAL_ERROR = 04 OTHERS = 05.

HR_BUILD_CYCLE_TREE CALL FUNCTION 'HR_BUILD_CYCLE_TREE' EXPORTING CYCLE = $CYCLE CYCLE_MOLGA = ATTR_CY-MOLGA CYCLE_PROCL = ATTR_CY-PROCL NO_CYCLE_CHECK = 'X' "XDOPH4K000476 TABLES BAUM = TREE IT52C5 = IT52C5 EXCEPTIONS OTHERS = 1.

HR_DISPLAY_CYCLE_TREE CALL FUNCTION 'HR_DISPLAY_CYCLE_TREE' exporting "QNZAHRK032605 abart = ppe02-abart "QNZAHRK032605 lgart = ppe02-lgart "QNZAHRK032605 TABLES BAUM = TREE EXCEPTIONS OTHERS = 1.

HR_DISPLAY_CHANGE_CYCLE_TREE CALL FUNCTION 'HR_DISPLAY_CHANGE_CYCLE_TREE' exporting "QNZAHRK032605 abart = ppe02-abart "QNZAHRK032605 lgart = ppe02-lgart "QNZAHRK032605 TABLES BAUM = TREE EXCEPTIONS OTHERS = 1.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' * EXPORTING * INSERT_ID = '000000' * RELATIONSHIP = ' ' TABLES NODETAB = TREE EXCEPTIONS TREE_FAILURE = 1 ID_NOT_FOUND = 2 WRONG_RELATIONSHIP = 3 OTHERS = 4.

RS_TREE_EXPAND CALL FUNCTION 'RS_TREE_EXPAND' EXPORTING NODE_ID = 1 ALL = 'X' * LIST_SCROLL = * DEPTH = 1 EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

HR_READ_CYCLE CALL FUNCTION 'HR_READ_CYCLE' "XDOPH4K002800 EXPORTING "! CYCLE = $CYCLE "! IMPORTING "! CYCLE_MOLGA = ATTR_CY-MOLGA "! CYCLE_PROCL = ATTR_CY-PROCL "! CYCLE_DIRECTORY = IT52CE "! TABLES "! TABLE_CYCLE = IT52C5 "! EXCEPTIONS "! CYCLE_NOT_EXISTS = 1 "! OTHERS = 2. "!

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = TEXT-CRT * DIAGNOSE_OBJECT = ' ' TEXT_QUESTION = P_TEXT TEXT_BUTTON_1 = 'Anlegen'(CRE) ICON_BUTTON_1 = 'ICON_OKAY' TEXT_BUTTON_2 = 'Abbrechen'(ABO) ICON_BUTTON_2 = 'ICON_CANCEL' DEFAULT_BUTTON = '1' DISPLAY_CANCEL_BUTTON = ' ' * USERDEFINED_F1_HELP = ' ' * START_COLUMN = 25 * START_ROW = 6 * POPUP_TYPE = IMPORTING ANSWER = P_CONT * TABLES * PARAMETER = EXCEPTIONS TEXT_NOT_FOUND = 1 OTHERS = 2 .



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