SAP Reports / Programs | Payroll(PY) SAP PY

HBGLF760 SAP ABAP Report - Form 76







HBGLF760 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 display the time data of your employees...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 HBGLF760 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 HBGLF760. "Basic submit
SUBMIT HBGLF760 AND RETURN. "Return to original report after report execution complete
SUBMIT HBGLF760 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: PA_WT_WN = Normal Work Time - night
Selection Text: PA_WT_WD = Normal Work Time - day
Selection Text: PA_WT_SN = Att.: SAWT overtimes - night
Selection Text: PA_WT_SD = Att.: SAWT overtimes - day
Selection Text: PA_WT_RN = Att.: Others - night
Selection Text: PA_WT_RD = Att.: Others - day
Selection Text: PA_WT_ON = Overtimes - night
Selection Text: PA_WT_OD = Overtimes - day
Selection Text: PA_WT_BN = Att.: Business Trip - night
Selection Text: PA_WT_BD = Att.: Business Trip - day
Selection Text: PA_WTOWT = Proposal wage type
Selection Text: PA_VARIA = ALV Variant
Selection Text: PA_TMFRM = Time Frame
Selection Text: PA_SESS = Batch input session
Selection Text: PA_SCHKZ = Work schedule rule
Selection Text: PA_POSTE = Positive time evaluation
Selection Text: PA_OVERR = Overwrite existing IT record
Selection Text: PA_DOBTC = Data generation
Selection Text: PA_CTUPD = Update mode
Selection Text: PA_CTMOD = Processing mode
Selection Text: PA_CALWT = On-call duty wage types
Selection Text: PA_CALL = Direct
Selection Text: PA_BUSER = User logon name
Selection Text: PA_BTEST = Test mode
Selection Text: PA_BNAME = Name of Batch input session
Title: Form 76
Text Symbol: LE5 = Empty/negative hours, existing IT record deleted
Text Symbol: LE6 = Fire before IT record date
Text Symbol: P21 = Positive Time Eval. (Clock In/Out)
Text Symbol: P22 = Wage types for
Text Symbol: V07 = Number/unit
Text Symbol: V06 = Number of hours
Text Symbol: V05 = IT2010 field for overtime
Text Symbol: V04 = Column XP
Text Symbol: V03 = Column X1
Text Symbol: V02 = Column X
Text Symbol: V01 = Overtime hours column
Text Symbol: T03 = Batch processing





Text Symbol: T02 = Time Evaluation
Text Symbol: T01 = Display options
Text Symbol: S13 = Absences - Hours (normative)
Text Symbol: S12 = Normal work hours (Clock In/Out)
Text Symbol: S11 = Summary Month (Clock In/Out)
Text Symbol: S10 = Absences - Days
Text Symbol: S09 = Attendances Business Trip
Text Symbol: S08 = Attendances SAWT overtime
Text Symbol: S07 = Attendances others
Text Symbol: S06 = Overtimes
Text Symbol: S05 = Absences - Hours
Text Symbol: S04 = Absences - ID
Text Symbol: S03 = DWS Plan - Hours
Text Symbol: S02 = DWS Plan - ID
Text Symbol: S01 = Summary Month
Text Symbol: QI4 = Substitution
Text Symbol: QI2 = Normal color
Text Symbol: QI3 = Attendances Business Trip
Text Symbol: 027 = Hours - Actually worked - basic
Text Symbol: 026 = Hours - Attendances
Text Symbol: 025 = Hours - Overtime 2005
Text Symbol: 024 = Hours - All absences
Text Symbol: 023 = Hours - Planned
Text Symbol: 022 = Hours - Normative
Text Symbol: 021 = Days - Food provided
Text Symbol: 020 = Days - Actually worked
Text Symbol: 019 = Days - Absences Not permitted
Text Symbol: 018 = Days - Absences Personal reason
Text Symbol: 017 = Days - Absences Social duty
Text Symbol: 016 = Days - Absences Study leave
Text Symbol: 015 = Days - Absences Maternity leave
Text Symbol: 014 = Days - Absences Unpaid leave
Text Symbol: 013 = Days - Absences Sick leave
Text Symbol: 012 = Days - Absences Regular vacation
Text Symbol: 011 = Days - Day+Night Shift
Text Symbol: 010 = Days - Night Shift
Text Symbol: 009 = Days - Day Shift
Text Symbol: 008 = Days - Normative
Text Symbol: 007 = DAY





