PCAVGCN2 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 PCAVGCN2 into the relevant SAP transactions such as SE38 or SE80
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.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = gc_feature struc_content = l_structure IMPORTING back = l_daytp EXCEPTIONS OTHERS = 1.
RP_GET_HIRE_DATE CALL FUNCTION 'RP_GET_HIRE_DATE' EXPORTING persnr = i_pernr check_infotypes = l_infotypes datumsart = l_daytp * STATUS2 = '3' * P0016_OPTIONEN = ' ' IMPORTING hiredate = e_hiredate .
HR_PAYROLL_PERIODS_GET * CALL FUNCTION 'HR_PAYROLL_PERIODS_GET' * EXPORTING * get_begda = i_begda * get_endda = i_begda ** get_permo = gc_permo "Note 1651688 * get_permo = lv_permo "Note 1651688 * IMPORTING * get_pabrj = lv_pabrj_beg * get_pabrp = lv_pabrp_beg * EXCEPTIONS * no_period_found = 1 * no_valid_permo = 2 * OTHERS = 3.
HR_PAYROLL_PERIODS_GET * CALL FUNCTION 'HR_PAYROLL_PERIODS_GET' * EXPORTING * get_begda = i_endda * get_endda = i_endda ** get_permo = gc_permo "Note 1651688 * get_permo = lv_permo "Note 1651688 * IMPORTING * get_pabrj = lv_pabrj_end * get_pabrp = lv_pabrp_end * TABLES * get_periods = lt_periods * EXCEPTIONS * no_period_found = 1 * no_valid_permo = 2 * OTHERS = 3.
HR_GET_PAYROLL_RESULTS * CALL FUNCTION 'HR_GET_PAYROLL_RESULTS' * EXPORTING * pernr = i_pernr "Personnel number ** permo = gc_permo "Period Parameters "Note 1651688 * permo = lv_permo "Note 1651688 * pabrj = lv_pabrj_beg "Start of Evaluation(Year) * pabrp = lv_pabrp_beg "StarT of Evaluation(Period) * pabrj_end = lv_pabrj_end "End of Evaluation (Year) * pabrp_end = lv_pabrp_end "End of Evaluation (Period) ** INPER_LST = INPER_LST *" Earliest In-Period For Retroactive Differences ** INPER_ACT = INPER_ACT * "Year and Period of Evaluation View ** actual = 'X' "Current Results Only; * "SPACE-with retros * " 'X'-without retros ** WAERS = WAERS "Evaluation Currency ** ARCH_TOO = ARCH_TOO * TABLES * result_tab = tab_payroll "All Payroll Periods * EXCEPTIONS * no_results = 1 * "No payroll results found * error_in_currency_conversion = 2 * "Error in currency translation * t500l_entry_not_found = 3 * "No Entry in T500L for Country Code * period_mismatch_error = 4 * "Unplausible Periods When Calling Function Module * t549q_entry_not_found = 5 * "T549Q Is Not Maintained For Specified Periods * internal_error = 6 * wrong_structure_of_result_tab = 7 * OTHERS = 8 * .
HR_CONVERT_CURRENCY_RESULT * CALL FUNCTION 'HR_CONVERT_CURRENCY_RESULT' * EXPORTING * country_grouping = gc_molga * conversion_date = wa-inter-versc-fpbeg * foreign_currency = wa-inter-versc-waers * local_currency = gc_currency * TABLES * result_table = wa-inter-rt * EXCEPTIONS * invalid_wagetype = 1 * error_conversion = 2 * OTHERS = 3.
BAPI_EMPLOYEE_ENQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE' EXPORTING number = ls_data-pernr IMPORTING return = l_return.
HR_INFOTYPE_OPERATION CALL FUNCTION 'HR_INFOTYPE_OPERATION' EXPORTING infty = l_infty number = ls_data-pernr subtype = i_lgart record =
operation = 'INS' IMPORTING return = l_return.
BAPI_EMPLOYEE_DEQUEUE CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE' EXPORTING number = ls_data-pernr IMPORTING return = l_return.
CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = pv_pernr TABLES in_rgdir = lt_total_rgdir EXCEPTIONS no_record_found = 1 OTHERS = 2.
PYXX_READ_RGDIR_PAYRESULTS CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' EXPORTING clusterid = t500l-relid employeenumber = pv_pernr TABLES rgdir = lt_rgdir imported_periods = lt_payresults EXCEPTIONS import_error = 1 OTHERS = 2.
HR_CONVERT_CURRENCY_RESULT CALL FUNCTION 'HR_CONVERT_CURRENCY_RESULT' EXPORTING country_grouping = gc_molga conversion_date = wa-inter-versc-fpbeg foreign_currency = wa-inter-versc-waers local_currency = gc_currency TABLES result_table = wa-inter-rt EXCEPTIONS invalid_wagetype = 1 error_conversion = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.