SAP Reports / Programs

HBGLLOS0 SAP ABAP Report - Length of Service







HBGLLOS0 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for When an employee is hired into a company, the employer decides which length of service (LOS) from the employee's workbook is going to be acknowledged and enters these records from the workbook into infotype Previous Employers (0937)...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 HBGLLOS0 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 HBGLLOS0. "Basic submit
SUBMIT HBGLLOS0 AND RETURN. "Return to original report after report execution complete
SUBMIT HBGLLOS0 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_VARIA = ALV variant
Selection Text: PA_PROFF = Reference Profession
Selection Text: PA_ACTTY = Reference Activity Type
Title: Length of Service
Text Symbol: QI6 = Class seniority row
Text Symbol: QI4 = Data row
Text Symbol: QI3 = Summary row
Text Symbol: QI2 = Employer
Text Symbol: H01 = Options
Text Symbol: 027 = Approved LOS (yy mm dd)
Text Symbol: 026 = Date:
Text Symbol: 025 = Name:
Text Symbol: 024 = Length of service
Text Symbol: 023 = Profes.
Text Symbol: 022 = Count into profession
Text Symbol: 021 = Act.Type
Text Symbol: 020 = Count into activity type
Text Symbol: 019 = Insurance from workbook (yy mm dd)
Text Symbol: 018 = LOS from Workbook (yy mm dd)
Text Symbol: 017 = LOS CC
Text Symbol: 016 = LOS Calculated (yy mm dd)
Text Symbol: 015 = ER
Text Symbol: 014 = Employer
Text Symbol: 013 = Class seniority
Text Symbol: 012 = Total in company
Text Symbol: 011 = Confirmed LOS
Text Symbol: 010 = Total of all LOS
Text Symbol: 009 = Total for current profession
Text Symbol: 008 = Total for current activity type
Text Symbol: 007 = Current
Text Symbol: 006 = Previous
Text Symbol: 005 = Sign.
Text Symbol: 004 = Signature
Text Symbol: 003 = Valid by:
Text Symbol: 002 = Employee:
Text Symbol: 001 = Objects on loan


INCLUDES used within this REPORT HBGLLOS0

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:

HR_BG_GET_PREV_ER CALL FUNCTION 'HR_BG_GET_PREV_ER' EXPORTING hold = pv_hold pernr = pernr-pernr key_date = pn-begda TABLES prev_er = pt_los.

HR_BG_GET_CURR_ER CALL FUNCTION 'HR_BG_GET_CURR_ER' EXPORTING key_date = pn-begda pernr = pernr-pernr TABLES curr_er = pt_los.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_alv_header.

HR_BG_LOS_SUM CALL FUNCTION 'HR_BG_LOS_SUM' IMPORTING total_los = ps_display-loscc TABLES los_for_sum = lt_loscc.

HR_BG_LOS_SUM CALL FUNCTION 'HR_BG_LOS_SUM' IMPORTING total_los = ps_display-loswb TABLES los_for_sum = lt_loswb.

HR_BG_LOS_SUM CALL FUNCTION 'HR_BG_LOS_SUM' IMPORTING total_los = ps_display-inswb TABLES los_for_sum = lt_inswb.

HR_BG_LOS_SUM CALL FUNCTION 'HR_BG_LOS_SUM' IMPORTING total_los = ps_display-losap TABLES los_for_sum = lt_losap.

HR_BG_GET_PROFESSION CALL FUNCTION 'HR_BG_GET_PROFESSION' EXPORTING langu = sy-langu TABLES profess = lt_t710st.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'PROFF' tabname = 'P0937' display = l_display IMPORTING select_value = selected_value TABLES fields = i_help_value valuetab = i_valuetab EXCEPTIONS field_not_in_ddic = 01 more_then_one_selectfield = 02 no_selectfield = 03.

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' 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.

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = gv_restrict EXCEPTIONS OTHERS = 1.



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