Text Symbol: 006 = Row Type
Text Symbol: 005 = Period
Text Symbol: 004 = Summary Frame
Text Symbol: 003 = Summary Month
Text Symbol: 002 = Year
Text Symbol: 001 = Month
Text Symbol: 028 = Hours - Night work - real
Text Symbol: LE4 = Empty/negative hours
Text Symbol: LE3 = Locked pernr
Text Symbol: LE2 = IT 2010 record already exist
Text Symbol: LE1 = Frame period not closed
Text Symbol: L08 = (TEST MODE)
Text Symbol: L07 = Overtime hours
Text Symbol: L06 = Error information
Text Symbol: L05 = Unsuccessfully
Text Symbol: L04 = Successfully generated
Text Symbol: L03 = non-SAWT employees
Text Symbol: L02 = SAWT employees
Text Symbol: L01 = Overtime batch input generation
Text Symbol: I01 = Nr. of processed PERNRs:
Text Symbol: H03 = Period:
Text Symbol: H02 = Form 76
Text Symbol: H01 = Display options
Text Symbol: 039 = Hours - Normative worked
Text Symbol: 038 = Hours - Balance for SAWT
Text Symbol: 037 = Hours - Overtime for SAWT (PosTE)
Text Symbol: 036 = Hours - Actually worked - effect.(PosTE)
Text Symbol: 035 = Hours - Night work recalculated (PosTE)
Text Symbol: 034 = Hours - Night work - real (PosTE)
Text Symbol: 033 = Hours - Actually worked - basic (PosTE)
Text Symbol: 032 = Hours - On call - duty
Text Symbol: 031 = Hours - Overtime for SAWT
Text Symbol: 030 = Hours - Actually worked - effective
Text Symbol: 029 = Hours - Night work recalculated


INCLUDES used within this REPORT HBGLF760

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:

RP_HIRE_FIRE CALL FUNCTION 'RP_HIRE_FIRE' "nt1615873 EXPORTING "nt1779731 beg = pn-begda "nt1779731 end = pn-endda "nt1779731 IMPORTING fire_date = gv_fire TABLES pphifi = gt_hifi pp0000 = p0000 pp0001 = p0001.




HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING pernr = pernr-pernr begda = ps_periods-beg_eval_per endda = ps_periods-end_eval_per kug = 'ALL' * REFRESH = 'X' * WORKING_HOURS = 'X' * SWITCH_ACTIV = * MODIFY_ENTRIES = 'X' * I0001_I0007_ERROR = '0' TABLES i0000 = p0000 i0001 = p0001 i0002 = p0002 i0007 = p0007 * I0049 = * i2001 = i2001 * i2002 = i2002 i2003 = p2003 perws = lt_pws EXCEPTIONS error_occured = 1 abort_occured = 2 OTHERS = 3.

HR_TIME_RESULTS_GET CALL FUNCTION 'HR_TIME_RESULTS_GET' EXPORTING get_pernr = pernr-pernr get_pabrj = ps_periods-beg_period(4) get_pabrp = ps_periods-beg_period+4(2) TABLES * GET_PSP = P_PSP * GET_SALDO = P_SALDO * GET_ZES = P_ZES get_zl = lt_zl EXCEPTIONS no_period_specified = 1 wrong_cluster_version = 2 no_read_authority = 3 cluster_archived = 4 technical_error = 5.

HR_BG_ADD_MONTH_TO_DATE CALL FUNCTION 'HR_BG_ADD_MONTH_TO_DATE' EXPORTING dmm_datin = ps_periods-beg_period dmm_count = '1' dmm_oper = '+' dmm_pos = 'BEG' IMPORTING dmm_daout = ps_periods-beg_period.

HR_BG_ADD_MONTH_TO_DATE CALL FUNCTION 'HR_BG_ADD_MONTH_TO_DATE' EXPORTING dmm_datin = lv_begda dmm_count = ls_periods-tmfrm dmm_oper = '+' dmm_pos = 'BEG' IMPORTING dmm_daout = lv_endda.

HR_BG_ADD_MONTH_TO_DATE CALL FUNCTION 'HR_BG_ADD_MONTH_TO_DATE' EXPORTING dmm_datin = lv_begda dmm_count = ls_periods-tmfrm dmm_oper = '+' dmm_pos = 'BEG' IMPORTING dmm_daout = lv_begda.

HR_BG_ADD_MONTH_TO_DATE CALL FUNCTION 'HR_BG_ADD_MONTH_TO_DATE' EXPORTING dmm_datin = lv_begda dmm_count = ls_periods-tmfrm dmm_oper = '+' dmm_pos = 'BEG' IMPORTING dmm_daout = lv_endda.

