SAP Reports / Programs | Personnel Time Management | Shift Planning(PT-SP) SAP PT

FH5AHF50 SAP ABAP INCLUDE - documentation and ABAP source code







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

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:

HRSP_UPDATE_INFOCOLUMNS CALL FUNCTION 'HRSP_UPDATE_INFOCOLUMNS' EXPORTING begin_date = pfedy-begda end_date = pfedy-endda * BNAME = SY-UNAME *FMS performance note 590985 g_peins_psdci = g_peins_psdci TABLES buffer_saldo = buffer_saldo buffer_zl = buffer_zl prev_saldo = prev_saldo prev_zl = prev_zl *FMS note673730 fehler_ps = ifehler *FMS end CHANGING info_columns = all_info_columns *FMS performance note 590985 g_import_b2_done = g_import_b2_done g_import_b2_pp_done = g_import_b2_pp_done EXCEPTIONS infocol_error = 1 OTHERS = 2. "#EC *

STRUCTURE_BUILD CALL FUNCTION 'STRUCTURE_BUILD' EXPORTING plvar = pfedy-plvar otype = $pernr objid = cig_info-pernr wegid = 'P-S-O' sbegd = cig_begda sendd = cig_endda cbflag = 'X' IMPORTING object = objec root = gdstr entry = struc cb_nr = local_cb_nr EXCEPTIONS root_not_found = 01 wegid_not_found = 02.

STRUCTURE_ENTRY_GET CALL FUNCTION 'STRUCTURE_ENTRY_GET' EXPORTING index = gdstr-pstru cb_nr = local_cb_nr IMPORTING object = objec root = gdstr entry = struc.

HRSP_CHANGE_SINGLE_INFOCOL CALL FUNCTION 'HRSP_CHANGE_SINGLE_INFOCOL' EXPORTING infocol = ci_infocol begin_date = pfedy-begda end_date = pfedy-endda TABLES user_cust_tab = param_tab CHANGING all_info_columns = all_info_columns EXCEPTIONS invalid_infocol = 1 OTHERS = 2. "#EC *

HRSP_CHANGE_ALL_INFOCOLUMNS CALL FUNCTION 'HRSP_CHANGE_ALL_INFOCOLUMNS' EXPORTING begin_date = pfedy-begda end_date = pfedy-endda dayview = '' *CSJ Begin Info Column Grouping Note# 728627 * Changes to reflect new Info Column Grouping functionality actual_plan = actual_plan im_current_variant = g_var_inf *CSJ End Info Column Grouping *FMS performance note 590985 g_peins_psdci = g_peins_psdci g_fill_info_col = g_fill_info_col IMPORTING ex_info_column_variant = l_var_inf "CSJ 728627 TABLES user_cust_tab = param_tab *FMS performance note 590985 buffer_saldo = buffer_saldo prev_saldo = prev_saldo buffer_zl = buffer_zl prev_zl = prev_zl *FMS end *FMS note 673730 fehler_ps = ifehler *FMS end CHANGING all_info_columns = all_info_columns *FMS performance note 590985 g_import_b2_done = g_import_b2_done g_import_b2_pp_done = g_import_b2_pp_done *FMS end EXCEPTIONS invalid_infocol = 1 OTHERS = 2.

HRSP_CHANGE_ALL_INFOCOLUMNS CALL FUNCTION 'HRSP_CHANGE_ALL_INFOCOLUMNS' EXPORTING begin_date = pfedy-begda end_date = pfedy-endda dayview = '' *FMS performance note 590985 g_peins_psdci = g_peins_psdci g_fill_info_col = g_fill_info_col TABLES user_cust_tab = param_tab *FMS performance note 590985 buffer_saldo = buffer_saldo prev_saldo = prev_saldo buffer_zl = buffer_zl prev_zl = prev_zl *FMS end *FMS note 673730 fehler_ps = ifehler *FMS end CHANGING all_info_columns = all_info_columns *FMS performance note 590985 g_import_b2_done = g_import_b2_done g_import_b2_pp_done = g_import_b2_pp_done *FMS end EXCEPTIONS invalid_infocol = 1 OTHERS = 2. "#EC *

HRSP_INFOCOL_CONFIG_SAVE CALL FUNCTION 'HRSP_INFOCOL_CONFIG_SAVE' EXPORTING bname = sy-uname TABLES user_cust_tab = param_tab.

HRSP_INFOCOL_CONFIG_SAVE * CALL FUNCTION 'HRSP_INFOCOL_CONFIG_SAVE' * EXPORTING * BNAME = SY-UNAME * TABLES * USER_CUST_TAB = PARAM_TAB.

STRUCTURE_BUILD CALL FUNCTION 'STRUCTURE_BUILD' EXPORTING plvar = pfedy-plvar otype = 'P' objid = cio_info-pernr wegid = 'P-S-O' sbegd = cio_begda sendd = cio_endda tflag = 'X' IMPORTING object = objec root = gdstr entry = struc EXCEPTIONS root_not_found = 01 wegid_not_found = 02.

