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

PCTR2BR0 SAP ABAP INCLUDE - documentation and ABAP source code







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

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_pernr-werks p_btrtl = p_pernr-btrtl IMPORTING bukrs = bukrs branch = branch obra = obra.

HR_BR_LER_FILIAL_GERAL CALL FUNCTION 'HR_BR_LER_FILIAL_GERAL' EXPORTING company_code = bukrs branch = branch obra = obra date = pn-endda IMPORTING cgc = company_data-cgc_number cei = cei comp_name = company_data-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.

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

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 = pmassn mmedd = pmassg date = pnpendda IMPORTING preno = preno fgtfl = fgtfl saque = saque avpwo = avpwo EXCEPTIONS table_error = 1 OTHERS = 2.

HR_BR_TIPO_AFASTAMENTO CALL FUNCTION 'HR_BR_TIPO_AFASTAMENTO' EXPORTING tmedd = p_pmassn rmedd = p_pmassg IMPORTING mgtxt = hrt-causa EXCEPTIONS table_error = 1 OTHERS = 2.

HR_BR_GET_BY_EVAL_CLASS CALL FUNCTION 'HR_BR_GET_BY_EVAL_CLASS' EXPORTING aklas = pbr99_wages_termo_resc paydate = sy-datum value = pbr99_wages_termo_resc_on TABLES wagetypes = wagetypes.

HR_BR_GET_BY_EVAL_CLASS CALL FUNCTION 'HR_BR_GET_BY_EVAL_CLASS' EXPORTING aklas = pbr99_wages_resc paydate = sy-datum value = valc TABLES wagetypes = wagetypes.

HR_BR_GET_BY_EVAL_CLASS CALL FUNCTION 'HR_BR_GET_BY_EVAL_CLASS' EXPORTING aklas = pbr99_wages_resc paydate = sy-datum value = valc TABLES wagetypes = wagetypes.

HR_99S_GET_EVAL_CLASS_VALUE CALL FUNCTION 'HR_99S_GET_EVAL_CLASS_VALUE' EXPORTING P_MOLGA = pbr99_molga P_LGART = t512w-lgart P_EVAL_CLASS = pbr99_wages_dirf_est P_KEYDATE = sy-datum IMPORTING P_VALUE = l_ec_value P_RETURN_CODE = l_ret_code.

HR_BR_GET_BY_EVAL_CLASS CALL FUNCTION 'HR_BR_GET_BY_EVAL_CLASS' EXPORTING aklas = pbr99_wages_resc paydate = sy-datum value = valc TABLES wagetypes = wagetypes.

HR_99S_GET_EVAL_CLASS_VALUE CALL FUNCTION 'HR_99S_GET_EVAL_CLASS_VALUE' EXPORTING P_MOLGA = pbr99_molga P_LGART = t512w-lgart P_EVAL_CLASS = pbr99_wages_dirf_est P_KEYDATE = sy-datum IMPORTING P_VALUE = l_ec_value P_RETURN_CODE = l_ret_code.

HRCA_READ_BANK_ADDRESS_2 CALL FUNCTION 'HRCA_READ_BANK_ADDRESS_2' EXPORTING bank_country = p0009-banks bank_number = p0009-bankl IMPORTING bank_data = bnka_bf EXCEPTIONS not_found = 1 OTHERS = 2.

HR_BR_GET_BY_EVAL_CLASS CALL FUNCTION 'HR_BR_GET_BY_EVAL_CLASS' EXPORTING aklas = pbr99_wages_resc paydate = sy-datum value = valc TABLES wagetypes = wagetypes.

HR_BR_GET_RETRO_MONTH_DIFF CALL FUNCTION 'HR_BR_GET_RETRO_MONTH_DIFF' EXPORTING pernr = pernr-pernr month = mes year = ano sel_date = 'B' ajus_date = l_ajus_date TABLES lgart = wagetypes retro_month_diff = t_retro offcycles = offcycles EXCEPTIONS t500l_not_maintained = 1 no_read_authority = 2 import_error = 3 OTHERS = 4.

HR_BR_GET_BY_EVAL_CLASS CALL FUNCTION 'HR_BR_GET_BY_EVAL_CLASS' EXPORTING aklas = pbr99_wages_resc paydate = sy-datum value = valc TABLES wagetypes = wagetypes.

HR_BR_GET_RETRO_MONTH_DIFF CALL FUNCTION 'HR_BR_GET_RETRO_MONTH_DIFF' EXPORTING pernr = pernr-pernr month = mes year = ano sel_date = 'B' ajus_date = l_ajus_date TABLES lgart = wagetypes retro_month_diff = t_retro offcycles = offcycles EXCEPTIONS t500l_not_maintained = 1 no_read_authority = 2 import_error = 3 OTHERS = 4.



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