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

PCTMSBR0 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

RP_LAST_DAY_OF_MONTHS CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS' EXPORTING day_in = sy-datum IMPORTING last_day_of_month = pnpendda.

HR_BR_GET_FILIAL_PER_AREA CALL FUNCTION 'HR_BR_GET_FILIAL_PER_AREA' EXPORTING p_werks = p0001-werks p_btrtl = p0001-btrtl IMPORTING bukrs = lv_bukrs branch = lv_branch obra = lv_obra EXCEPTIONS no_link_areas = 1 no_group_found = 2 OTHERS = 3.

HR_BR_LER_FILIAL_GERAL CALL FUNCTION 'HR_BR_LER_FILIAL_GERAL' EXPORTING company_code = lv_bukrs branch = lv_branch obra = lv_obra date = pn-endda IMPORTING cgc = lv_cgc_number comp_name = lv_comp_name comp_addr = lv_address EXCEPTIONS branch_not_found = 1 address_not_found = 2 company_not_found = 3 general_data_not_found = 4 OTHERS = 5.

HR_BR_CHECK_CGC_FORMAT CALL FUNCTION 'HR_BR_CHECK_CGC_FORMAT' EXPORTING cgc_number = st_s_employer_data-gcgnr IMPORTING cgc_number_formatted = st_s_employer_data-gcgnr EXCEPTIONS cgc_format_not_supported = 1 cgc_check_digit = 2 OTHERS = 3.

HR_READ_TIMEDATA_PSP CALL FUNCTION 'HR_READ_TIMEDATA_PSP' EXPORTING begin_date = gv_begda end_date = gv_endda person_id = pernr-pernr TABLES pers_avail = gt_pers_avail EXCEPTIONS no_capacity_available = 1 no_integration_activ = 2 timeinfo_error = 3 OTHERS = 4.

HR_BR_DISPLAY_LOG CALL FUNCTION 'HR_BR_DISPLAY_LOG' EXPORTING sw_prot = abap_true.

HRBR_READ_T001P CALL FUNCTION 'HRBR_READ_T001P' EXPORTING * EVALUATION_DATE = personnel_number = pv_pernr TABLES infotype_0001 = pt_0001 CHANGING wa_t001p = ls_t001p * WA_T503 = EXCEPTIONS no_entries_found = 1 pass_exception = 2 OTHERS = 3 .

HR_FEATURE_BACKTABLE CALL FUNCTION 'HR_FEATURE_BACKTABLE' EXPORTING feature = 'BRABC' struc_content = ls_pme01 kind_of_error = space TABLES back = lt_back EXCEPTIONS OTHERS = 1.

HR_FEATURE_BACKTABLE ENDIF. "CALL FUNCTION 'HR_FEATURE_BACKTABLE'

HRBR_READ_T001P ENDIF. "CALL FUNCTION 'HRBR_READ_T001P'

HR_BR_APPEND_PERNR_MESSAGE CALL FUNCTION 'HR_BR_APPEND_PERNR_MESSAGE' EXPORTING pernr_number = ls_msg-pernr message_id = ls_msg-msgid message_type = ls_msg-msgty message_number = ls_msg-msgno message_var1 = ls_msg-msgv1 message_var2 = ls_msg-msgv2 message_var3 = ls_msg-msgv3 message_var4 = ls_msg-msgv4.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' EXPORTING report = sy-repid mode = lv_print_param_mode no_dialog = abap_true IMPORTING out_parameters = ls_pri_params EXCEPTIONS archive_info_not_found = 1 invalid_print_params = 2 invalid_archive_params = 3 OTHERS = 4.

H99B_OPEN_LFORM_JOB CALL FUNCTION 'H99B_OPEN_LFORM_JOB' EXPORTING i_molga = pbr99_molga i_fogroup = pv_fogroup i_folname = pv_form OPTIONS = ls_options EXCEPTIONS fotype_invalid = 1 job_not_opened = 2 OTHERS = 3.

H99B_OUTPUT_LFORM CALL FUNCTION 'H99B_OUTPUT_LFORM' EXPORTING i_molga = pbr99_molga i_fogroup = pv_fogroup i_folname = pv_form i_data_struc = i_data EXCEPTIONS error = 1 fotype_invalid = 2 OTHERS = 3.

H99B_CLOSE_LFORM_JOB CALL FUNCTION 'H99B_CLOSE_LFORM_JOB' EXCEPTIONS fotype_invalid = 1 closing_error = 2 OTHERS = 3.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = lv_dyname dynumb = lv_dynumb TABLES dynpfields = lt_dynpfields.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'FOLNAME' value_org = 'S' " structure TABLES value_tab = st_f4_form_name[] return_tab = lt_ret EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = lv_dyname dynumb = lv_dynumb TABLES dynpfields = lt_dynpfields.



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