SAP Reports / Programs | Personnel Time Management(PT) SAP PT

MP51EF10 SAP ABAP INCLUDE - PT40: Common Routines







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


Text pool values


Title: PT40: Common Routines


INCLUDES used within this REPORT MP51EF10

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:

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING TCODE = TCODE EXCEPTIONS OK = 0 NOT_OK = 1 OTHERS = 2.

SUSR_AUTHORITY_CHECK_S_TCODE CALL FUNCTION 'SUSR_AUTHORITY_CHECK_S_TCODE' EXPORTING TCODE = TCODE IMPORTING RC = SUBRC EXCEPTIONS OTHERS = 1.

HR_PSEL_EXISTENCE_CHECK CALL FUNCTION 'HR_PSEL_EXISTENCE_CHECK' EXPORTING CHECK_TCODE = SY-TCODE CHECK_UNAME = SY-UNAME IMPORTING CHECK_ANSWER = ANSWER.

HR_PSEL_SELECTION_CALLED CALL FUNCTION 'HR_PSEL_SELECTION_CALLED' IMPORTING CALL_ANSWER = ANSWER.

HR_PSEL_PERSONS_ADD CALL FUNCTION 'HR_PSEL_PERSONS_ADD' EXPORTING ADD_PERNR = RP51E-PERNR IMPORTING ADD_LINES = SY-TFILL ADD_POSID = SY-TABIX TABLES ADD_PERNRS = SELECTION_PERNRS.

HR_PSEL_PERSONS_DISPLAY CALL FUNCTION 'HR_PSEL_PERSONS_DISPLAY' EXPORTING show_repid = sy-cprog show_dynnr = sy-dynnr show_begda = sy-datum show_endda = sy-datum TABLES show_pernrs = selection_pernrs.

HR_PSEL_PERSONS_SELECT CALL FUNCTION 'HR_PSEL_PERSONS_SELECT' EXPORTING SEL_VIEW_NAME = 'PNP_PT50_SEL_PERNR' SEL_PROFILE = 'SAP_PT50' TABLES SEL_PERNRS = SELECTION_PERNRS EXCEPTIONS NO_VIEW_NAME_SPECIFIED = 1 NO_PROFILE_SPECIFIED = 2 NO_PERSON_SELECTED = 3 SELECTION_CANCELED = 4.

HR_PSEL_PERSONS_DISPLAY CALL FUNCTION 'HR_PSEL_PERSONS_DISPLAY' EXPORTING SHOW_REPID = 'SAPMP51E' SHOW_DYNNR = SY-DYNNR IMPORTING SHOW_PERNR = RP51E-PERNR SHOW_TREE = TREE SHOW_POPUP = HANDLE TABLES SHOW_PERNRS = SELECTION_PERNRS.

TREEV_GET_EP_EXPAND_NC CALL FUNCTION 'TREEV_GET_EP_EXPAND_NC' EXPORTING HANDLE = TREE IMPORTING NODE_KEY = NODE_KEY EXCEPTIONS FAILED = 1 OTHERS = 2.

TREEV_GET_EP_NODE_DBL_CLK CALL FUNCTION 'TREEV_GET_EP_NODE_DBL_CLK' EXPORTING HANDLE = TREE IMPORTING NODE_KEY = NODE_KEY EXCEPTIONS FAILED = 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 MP51EF10 or its description.