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

PCFCOBR0 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

HRBR_UPDATE_INFOTYPE_2001 CALL FUNCTION 'HRBR_UPDATE_INFOTYPE_2001' TABLES NEW_P2001 = ppo_new_i2001 OLD_P2001 = ppo_old_i2001.

HR_PL_IMPORT_LOG_FROM_MEMORY CALL FUNCTION 'HR_PL_IMPORT_LOG_FROM_MEMORY' EXPORTING mem_key = memo_key.

HR_PL_DISPLAY_LOG CALL FUNCTION 'HR_PL_DISPLAY_LOG' EXPORTING procl = 'C' EXCEPTIONS OTHERS = 1.

HR_BR_GET_CONSTANT CALL FUNCTION 'HR_BR_GET_CONSTANT' EXPORTING p_constant = pbr99_cadfc p_date = g_begfe IMPORTING p_value = l_cadfc EXCEPTIONS constant_not_found = 1 OTHERS = 2.

HRBR_READ_INFOTYPE * CALL FUNCTION 'HRBR_READ_INFOTYPE' * EXPORTING * personnel_number = p_pernr ** begin_date = g_begfe ** end_date = g_begfe * infotype = '2006' ** bypass_buffer = pbr99_on * TABLES * infotype_table = i2006.

HRBR_READ_INFOTYPE CALL FUNCTION 'HRBR_READ_INFOTYPE' EXPORTING personnel_number = pernr-pernr begin_date = g_begfe end_date = g_begfe infotype = '0007' TABLES infotype_table = p0007.

HRBR_READ_INFOTYPE CALL FUNCTION 'HRBR_READ_INFOTYPE' EXPORTING personnel_number = pernr-pernr * begin_date = g_begfe * end_date = g_begfe infotype = '2006' * bypass_buffer = pbr99_on TABLES infotype_table = i2006.

HRBR_CREATE_LEAVE_ENTITLEMENT CALL FUNCTION 'HRBR_CREATE_LEAVE_ENTITLEMENT' EXPORTING PERNR = pernr END_DATE = date_to TABLES QUOTAS = per_aq P2006_DEL = p2006_del P2006_MOD = p2006_mod P2006_INS = p2006_ins P2006_ERR = P2006_err EXCEPTIONS INFOTYPE_0000_NOT_FOUND = 1 INFOTYPE_0001_NOT_FOUND = 2 INFOTYPE_0003_NOT_FOUND = 3 INFOTYPE_0007_NOT_FOUND = 4 NO_ENTRY_IN_T503 = 5 NO_ENTRY_IN_T001P = 6 NO_ENTRY_IN_T556A = 7 END_DATE_IS_INITIAL = 8 EMPLOYEE_NOT_ACTIVE_IN_PERIOD = 9 FUNCTION_MODULE_NOT_ALLOWED = 10 EMPLOYEE_WITH_WRONG_MOLGA = 11 ONLY_ONE_QUOTA_TYPE_ALLOWED = 12 NO_QUOTA_TYPE_FOUND = 13 INTERNAL_ERROR = 14 NEGATIVE_QUOTA_NOT_ALLOWED = 15 OTHERS = 16.

HRBR_SIM_LEAVE_ENTITLEMENT CALL FUNCTION 'HRBR_SIM_LEAVE_ENTITLEMENT' TABLES P2006_DEL = p2006_del P2006_MOD = p2006_mod P2006_INS = p2006_ins P2006 = p2006_sim EXCEPTIONS RECORD_TO_DELETE_NOT_FOUND = 1 RECORD_TO_MODIFY_NOT_FOUND = 2 INSERT_FAILED = 3 OTHERS = 4.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr infty = '2006' bypass_buffer = pbr99_on IMPORTING subrc = subrc TABLES infty_tab = i2006 EXCEPTIONS others = 1.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr infty = '0001' bypass_buffer = pbr99_on IMPORTING subrc = subrc TABLES infty_tab = i0001 EXCEPTIONS others = 1.

HR_INITIALIZE_BUFFER CALL FUNCTION 'HR_INITIALIZE_BUFFER' EXPORTING PERNR = pernr exceptions others = 1.