HR_BG_LAST_DAY_OF_MONTH CALL FUNCTION 'HR_BG_LAST_DAY_OF_MONTH' EXPORTING day_in = ps_periods-end_eval_per IMPORTING last_day_of_month = ps_periods-end_period.

HR_BG_LAST_DAY_OF_MONTH CALL FUNCTION 'HR_BG_LAST_DAY_OF_MONTH' EXPORTING day_in = lv_date IMPORTING last_day_of_month = ps_periods-end_period.

HR_BG_NORMATIVDAYS_IN_INTERVAL CALL FUNCTION 'HR_BG_NORMATIVDAYS_IN_INTERVAL' EXPORTING begda = ps_ws-datum endda = ps_ws-datum mofid = ls_t001p-mofid CHANGING normative_days = lv_i.

HR_BG_LAST_DAY_OF_MONTH CALL FUNCTION 'HR_BG_LAST_DAY_OF_MONTH' "nt1523065 EXPORTING day_in = lv_begda IMPORTING last_day_of_month = lv_endda.

HR_BG_NORMATIVDAYS_IN_INTERVAL CALL FUNCTION 'HR_BG_NORMATIVDAYS_IN_INTERVAL' EXPORTING begda = p0001-begda endda = p0001-endda mofid = ls_t001p-mofid CHANGING normative_days = lv_i * HOLIDAYS = .

HR_BG_NORMATIVDAYS_IN_INTERVAL CALL FUNCTION 'HR_BG_NORMATIVDAYS_IN_INTERVAL' EXPORTING begda = p0001-begda endda = p0001-endda mofid = ls_t001p-mofid CHANGING normative_days = lv_i * HOLIDAYS = .

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_alv_header.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = 'BGATN' struc_content = ls_pbg03 IMPORTING back = pv_class.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = cprog i_callback_top_of_page = 'TOP_OF_PAGE' * i_callback_html_end_of_list = 'END_OF_LIST_HTML' i_callback_pf_status_set = 'SET_PF_STATUS' "nt1615873 i_callback_user_command = 'USER_COMMAND' "nt1615873 is_layout = is_layout it_fieldcat = p_fieldcat i_save = 'X' is_variant = is_variant it_sort = p_gt_sort[] * it_events = p_events it_except_qinfo = lt_exc TABLES t_outtab = p_outtab EXCEPTIONS program_error = 1 OTHERS = 2.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = pa_bname user = pa_buser keep = 'X'.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

HR_EMPLOYEE_ENQUEUE CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE' EXPORTING number = -pernr IMPORTING return = ls_bapiret.

HR_EMPLOYEE_DEQUEUE CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE' EXPORTING number = -pernr IMPORTING return = ls_bapiret.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = p_tcode TABLES dynprotab = gt_bdcdata.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING client = sy-mandt group = pa_bname user = pa_buser keep = 'X' holddate = sy-datum.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = p_tcode TABLES dynprotab = gt_bdcdata.

HR_PAL_NODE_ADD CALL FUNCTION 'HR_PAL_NODE_ADD' EXPORTING i_relatkey = pv_relnode i_node_txt = pv_nodetxt i_categ_id = pv_categ IMPORTING e_node_key = pv_nodekey EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_CREATE_NODE_CATEG CALL FUNCTION 'HR_PAL_CREATE_NODE_CATEG' EXPORTING i_categ_id = p_node i_save = 'A' is_layout = p_layout it_fieldcat = p_fldcat i_rttc = 'X' EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_NODE_ADD_ROW CALL FUNCTION 'HR_PAL_NODE_ADD_ROW' EXPORTING i_node_key = p_nodekey i_row_data = p_data EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_STATS_MSG_ADD CALL FUNCTION 'HR_PAL_STATS_MSG_ADD' EXPORTING i_stcnt = p_count i_msgid = ls_msg-msgid i_msgty = ls_msg-msgty i_msgno = ls_msg-msgno i_msgv1 = ls_msg-msgv1 i_msgv2 = ls_msg-msgv2 i_msgv3 = ls_msg-msgv3 i_msgv4 = ls_msg-msgv4 EXCEPTIONS program_error = 1 OTHERS = 2.

HR_PAL_LOG_DISPLAY CALL FUNCTION 'HR_PAL_LOG_DISPLAY' EXPORTING i_s_display_profile = ls_display_profile EXCEPTIONS program_error = 1 no_logs = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = lv_icon_name " TEXT = lv_ICON_TEXT " INFO = 'Status' add_stdinf = space IMPORTING RESULT = lv_status_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 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 HBGLF760 or its description.