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

PCGRXBR2 SAP ABAP INCLUDE - documentation and ABAP source code







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

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 sw_prot = 'X' IMPORTING branch = p_branch obra = p_obra.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING persnr = pernr-pernr endda = p_endda IMPORTING entrydate = p_hire_date TABLES entry_dates = it_entry_date EXCEPTIONS entry_date_not_found = 1 pernr_not_assigned = 2 OTHERS = 3.

HR_LEAVING_DATE CALL FUNCTION 'HR_LEAVING_DATE' EXPORTING persnr = pernr-pernr begda = p_hire_date IMPORTING leavingdate = p_fire_date TABLES leaving_dates = it_leaving_date EXCEPTIONS leaving_date_not_found = 1 pernr_not_assigned = 2 OTHERS = 3.

HR_99S_GET_VALUES_FIELDS CALL FUNCTION 'HR_99S_GET_VALUES_FIELDS' EXPORTING im_form = g_form im_sectn = c_daq_sect_md im_tab_sedat = p_tab_sedat im_begda = p_begda im_endda = p_endda IMPORTING ex_wa = p_wa.

HR_BR_APPEND_MESSAGE CALL FUNCTION 'HR_BR_APPEND_MESSAGE' EXPORTING message_id = pbr99_logid message_type = 'S' message_number = '001' message_var1 = p_temse_object-full_name message_var2 = space message_var3 = space message_var4 = space node_type = 'TEMS'.

HR_BR_DISPLAY_LOG CALL FUNCTION 'HR_BR_DISPLAY_LOG' EXPORTING report_name = l_repid sw_prot = p_sw_prot sw_no_log = p_sw_no_log pernr_selected = p_pernr_selected pernr_rejected = p_pernr_rejected pernr_skipped = p_pernr_skipped pernr_evaluated = p_pernr_evaluated pernr_evaluated_w = p_pernr_evaluated_w.

HR_BR_APPEND_PERNR_MESSAGE CALL FUNCTION 'HR_BR_APPEND_PERNR_MESSAGE' EXPORTING pernr_number = pernr_number message_id = message_id message_type = message_type message_number = message_number message_var1 = message_var1 message_var2 = message_var2 message_var3 = message_var3 message_var4 = message_var4.

HR_BR_LER_FILIAL_GERAL CALL FUNCTION 'HR_BR_LER_FILIAL_GERAL' EXPORTING company_code = l_s_company-bukrs branch = l_s_company-werks obra = l_s_company-btrtl date = pn-endda IMPORTING cgc = l_s_company-cgc cei = l_s_company-cei obra_cnpj = l_s_company-obra_cnpj comp_name = l_s_company-name comp_addr = l_address EXCEPTIONS branch_not_found = 1 address_not_found = 2 company_not_found = 3 general_data_not_found = 4 OTHERS = 5.

HR_BR_LER_FILIAL_GERAL CALL FUNCTION 'HR_BR_LER_FILIAL_GERAL' EXPORTING company_code = res_bukr branch = res_fili IMPORTING cgc = p_s_resp-cgc cei = p_s_resp-cei obra_cnpj = p_s_resp-obra_cnpj comp_name = p_s_resp-name comp_addr = l_address EXCEPTIONS branch_not_found = 1 address_not_found = 2 company_not_found = 3 general_data_not_found = 4 OTHERS = 5.

HR_BR_READ_T7BRB2 CALL FUNCTION 'HR_BR_READ_T7BRB2' EXPORTING bukrs = p_bukrs branch = p_branch begda = p_date endda = p_date sw_prot = p_sw_prot TABLES out_t7brb2 = i7brb2 EXCEPTIONS pass_exception = 1 no_entry_found_t7brb2 = 2 table_t7brb2_empty = 3 OTHERS = 4.

HR_BR_READ_T7BRFP CALL FUNCTION 'HR_BR_READ_T7BRFP' EXPORTING fpas = p_fpas begda = p_date endda = p_date IMPORTING fpasi = p_fpasi EXCEPTIONS no_entry_found_t7brb2 = 1 table_t7brb2_empty = 2 pass_exception = 3 OTHERS = 4.

HR_BR_ADD_MONTH_TO_DATE CALL FUNCTION 'HR_BR_ADD_MONTH_TO_DATE' EXPORTING dmm_datin = p_fire_date dmm_count = '1' dmm_oper = '-' dmm_pos = space IMPORTING dmm_daout = l_dat_ini EXCEPTIONS unknown = 1.

HR_BR_TABELA_MOT CALL FUNCTION 'HR_BR_TABELA_MOT' EXPORTING tmedd = l_measure mmedd = l_reason date = l_measure_date IMPORTING fgtsr = l_cod_fgtsr preno = l_preno avpwo = l_avpwo saque = l_saque EXCEPTIONS table_error = 1 OTHERS = 2.

HR_BR_APPEND_PERNR_MESSAGE CALL FUNCTION 'HR_BR_APPEND_PERNR_MESSAGE' EXPORTING pernr_number = pernr-pernr message_id = 'HRPAYBR94' message_type = 'E' message_number = '032' message_var1 = l_saque message_var2 = pn-endda message_var3 = space message_var4 = space.

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_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_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_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_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.

HR99L00_GET_RETRO_MONTH_DIFF CALL FUNCTION 'HR99L00_GET_RETRO_MONTH_DIFF' EXPORTING pernr = pernr-pernr month = l_results_begda+4(2) year = l_results_begda(4) sel_date = 'B' TABLES lgart = l_r_lgart retro_month_diff = l_i_retro EXCEPTIONS t500l_not_maintained = 1 no_read_authority = 2 import_error = 3 OTHERS = 4.

HR_BR_ADD_MONTH_TO_DATE CALL FUNCTION 'HR_BR_ADD_MONTH_TO_DATE' EXPORTING dmm_datin = l_results_begda dmm_count = '1' dmm_oper = '+' dmm_pos = space IMPORTING dmm_daout = l_results_begda EXCEPTIONS unknown = 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 PCGRXBR2 or its description.