SAP Reports / Programs | Personnel Management | Personnel Management | Pension fund: General Parts(PA-PF-XX) SAP PA

MPACAF02 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_CH_PROC_CTRL_INIT CALL FUNCTION 'HR_CH_PROC_CTRL_INIT' EXPORTING * MOLGA = molga "MBBL9CK043015 molga = act_molga "MBBL9CK043015 appli = appli EXCEPTIONS no_valtypes = 1 OTHERS = 2 .

HR_CH_VAL_CONV_S2V CALL FUNCTION 'HR_CH_VAL_CONV_S2V' EXPORTING valty = inpar_tab-valty string = inpar_tab-value IMPORTING value = value EXCEPTIONS unknown_valty = 1 format_error = 2 OTHERS = 3.

HR_CH_VAL_CONV_V2S CALL FUNCTION 'HR_CH_VAL_CONV_V2S' EXPORTING valty = inpar_tab-valty value = value IMPORTING string = inpar_tab-value EXCEPTIONS unknown_valty = 1 OTHERS = 2.

DYNP_GET_STEPL CALL FUNCTION 'DYNP_GET_STEPL' IMPORTING povstepl = stepl EXCEPTIONS stepl_not_found = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = dyname dynumb = dynumb * TRANSLATE_TO_UPPER = ' ' TABLES dynpfields = dynflds EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 OTHERS = 9.

HR_CH_CHOOSE_VALUE_BY_VALTY CALL FUNCTION 'HR_CH_CHOOSE_VALUE_BY_VALTY' EXPORTING molga = act_molga appli = %act_appli * pplan = pplan valty = inpar_tab-valty value_in = value IMPORTING value_out = value EXCEPTIONS invalid_valty = 1 OTHERS = 2.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING * NO_VALUE_CHECK = ' ' popup_title = 'Daten für Berechnung'(f20) * START_COLUMN = '5' * START_ROW = '5' IMPORTING returncode = rc TABLES fields = fields EXCEPTIONS error_in_fields = 1 OTHERS = 2.

HR_READ_INFOTYPE call function 'HR_READ_INFOTYPE' exporting * TCLAS = 'A' pernr = p_pernr infty = &1 begda = p_begda endda = p_endda importing subrc = l_subrc tables infty_tab = &2 exceptions infty_not_found = 1 others = 2.

HR_CH_PK_VS_PERFORM * CALL FUNCTION 'HR_CH_PK_VS_PERFORM' "MBBL9CK043015 EXPORTING rdate = p_refda begda = p_begda endda = p_endda kasse = p_kasse actio = p_actio pernr = p_pernr * TCLAS = 'A' * NO_DB_LOCK = ' ' * TESTMODE = ' ' * NO_ERROR_HANDLING = ' ' * ORGIN = 'WF' paratab = p_valuetab[] * IMPORTING * ERRORS = * WARNINGS = * PPLAN = TABLES valuetab = p_valuetab new_entries = p_entrytab errlist = p_errortab pp0001 = li_p0001 pp0002 = li_p0002 pp0007 = li_p0007 pp0008 = li_p0008 pp0014 = li_p0014 pp0015 = li_p0015 pp0021 = li_p0021 * pp0036 = li_p0036 "MBBL9CK043015 pp0278 = li_p0278 pp0279 = li_p0279 EXCEPTIONS subrc1 = 1 subrc2 = 2 subrc3 = 3 subrc4 = 4 vs_exception = 5 OTHERS = 6.

BAPI_EMPLOYEE_ENQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

HR_CH_VAL_CONV_S2V_LONG CALL FUNCTION 'HR_CH_VAL_CONV_S2V_LONG' EXPORTING valty = inpar_tab-valty string = l_string IMPORTING value = valuetab_wa-value EXCEPTIONS unknown_valty = 1 format_error = 2 OTHERS = 3.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

HR_CH_DISPLAY_MESSAGE_LIST CALL FUNCTION 'HR_CH_DISPLAY_MESSAGE_LIST' EXPORTING root_title = 'PK-Neuberechnung'(f40) root_descr = l_clitx TABLES errorlist = g_messagetab.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

HR_CH_VAL_CHECK_INITIAL CALL FUNCTION 'HR_CH_VAL_CHECK_INITIAL' EXPORTING valty = li_5cps-valty value = l_vsval IMPORTING subrc = l_subrc EXCEPTIONS unknown_valty = 1 OTHERS = 2.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

BAPI_EMPLOYEE_DEQUEUE





CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

HR_CH_GET_PPROP_FROM_RECORD CALL FUNCTION 'HR_CH_GET_PPROP_FROM_RECORD' EXPORTING pdata = lf_pdata record_name = 'P0279' infty = '0279' TABLES proposed_values = li_pprop.

HR_CH_DISPLAY_MESSAGE_LIST CALL FUNCTION 'HR_CH_DISPLAY_MESSAGE_LIST' EXPORTING root_title = 'PK-Neuberechnung'(f40) root_descr = l_clitx TABLES errorlist = g_messagetab.

BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = c_pernr IMPORTING return = ret_queue.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = 'A' pernr = p_pernr infty = '0001' begda = p_refda * ENDDA = '99991231' IMPORTING subrc = l_subrc TABLES infty_tab = li_p0001 EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING * TCLAS = 'A' pernr = c_pernr infty = c_dtinf begda = l_begda endda = l_endda IMPORTING subrc = l_subrc TABLES infty_tab = li_infty EXCEPTIONS infty_not_found = 1 OTHERS = 2.

HR_CH_PERS_FILE CALL FUNCTION 'HR_CH_PERS_FILE' EXPORTING pernr = c_pernr begda = l_begda endda = l_endda TABLES infotypes = li_infty EXCEPTIONS no_records_found = 1 invalid_pernr = 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 MPACAF02 or its description.