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

MP50AI02 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_CHECK_AUTHORITY_INFTY CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY' EXPORTING * TCLAS = 'A' pernr = rp50g-pernr infty = infty_name subty = subty_name * BEGDA = SY-DATUM * ENDDA = SY-DATUM * LEVEL = 'R' EXCEPTIONS no_authorization = 1 internal_error = 2 OTHERS = 3.

HR_CHECK_AUTHORITY_INFTY CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY' EXPORTING * TCLAS = 'A' pernr = rp50g-pernr infty = infty_work subty = space * BEGDA = SY-DATUM * ENDDA = SY-DATUM * LEVEL = 'R' EXCEPTIONS no_authorization = 1 internal_error = 2 OTHERS = 3.

RH_INTERNAL_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_INTERNAL_ACTIVE_WF_PLVAR' EXPORTING ACT_MANDT = SY-MANDT IMPORTING ACTIVE_PLVAR = active_plvar EXCEPTIONS * NO_ACTIVE_PLVAR_FOUND = 1 OTHERS = 2.

HR_GET_OBJECTS_DIALOG CALL FUNCTION 'HR_GET_OBJECTS_DIALOG' EXPORTING INFOSET = adh_sgname WORKSPACE = adh_wsid PLVAR = active_plvar OTYPE = objtype IMPORTING OBJECTS_OUT = objtab CHANGING BEGDA = adh_begda ENDDA = adh_endda EXCEPTIONS OTHERS = 12.

HR_GET_TEXT_FOR_OBJECTS CALL FUNCTION 'HR_GET_TEXT_FOR_OBJECTS' CHANGING PERNR_TAB = pernr_tab EXCEPTIONS OTHERS = 2.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-ext text_button_1 = 'Weiter'(gon) icon_button_1 = 'ICON_OKAY' text_button_2 = 'Zurück'(bck) icon_button_2 = 'ICON_CANCEL' default_button = '2' display_cancel_button = ' ' IMPORTING answer = popup_answer 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 MP50AI02 or its description.