SAP Reports / Programs | Payroll(PY) SAP PY

HBGCBT00 SAP ABAP Report -







HBGCBT00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You run this report to take payroll results and prepare bank transfers that are stored to the table T7BGA1...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter HBGCBT00 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 HBGCBT00. "Basic submit
SUBMIT HBGCBT00 AND RETURN. "Return to original report after report execution complete
SUBMIT HBGCBT00 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_UPCL2 = Set flag for transfers
Selection Text: P_TEST = Test ?
Selection Text: P_PDTYP = Type of document
Selection Text: P_PDNUM = Number of document
Selection Text: P_LGART = Restricted to wage types
Selection Text: P_HKTI = House bank account ID
Selection Text: P_HBKI = House bank
Selection Text: P_EMFSL = Range for receiver
Selection Text: P_DATUM = Date
Title:
Text Symbol: 052 = Run the program with log for personal numbers to analyze the error. Then correct
Text Symbol: 053 = the error or exclude the personal numbers from processing
Text Symbol: 060 = Data were succesfully writen to table T7BGA1 with identification:
Text Symbol: 061 = Run date (LAUFD) :
Text Symbol: 062 = Identification (LAUFI):
Text Symbol: 063 = Date of valuta
Text Symbol: 064 = Number of bank transfers
Text Symbol: 065 = Total
Text Symbol: E01 = No payroll results
Text Symbol: E02 = Error Write flag: Unable to restore results for current payroll
Text Symbol: E03 = No authorization to read results
Text Symbol: E04 = Error Write flag: Unknown error importing buffer
Text Symbol: E05 = Error Write flag: Error reading payroll result:
Text Symbol: E06 = Error Write flag: Error writing payroll result:
Text Symbol: E07 = Error Write flag: Insert error when flushing buffer
Text Symbol: E08 = Error Write flag: Other error when flushing buffer
Text Symbol: E09 = Repeat runs available only for alpha phase (Rest of the Pay checked)
Text Symbol: E20 = WPBP record not found for SEQNR+WT+APZNR:
Text Symbol: E21 = BG_OSI record not found for SEQNR+WT+CNTR1:
Text Symbol: E22 = No customizing in T7BG11 found for:
Text Symbol: E23 = No customizing in T7BG20 found for:
Text Symbol: 001 = Additional options
Text Symbol: 002 = Special run
Text Symbol: 003 = Restriction of processed data
Text Symbol: 004 = Rest of the pay
Text Symbol: 005 = Other deductions
Text Symbol: 006 = Tax&SI
Text Symbol: 008 = Transfer and output options





Text Symbol: 009 = Test
Text Symbol: 010 = Save into table T7BGA1
Text Symbol: 011 = DMEE
Text Symbol: 012 = Bank key and account
Text Symbol: 013 = Sklic
Text Symbol: 014 = APP co/Text
Text Symbol: 015 = Transfer options
Text Symbol: 016 = Do not summarize bank transfers
Text Symbol: 017 = Display results as Payment orders
Text Symbol: 018 = ALV variant
Text Symbol: 019 = Debugging log
Text Symbol: 020 = Display results as Log
Text Symbol: 021 = Repeated runs
Text Symbol: 022 = Repeat run: Date
Text Symbol: 023 = Time
Text Symbol: 030 = Payee key
Text Symbol: 031 = not found.
Text Symbol: 032 = Payee key not found for wage type
Text Symbol: 033 = PERNR for individual payments
Text Symbol: 034 = Payments separated acc. to periods
Text Symbol: 040 = EGN
Text Symbol: 050 = During processing of following personal numbers errors appeared. Because if this
Text Symbol: 051 = NO data from the whole processed set will be written to the database


INCLUDES used within this REPORT HBGCBT00

INCLUDE HBGUACT0.


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:

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = gv_alvari IMPORTING es_variant = gv_alvari EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = gv_alvari IMPORTING es_variant = gv_alvari EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 3.

HR_BG_READ_PYRES_INTERVAL CALL FUNCTION 'HR_BG_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'S' begda = pn-begda endda = pn-endda bondt = bondt payty = payty payid = payid tprun = '' tpall = '' TABLES runs = lt_runs myrg = lt_myrg rtdet = lt_rtdet.

HR_BG_READ_PYRES_INTERVAL CALL FUNCTION 'HR_BG_READ_PYRES_INTERVAL' EXPORTING pernr = pernr-pernr mode = 'R' begda = pn-begda endda = pn-endda bondt = bondt payty = payty payid = payid tprun = '' tpall = 'X' TABLES runs = lt_runs myrg = lt_myrg rtdet = lt_rtdet.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = lv_repid i_structure_name = 'T7BGA1' is_layout = ls_layout is_variant = ls_variant i_save = 'X' TABLES t_outtab = i_table.

HR_BG_LAST_DAY_OF_MONTH CALL FUNCTION 'HR_BG_LAST_DAY_OF_MONTH' EXPORTING day_in = lv_endda IMPORTING last_day_of_month = lv_endda.

HR_BG_GET_LEGALCODE_OSI





CALL FUNCTION 'HR_BG_GET_LEGALCODE_OSI' EXPORTING insty = i_insty asper = i_bgosi-asper labca = i_bgosi-labca wtgrp = lv_wtgrp bob60 = i_bgosi-bob60 keydate = gv_keydate IMPORTING pkind = o_refers-pkind TABLES code_table = gt_t7bg11 EXCEPTIONS not_found = 1 OTHERS = 2.

HR_BG_GET_LEGALCODE_TAX CALL FUNCTION 'HR_BG_GET_LEGALCODE_TAX' EXPORTING lgart = i_rt-lgart txpgp = ls_t7bg01p-txpgp asper = i_bgosi-asper keydate = gv_keydate IMPORTING pkind = o_refers-pkind TABLES code_table = gt_t7bg20 EXCEPTIONS not_found = 1 OTHERS = 2.

HR_PCLX_INIT_BUFFER CALL FUNCTION 'HR_PCLX_INIT_BUFFER'.

HR_IMPORT_BUFFER_FROM_PCLX CALL FUNCTION 'HR_IMPORT_BUFFER_FROM_PCLX' EXPORTING employee_number = pernr cluster_id = gv_cluster_id from_sequence_number = seqnr to_sequence_number = seqnr EXCEPTIONS no_results = 1 no_read_authority = 2 OTHERS = 3.

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING clusterid = gv_cluster_id employeenumber = pernr sequencenumber = seqnr CHANGING payroll_result = result EXCEPTIONS illegal_isocode_or_clusterid = 1 error_generating_import = 2 import_mismatch_error = 3 subpool_dir_full = 4 no_read_authority = 5 no_record_found = 6 versions_do_not_match = 7 OTHERS = 8.

PYXX_WRITE_PAYROLL_RESULT CALL FUNCTION 'PYXX_WRITE_PAYROLL_RESULT' EXPORTING clusterid = gv_cluster_id employeenumber = pernr sequencenumber = seqnr payroll_result = result EXCEPTIONS illegal_isocode_or_clusterid = 1 error_generating_export = 2 export_error = 3 subpool_dir_full = 4 no_update_authority = 5 incomplete_result_imported = 6 OTHERS = 7.

HR_FLUSH_BUFFER_UPDATE_PCLX CALL FUNCTION 'HR_FLUSH_BUFFER_UPDATE_PCLX' EXCEPTIONS insert_error = 1 no_update_authority = 2 OTHERS = 3.



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