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

MP50AF40 SAP ABAP INCLUDE - documentation and ABAP source code







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

INCLUDE MP50AF45.


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_INTEGRATION_CHECK call function 'RH_INTEGRATION_CHECK' importing integrated_plvar = l_planvar.

GET_PERSONID_BY_PERNR CALL FUNCTION 'GET_PERSONID_BY_PERNR' EXPORTING PERNR = rp50g-pernr IMPORTING PERSONID = lv_personid EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

RH_READ_INFTY_1001 call function 'RH_READ_INFTY_1001' exporting istat = '1' tables i1001 = tb1001 objects = fct_obj exceptions nothing_found = 1 wrong_condition = 2 others = 3.

RH_STRU_AUTHORITY_CHECK call function 'RH_STRU_AUTHORITY_CHECK' exporting fcode = 'DISP' plvar = l_planvar otype = tb1001-sclas objid = tb1001-sobid with_base_ac = 'X' exceptions no_stru_authority = 1 no_stru_authority_hyper = 2 no_stru_authority_at_all = 3 no_base_authority = 4 others = 5.

RH_INTEGRATION_CHECK call function 'RH_INTEGRATION_CHECK' importing integrated_plvar = l_planvar.

HRHAP_DOCUMENT_GET_LIST_XXL call function 'HRHAP_DOCUMENT_GET_LIST_XXL' EXPORTING add_on_application = l_add_on_application plan_version = l_planvar t_appraisees = lt_appraisees s_sel_status = ls_sel_status s_document_fill = ls_document_fill S_SEL_WITH_OR_WITHOUT = ls_sel_with_or_without IMPORTING t_documents = lt_documents.

RH_READ_INFTY_1001 call function 'RH_READ_INFTY_1001' TABLES i1001 = tb1001 objects = fct_obj EXCEPTIONS nothing_found = 1 wrong_condition = 2 others = 3.

RH_STRU_AUTHORITY_CHECK call function 'RH_STRU_AUTHORITY_CHECK' EXPORTING fcode = 'DISP' plvar = l_planvar otype = tb1001-sclas objid = tb1001-sobid with_base_ac = 'X' EXCEPTIONS no_stru_authority = 1 no_stru_authority_hyper = 2 no_stru_authority_at_all = 3 no_base_authority = 4 others = 5.

HR_DISPLAY_COUNTRY_CHANGE * call function 'HR_DISPLAY_COUNTRY_CHANGE' * exporting * pernrold = rp50g-pernr * schow_popup = 'X' * tcode = sy-tcode * tables * cchange_tab = l_country_changes[] ** EXCEPTIONS ** ENTRY_NOT_FOUND = 1 ** OTHERS = 2 * .

HR_PERSONEE_DISPLAY CALL FUNCTION 'HR_PERSONEE_DISPLAY' EXPORTING iv_employee_id = rp50g-pernr IMPORTING ev_employee_id = lv_pernr.

HR_READ_0031_DB CALL FUNCTION 'HR_READ_0031_DB' EXPORTING pernr = rp50g-pernr TABLES I0031_DB = i0031.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_SPACE' INFO = iv_text IMPORTING RESULT = cv_inf_ex EXCEPTIONS ICON_NOT_FOUND = 1 OUTPUTFIELD_TOO_SHORT = 2 OTHERS = 3.



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