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

MP50AF00 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

RH_OBJECT_UNPUBLISH CALL FUNCTION 'RH_OBJECT_UNPUBLISH' EXPORTING otype = l_otype objid = new_pernr EXCEPTIONS internal_error = 1 otype_not_supported = 2 OTHERS = 3.

SWU_OBJECT_PUBLISH ** CALL FUNCTION 'SWU_OBJECT_PUBLISH' "QNUP40K034820 ** EXPORTING "QNUP40K034820 ** objtype = objtype "QNUP40K034820 ** objkey = objkey "QNUP40K034820 ** CREATOR = ' ' "QNUP40K034820 ** TABLES "QNUP40K034820 ** CONTAINER = "QNUP40K034820 ** EXCEPTIONS "QNUP40K034820 ** objtype_not_found = 1 "QNUP40K034820 ** OTHERS = 2. "QNUP40K034820

RH_OBJECT_PUBLISH CALL FUNCTION 'RH_OBJECT_PUBLISH' "QICAHRK064434 EXPORTING "QICAHRK064434 plvar = ' ' "QICAHRK064434 otype = l_otype "QICAHRK064434 objid = rp50g-pernr "QICAHRK064434 single_object = 'X' "QICAHRK064434 EXCEPTIONS "QICAHRK064434 internal_error = 1 "QICAHRK064434 otype_not_supported = 2 "QICAHRK064434 OTHERS = 3. "QICAHRK064434

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'. "XPSK010464

HR_CHECK_AUTHORITY_INFTY CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY' "XREN506221 EXPORTING "XREN506221 tclas = 'A' "XREN506221 pernr = rp50g-pernr "XREN506221 infty = '0000' "XREN506221 subty = subty_massn "XREN506221 begda = sel-begst "XREN506221 endda = '99991231' "XREN506221 level = 'W' "XREN506221 * TABLES "XREN506221 * I0001 = "XREN506221 EXCEPTIONS "XREN506221 no_authorization = 1 "XREN506221 internal_error = 2 "XREN506221 OTHERS = 3. "XREN506221

HR_COUNTRY_MOVE_ENTER_ACTIONS CALL FUNCTION 'HR_COUNTRY_MOVE_ENTER_ACTIONS' EXPORTING date_in = sel-begst persnr = rp50g-pernr massn = t529a-massn IMPORTING date_out = sel-begst hire_pernr = hire_pernr hire_action = hire_action hire_reason = hire_reason fire_pernr = fire_pernr fire_action = fire_action fire_reason = fire_reason no_fire_action = ldw_no_fire "XFYAHRK060974 EXCEPTIONS cancelled = 1 OTHERS = 2.

HRPAD00_SET_BZPNR CALL FUNCTION 'HRPAD00_SET_BZPNR' "XYVL9CK008359 EXPORTING "XYVL9CK008359 bzpnr = rp50g-pernr "XYVL9CK008359 massn = hire_action "XYVL9CK008359 massg = hire_reason "XYVL9CK008359 EXCEPTIONS "XYVL9CK008359 OTHERS = 0. "XYVL9CK008359

HRPAD00_SET_BZPNR CALL FUNCTION 'HRPAD00_SET_BZPNR' "XYVL9CK008359 EXPORTING "XYVL9CK008359 bzpnr = init_pernr "XYVL9CK008359 massn = space "XYVL9CK008359 massg = space "XYVL9CK008359 EXCEPTIONS "XYVL9CK008359 OTHERS = 0. "XYVL9CK008359

HRPAD00_SET_BZPNR CALL FUNCTION 'HRPAD00_SET_BZPNR' "XYVL9CK008359 EXPORTING "XYVL9CK008359 bzpnr = init_pernr "XYVL9CK008359 massn = space "XYVL9CK008359 massg = space "XYVL9CK008359 EXCEPTIONS "XYVL9CK008359 OTHERS = 0. "XYVL9CK008359

HR_HANDLE_PERSONAL_RELATIONS CALL FUNCTION 'HR_HANDLE_PERSONAL_RELATIONS' EXPORTING * OTYPE = 'P' old_pernr = fire_pernr new_pernr = hire_pernr * begda = sel-begst "XFYAHRK053282 begda = pspar-begda "XFYAHRK053282 massn = t529a-massn leave_flg = l_leave_flg "QICPH9K007375 EXCEPTIONS new_pernr_missing = 1 no_active_plvar = 2 no_authorization = 3 error_during_processing = 4 corr_exit = 5 OTHERS = 6.

HRPAD00_SET_BZPNR CALL FUNCTION 'HRPAD00_SET_BZPNR' "XYVL9CK008359 EXPORTING "XYVL9CK008359 bzpnr = orig_pernr_for_rfpnr "XYVL9CK008359 massn = fire_action "XYVL9CK008359 massg = fire_reason "XYVL9CK008359 EXCEPTIONS "XYVL9CK008359 OTHERS = 0. "XYVL9CK008359

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