HR_BR_LE_TIPO_CONTIGENTE CALL FUNCTION 'HR_BR_LE_TIPO_CONTIGENTE' EXPORTING MOPGK = t503-konty MOZKO = t001p-mozko DATE = i2006-begda IMPORTING PER_AQUISITIVO = leave_type_tab EXCEPTIONS QUOTA_NAO_ENCONTRADA = 1 OTHERS = 2.

HRBR_CREATE_LEAVE_ENTITLEMENT CALL FUNCTION 'HRBR_CREATE_LEAVE_ENTITLEMENT' EXPORTING PERNR = pernr END_DATE = date_to NEW_QUOTA_DATE = new_qdate TABLES P2006_DEL = p2006_del P2006_MOD = p2006_mod P2006_INS = p2006_ins P2006_ERR = P2006_err EXCEPTIONS INFOTYPE_0000_NOT_FOUND = 1 INFOTYPE_0001_NOT_FOUND = 2 INFOTYPE_0003_NOT_FOUND = 3 INFOTYPE_0007_NOT_FOUND = 4 NO_ENTRY_IN_T503 = 5 NO_ENTRY_IN_T001P = 6 NO_ENTRY_IN_T556A = 7 END_DATE_IS_INITIAL = 8 EMPLOYEE_NOT_ACTIVE_IN_PERIOD = 9 FUNCTION_MODULE_NOT_ALLOWED = 10 EMPLOYEE_WITH_WRONG_MOLGA = 11 ONLY_ONE_QUOTA_TYPE_ALLOWED = 12 NO_QUOTA_TYPE_FOUND = 13 INTERNAL_ERROR = 14 NEGATIVE_QUOTA_NOT_ALLOWED = 15 OTHERS = 16.

HRBR_UPDATE_LEAVE_ENTITLE_COLL CALL FUNCTION 'HRBR_UPDATE_LEAVE_ENTITLE_COLL' EXPORTING PERNR = pernr TABLES P2006_DEL = p2006_del P2006_MOD = p2006_mod P2006_INS = P2006_ins EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 NO_AUTHORIZATION = 3 OTHERS = 4.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = p_pernr infty = '2006' bypass_buffer = pbr99_on IMPORTING subrc = subrc TABLES infty_tab = i2006 exceptions infty_not_found = 1 others = 2.

HR_BR_LE_TIPO_CONTIGENTE CALL FUNCTION 'HR_BR_LE_TIPO_CONTIGENTE' EXPORTING mopgk = t503-konty mozko = t001p-mozko date = g_begfe IMPORTING per_aquisitivo = p_per_aquisitivo ferias_antecipadas = p_ferias_antecipadas EXCEPTIONS quota_nao_encontrada = 1 OTHERS = 2.

HR_BR_GET_CONSTANT CALL FUNCTION 'HR_BR_GET_CONSTANT' EXPORTING p_constant = pbr99_cdays p_date = g_begfe IMPORTING p_value = l_cdays EXCEPTIONS constant_not_found = 1 OTHERS = 2.

HR_ENTRY_DATE





CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING persnr = p_pernr IMPORTING entrydate = p_date TABLES entry_dates = l_entry_dates EXCEPTIONS entry_date_not_found = 1 OTHERS = 2.

HRBR_READ_INFOTYPE CALL FUNCTION 'HRBR_READ_INFOTYPE' EXPORTING personnel_number = p_pernr infotype = '0041' "#EC NOTEXT TABLES infotype_table = p0041 EXCEPTIONS pass_exception = 1 OTHERS = 2.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'HRPAYBR_FCOL_PAYDATE' IMPORTING is_implemented = is_implemented CHANGING instance = badi_fcol_paydate.

HR_GET_BUSINESS_ADD_IN CALL FUNCTION 'HR_GET_BUSINESS_ADD_IN' EXPORTING exit_name = 'HRPAYBR_FCOL_PAYROLL' IMPORTING is_implemented = is_implemented CHANGING instance = badi_fcol_payroll.



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