SAP Reports / Programs | Payroll | Spain(PY-ES) SAP PY

RPCAFIF2 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_E_GET_ACTIV_SOC_INSUR CALL FUNCTION 'HR_E_GET_ACTIV_SOC_INSUR' EXPORTING p_pernr = p_pernr p_actual_date = l_date IMPORTING p_activ = l_activo EXCEPTIONS error = 1.

HR_E_GET_NISSE_FOR_PERNR CALL FUNCTION 'HR_E_GET_NISSE_FOR_PERNR' EXPORTING pers_num = pernr-pernr actual_date = p_date IMPORTING nisse = l_nisse TABLES p_tab_p0001 = p0001_tab[] * P_TAB_WPBP = p_tab_p0061 = p0061_tab[] * P_TAB_SV = EXCEPTIONS error = 1 OTHERS = 2.

HR_E_GET_PART_TIME_COEF CALL FUNCTION 'HR_E_GET_PART_TIME_COEF' EXPORTING p_pernr = pernr-pernr p_hocon = p0061_tab-hocon p_dicon = p0061_tab-dicon p_date = p0061_tab-begda IMPORTING p_coeficiente = wa_afitab-coetp TABLES t0001 = p0001_tab t0007 = p0007_tab t0008 = p0008_tab EXCEPTIONS error = 1 coetp_exceeded = 2 OTHERS = 3.

HR_E_GET_NISSE_FOR_PERNR CALL FUNCTION 'HR_E_GET_NISSE_FOR_PERNR' EXPORTING pers_num = p_pernr actual_date = wa_afitab-begcon IMPORTING nisse = l_nisse TABLES p_tab_p0001 = p0001_tab[] * P_TAB_WPBP = p_tab_p0061 = p0061_tab[] * P_TAB_SV = EXCEPTIONS error = 1 OTHERS = 2.

HR_E_GET_SV_TICON CALL FUNCTION 'HR_E_GET_SV_TICON' EXPORTING p_ticon = wa_old_i0061-ticon p_pesoc = wa_old_i0061-pesoc IMPORTING p_idseg = old_idseg.

HR_E_GET_SV_TICON CALL FUNCTION 'HR_E_GET_SV_TICON' EXPORTING p_ticon = wa_new_i0061-ticon p_pesoc = wa_new_i0061-pesoc IMPORTING p_idseg = new_idseg.

HR_E_GET_ACTIV_SOC_INSUR CALL FUNCTION 'HR_E_GET_ACTIV_SOC_INSUR' EXPORTING p_pernr = p_pernr p_actual_date = l_fecha_baja IMPORTING p_activ = l_activo EXCEPTIONS error = 1.

HR_E_GET_ACTIV_SOC_INSUR CALL FUNCTION 'HR_E_GET_ACTIV_SOC_INSUR' EXPORTING p_pernr = p_pernr p_actual_date = p_begda IMPORTING p_activ = l_activo EXCEPTIONS error = 1.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'HRPAYES_AFIE0' IMPORTING is_implemented = lv_is_implemented CHANGING instance = lb_exit_obj.

ENQUEUE_EPPRELE CALL FUNCTION 'ENQUEUE_EPPRELE' EXPORTING mode_prel = 'X' pernr = ls_afitab-pernr EXCEPTIONS OTHERS = 99.

HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = '0799' number = ls_afitab-pernr subtype = lv_subtype validityend = ls_p0799-endda validitybegin = ls_afitab-fec_begda operation = lv_operation objectid = ls_p0799-objps record = ls_p0799 * TCLAS = 'A' dialog_mode = lv_dialog_mode * NOCOMMIT = * VIEW_IDENTIFIER = * SECONDARY_RECORD = IMPORTING return = lv_return key = lv_pakey_new.

DEQUEUE_EPPRELE CALL FUNCTION 'DEQUEUE_EPPRELE' EXPORTING mode_prel = 'X' pernr = lv_enqueued.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'HRPAYES_AFIE0' IMPORTING is_implemented = lv_is_implemented CHANGING instance = co_exit_obj.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = ps_afitab-pernr infty = '0799' begda = ps_afitab-fec_begda endda = ps_afitab-fec_endda TABLES infty_tab = lt_0799 EXCEPTIONS infty_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 RPCAFIF2 or its description.