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

MP000240 SAP ABAP INCLUDE - Infotype 0002, Form Routines







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


Text pool values


Title: Infotype 0002, Form Routines


INCLUDES used within this REPORT MP000240

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:

HR_CHECK_NAMEAFFIX call function 'HR_CHECK_NAMEAFFIX' exporting affix_type = af_type changing affix = affix.

RP_FORMATING_DATE call function 'RP_FORMATING_DATE' "WBIK011822 exporting "WBIK011822 date_i = q0002-gbpas "WBIK011822 importing "WBIK011822 * DATE_O = Q0002_GBPAS. "WBIK011822 "XYLAHRK036525

RP_CHECK_DATE call function 'RP_CHECK_DATE' "WBIK011822 exporting "WBIK011822 date = p0002-gbpas "WBIK011822 exceptions "WBIK011822 date_invalid = 1 "WBIK011822 others = 2. "WBIK011822

NAMETAB_GET call function 'NAMETAB_GET' exporting langu = sy-langu * tabname = 'P0002' "QNUP30K073078 tabname = tabna "QNUP30K073078 tables nametab = nametab exceptions table_not_activ = 1.

DYNP_VALUES_UPDATE * CALL FUNCTION 'DYNP_VALUES_UPDATE' "XFYK036182 * EXPORTING "XFYK036182 ** dyname = 'MP000200' "XFYK036182"QNUP30K073078 ** dynumb = '2001' "XFYK036182"QNUP30K073078 * DYNAME = PSPAR-REPNA "QNUP30K073078 * DYNUMB = SY-DYNNR "QNUP30K073078 * TABLES "XFYK036182 * DYNPFIELDS = HTAB "XFYK036182 * EXCEPTIONS "XFYK036182 * INVALID_ABAPWORKAREA = 1 "XFYK036182 * INVALID_DYNPROFIELD = 2 "XFYK036182 * INVALID_DYNPRONAME = 3 "XFYK036182 * INVALID_DYNPRONUMMER = 4 "XFYK036182 * INVALID_REQUEST = 5 "XFYK036182 * NO_FIELDDESCRIPTION = 6 "XFYK036182 ** invalid_parameter = 7 "XFYK036182 "QNUP30K093236 * UNDEFIND_ERROR = 8 "XFYK036182 * OTHERS = 9. "XFYK036182

HELP_VALUES_GET_WITH_TABLE call function 'HELP_VALUES_GET_WITH_TABLE' exporting display = display "XFYP30K089336 fieldname = fnam tabname = tnam importing * SELECT_VALUE = CHD_VALUE select_value = selected_value "QICPH0K001265 tables fields = ihelp_fields valuetab = helptab exceptions field_not_in_ddic = 01 more_then_one_selectfield = 02 no_selectfield = 03.

RP_FORMATING_DATE call function 'RP_FORMATING_DATE' " exporting " date_i = q0002-gbpas " importing " * DATE_O = Q0002_GBPAS. "WBIK011822 "XYLAHRK036525

RP_CHECK_DATE call function 'RP_CHECK_DATE' "WBIK011822 exporting " date = p0002-gbpas " exceptions " date_invalid = 1 " others = 2. "WBIK011822

F4_DATE call function 'F4_DATE' exporting date_for_first_month = sy-datum importing select_date = date1 exceptions calendar_buffer_not_loadable = 1 date_after_range = 2 date_before_range = 3 date_invalid = 4 factory_calendar_not_found = 5 holiday_calendar_not_found = 6 parameter_conflict = 7 others = 8.

F4IF_INT_TABLE_VALUE_REQUEST call function 'F4IF_INT_TABLE_VALUE_REQUEST' exporting retfield = retfield dynpprog = sy-cprog dynpnr = sy-dynnr dynprofield = dynprofield value_org = 'S' tables value_tab = value_tab return_tab = return_tab exceptions parameter_error = 1 no_values_found = 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 MP000240 or its description.