CONTROL_BLOCK_RESERVE CALL FUNCTION 'CONTROL_BLOCK_RESERVE' IMPORTING cb_nr = local_cb_nr.

STRUCTURE_ENTRY_GET CALL FUNCTION 'STRUCTURE_ENTRY_GET' EXPORTING index = gdstr-pstru cb_nr = local_cb_nr IMPORTING object = objec root = gdstr entry = struc.

CONTROL_BLOCK_DELETE CALL FUNCTION 'CONTROL_BLOCK_DELETE' EXPORTING cb_nr = local_cb_nr.

STRUCTURE_DELETE CALL FUNCTION 'STRUCTURE_DELETE' EXPORTING pstru = gdstr-pstru.

HRSP_DET_AVAIL_ABREV CALL FUNCTION 'HRSP_DET_AVAIL_ABREV' EXPORTING pernr = p_pernr "815218 datum = p_datum "815218 read_shift_abbreviations = g_peins_psksa "815218 stnby = p_stnby tprog = wa_info-tprog varia = wa_info-varia beguz = wa_info-begzt enduz = wa_info-endzt dienstgr = pdpla-dienstgr IMPORTING abrev = p_bereit text = p_bereit_txt * RETURN_CODE = e_beguz = p_bereit_von e_enduz = p_bereit_bis TABLES i_t77ed = i_t77ed * EXCEPTIONS * TABLE_EMPTY = 1 * OTHERS = 2 .

HR_SHIFTPLAN_SET_PARAMETER CALL FUNCTION 'HR_SHIFTPLAN_SET_PARAMETER' EXPORTING user_name = username parameter_id = 'PE_STNBY' para_value = stnby_display.

HR_SHIFTPLAN_SET_PARAMETER CALL FUNCTION 'HR_SHIFTPLAN_SET_PARAMETER' EXPORTING user_name = sy-uname parameter_id = 'PE_STNBY' para_value = stnby_display.

HR_DWS_BREAKS CALL FUNCTION 'HR_DWS_BREAKS' EXPORTING motpr = person_groupings-motpr pamod = p_gs_break-pamod TABLES breaks = dws_break.

HR_DWS_RE550 * call function 'HR_DWS_RE550' * exporting * motpr = gv_motpr * tprog = gv_tprog * varia = gv_varia * date = gv_date ** BREAK_OVERTIME = * importing * daygen = i_daygen ** BEGUZ = ** ENDUZ = ** BEGDA = ** ENDDA = ** SUBRC = * tables * dayint = i_dayint * exceptions * error_occured = 1 * others = 2.

HR_CONVERT_WORK_SCHEDULE





* call function 'HR_CONVERT_WORK_SCHEDULE' * EXPORTING * daygen = i_daygen * TABLES * dayint = i_dayint * i550an = i550an * i550ao = i550ao * i550pn = gv_t550p * i550po = i550po.

HR_WORK_SCHEDULE_TIMES CALL FUNCTION 'HR_WORK_SCHEDULE_TIMES' EXPORTING pernr = gv_pernr begda = gv_date endda = gv_date * KUG = ' ' * BREAK_OVERTIME = '1' * REFRESH_INFOTYPE_BUFFER = 'X' * IMPORTING * WARNING_OCCURED = TABLES i0001 = lt_p0001 "Note 558451 i0007 = lt_p0007 i2003 = l_p2003 * I0049 = perws = l_perws daygen = l_daygen dayint = i_dayint EXCEPTIONS error_occured = 1 perws_error = 2 OTHERS = 3.

HR_CONVERT_WORK_SCHEDULE CALL FUNCTION 'HR_CONVERT_WORK_SCHEDULE' EXPORTING daygen = i_daygen TABLES dayint = i_dayint i550an = i550an i550ao = i550ao i550pn = gv_t550p i550po = i550po.

RH_READ_INFTY_1001 CALL FUNCTION 'RH_READ_INFTY_1001' EXPORTING * AUTHORITY = 'DISP' * WITH_STRU_AUTH = 'X' * ISTAT = ' ' * EXTEND = 'X' subty = 'B003' begda = ch_pos_begda endda = ch_pos_endda * CONDITION = '00000' * SORT = 'X' * WITH_EV = ' ' * ADATA = 'X' TABLES i1001 = i1001_s OBJECTS = object_set EXCEPTIONS nothing_found = 1 wrong_condition = 2 OTHERS = 3. "#EC *

HRSP_SELECT_ASS_STRATEGY CALL FUNCTION 'HRSP_SELECT_ASS_STRATEGY' EXPORTING dienstgr = pdpla-dienstgr rule_t77s0 = $rule rule_current = g_rule_ass IMPORTING rule_selected = l_rule_sel EXCEPTIONS cancel_popup = 1 OTHERS = 2.



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