HRPAD00_SET_BZPNR CALL FUNCTION 'HRPAD00_SET_BZPNR' "XYVL9CK008359 EXPORTING "XYVL9CK008359 bzpnr = init_pernr "XYVL9CK008359 massn = space "XYVL9CK008359 massg = space "XYVL9CK008359 EXCEPTIONS "XYVL9CK008359 OTHERS = 0. "XYVL9CK008359

HR_CHECK_MARKED_EVENT CALL FUNCTION 'HR_CHECK_MARKED_EVENT' EXPORTING act_pernr = rp50g-pernr date_of_event = sel-begst act_event = l_massn act_infty = rp50g-infty IMPORTING return = r_return req_massn = r_massn req_massg = r_massg "XFYPH9K001393 req_date = r_date country_change = massn_ctry.

RH_CHECK_PERSON_ORIG_IN_DIALOG CALL FUNCTION 'RH_CHECK_PERSON_ORIG_IN_DIALOG' EXPORTING otype = check_otype pernr = rp50g-pernr IMPORTING ok_for_editing = check_okay.

HR_T582A_READ CALL FUNCTION 'HR_T582A_READ' "XYVAHRK039910 EXPORTING "XYVAHRK039910 infty = rp50g-infty "XYVAHRK039910 IMPORTING "XYVAHRK039910 t582a = t582a "XYVAHRK039910 EXCEPTIONS "XYVAHRK039910 entry_not_found = 0 "XYVAHRK039910 OTHERS = 0. "XYVAHRK039910

HR_T582A_READ CALL FUNCTION 'HR_T582A_READ' "XYVAHRK039910 EXPORTING "XYVAHRK039910 infty = cis_infty"XYVAHRK039910 IMPORTING "XYVAHRK039910 t582a = t582a "XYVAHRK039910 EXCEPTIONS "XYVAHRK039910 entry_not_found = 0 "XYVAHRK039910 OTHERS = 0. "XYVAHRK039910

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE'"QICP30K087709 EXPORTING "QICP30K087709 tcode = utl_fcode "QICP30K087709 EXCEPTIONS "QICP30K087709 ok = 0 "QICP30K087709 not_ok = 1 "QICP30K087709 OTHERS = 2. "QICP30K087709

SUSR_AUTHORITY_CHECK_S_TCODE





CALL FUNCTION 'SUSR_AUTHORITY_CHECK_S_TCODE' "QICP30K087709 EXPORTING "QICP30K087709 tcode = utl_fcode "QICP30K087709 IMPORTING "QICP30K087709 rc = l_subrc "QICP30K087709 EXCEPTIONS "QICP30K087709 OTHERS = 1. "QICP30K087709

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-007 text_button_1 = 'Ja'(yes) icon_button_1 = 'ICON_OKAY' text_button_2 = 'Nein'(not) icon_button_2 = 'ICON_CANCEL' default_button = '2' display_cancel_button = ' ' IMPORTING answer = popup_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

HR_COUNTRYGROUPING_GET CALL FUNCTION 'HR_COUNTRYGROUPING_GET' "XYLN320605 EXPORTING "XYLN320605 pernr = rp50g-pernr "XYLN320605 tclas = pspar-tclas "XYLN320605 IMPORTING "XYLN320605 molga = h_molga "XYLN320605 EXCEPTIONS "XYLN320605 not_found = 1 "XYLN320605 OTHERS = 2. "XYLN320605

HR_T582A_READ CALL FUNCTION 'HR_T582A_READ' "XYVAHRK039910 EXPORTING "XYVAHRK039910 infty = rp50g-choic+1(4) "XYVAHRK039910 IMPORTING "XYVAHRK039910 t582a = t582a "XYVAHRK039910 EXCEPTIONS "XYVAHRK039910 entry_not_found = 0 "XYVAHRK039910 OTHERS = 0. "XYVAHRK039910

HR_T582A_READ CALL FUNCTION 'HR_T582A_READ' "XYVAHRK039910 EXPORTING "XYVAHRK039910 infty = rp50g-infty "XYVAHRK039910 IMPORTING "XYVAHRK039910 t582a = t582a "XYVAHRK039910 EXCEPTIONS "XYVAHRK039910 entry_not_found = 1 "XYVAHRK039910 OTHERS = 2. "XYVAHRK039910

HR_CHECK_MOLGA_INFTY_PERM CALL FUNCTION 'HR_CHECK_MOLGA_INFTY_PERM' EXPORTING molga = p_molga infty = p_infty subty = subty IMPORTING allowed = allowed.

HR_T582S_READ CALL FUNCTION 'HR_T582S_READ' EXPORTING sprsl = sy-langu infty = rp50g-infty itbld = sel-itbld IMPORTING t582s = t582s EXCEPTIONS entry_not_found = 1 OTHERS = 2.

HR_T582A_READ CALL FUNCTION 'HR_T582A_READ' EXPORTING infty = rp50g-infty IMPORTING t582a = t582a EXCEPTIONS entry_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 MP50AF00 or its description.