SAP Reports / Programs | Payroll | Brazil(PY-BR) SAP PY

PCGRFCBR1 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_BR_GET_FILIAL_PER_AREA CALL FUNCTION 'HR_BR_GET_FILIAL_PER_AREA' EXPORTING p_werks = p_werks p_btrtl = p_btrtl IMPORTING bukrs = bukrs branch = branch EXCEPTIONS no_link_areas = 1 no_group_found = 2.

HR_BR_LER_FILIAL_GERAL CALL FUNCTION 'HR_BR_LER_FILIAL_GERAL' EXPORTING COMPANY_CODE = bukrs BRANCH = branch IMPORTING CNAME = p_comp_name COMP_ADDR = comp_addr EXCEPTIONS BRANCH_NOT_FOUND = 1 ADDRESS_NOT_FOUND = 2 COMPANY_NOT_FOUND = 3 GENERAL_DATA_NOT_FOUND = 4 OTHERS = 5.

HR_BR_EXTRAI_DDD_TELEFONE CALL FUNCTION 'HR_BR_EXTRAI_DDD_TELEFONE' EXPORTING p_string = p_telefone IMPORTING p_ddd = ddd_wa p_telefone = tel_wa EXCEPTIONS no_number_found = 1 OTHERS = 99.

RP_EDIT_NAME CALL FUNCTION 'RP_EDIT_NAME' EXPORTING pp0002 = p0002 molga = pbr99_molga langu = sy-langu format = '01' IMPORTING edit_name = p_nome.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING persnr = pernr-pernr IMPORTING entrydate = hire_d TABLES entry_dates = l_phifi EXCEPTIONS entry_date_not_found = 1 OTHERS = 2.

HR_LEAVING_DATE CALL FUNCTION 'HR_LEAVING_DATE' EXPORTING persnr = pernr-pernr IMPORTING leavingdate = fire_d TABLES leaving_dates = l_phifi EXCEPTIONS leaving_date_not_found = 1 OTHERS = 2.

HR_BR_TABELA_MOT CALL FUNCTION 'HR_BR_TABELA_MOT' EXPORTING tmedd = wpbp-massn mmedd = wpbp-massg date = p_endda IMPORTING cagem = cagem fgtsr = fgtsr EXCEPTIONS table_error = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_rs_b_fgts IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_rs_c_fgts IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_rsc_c_fgts IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_fg_b_fres IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE * call function 'HR_BR_READ_WAGETYPE' * exporting * p_abart = pbr99_all_abart * p_wtype = pbr99_wt_fg_c_fres * importing * p_value = betrg * tables * i_it = p_rt * exceptions * wagetype_not_found = 1 * others = 2.

HR_BR_READ_WAGETYPE * call function 'HR_BR_READ_WAGETYPE' * exporting * p_abart = pbr99_all_abart * p_wtype = pbr99_wt_fg_cs_fres * importing * p_value = betrg * tables * i_it = p_rt * exceptions * wagetype_not_found = 1 * others = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_fg_b_norm IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE * call function 'HR_BR_READ_WAGETYPE' * exporting * p_abart = pbr99_all_abart * p_wtype = pbr99_wt_fg_c_norm * importing * p_value = betrg * tables * i_it = p_rt * exceptions * wagetype_not_found = 1 * others = 2.

HR_BR_READ_WAGETYPE * call function 'HR_BR_READ_WAGETYPE' * exporting * p_abart = pbr99_all_abart * p_wtype = pbr99_wt_fg_cs_norm * importing * p_value = betrg * tables * i_it = p_rt * exceptions * wagetype_not_found = 1 * others = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_fg_b_fers IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE * CALL FUNCTION 'HR_BR_READ_WAGETYPE' * EXPORTING * P_ABART = PBR99_ALL_ABART * P_WTYPE = PBR99_WT_FG_C_FERS * IMPORTING * P_VALUE = BETRG * TABLES * I_IT = P_RT * EXCEPTIONS * WAGETYPE_NOT_FOUND = 1 * OTHERS = 2.

HR_BR_READ_WAGETYPE





* CALL FUNCTION 'HR_BR_READ_WAGETYPE' * EXPORTING * P_ABART = PBR99_ALL_ABART * P_WTYPE = PBR99_WT_FG_CS_FERS * IMPORTING * P_VALUE = BETRG * TABLES * I_IT = P_RT * EXCEPTIONS * WAGETYPE_NOT_FOUND = 1 * OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_fg_b_est IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_fg_b_xmas IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_fg_b_xmas_est IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_READ_WAGETYPE CALL FUNCTION 'HR_BR_READ_WAGETYPE' EXPORTING p_abart = pbr99_all_abart p_wtype = pbr99_wt_dt_c_ind IMPORTING p_value = betrg TABLES i_it = p_rt EXCEPTIONS wagetype_not_found = 1 OTHERS = 2.

HR_BR_GET_RETRO_MONTH_DIFF CALL FUNCTION 'HR_BR_GET_RETRO_MONTH_DIFF' EXPORTING pernr = pernr-pernr month = lv_mes year = lv_ano sel_date = 'P' TABLES lgart = r_lgart retro_month_diff = t_retro EXCEPTIONS t500l_not_maintained = 1 no_read_authority = 2 import_error = 3 OTHERS = 4.

HR_BR_GET_FILIAL_PER_AREA CALL FUNCTION 'HR_BR_GET_FILIAL_PER_AREA' EXPORTING p_werks = p_werks p_btrtl = p_btrtl sw_prot = 'X' IMPORTING branch = p_branch obra = p_obra.



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