RH_DELETE_FREE_POSITIONS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Deleting Unoccupied Positions on a Key Date This report enables you to delete unoccupied positions in an organizational structure...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 RH_DELETE_FREE_POSITIONS into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: PRE_DATE = Preview period
Selection Text: DEL_DATE = Delete on
Title: Delete unoccupied positions on key date
Text Symbol: SUC = Position successfully deleted
Text Symbol: STC = Key Date
Text Symbol: STA = Status
Text Symbol: POS = Position
Text Symbol: ORG = Organizational Unit
Text Symbol: NDL = Position was not deleted, because occupied before preview date
Text Symbol: HDR = Delete unoccupied positions
Text Symbol: ERR = Error while deleting position; check required
Text Symbol: EDB = Error in deleting position; Error in updating database
Text Symbol: CUT = Position delimited on key date
Text Symbol: AT2 = Direct and indirect positions will be delimited or deleted. Do you want to continue?
Text Symbol: AT0 = Delimiting/Deleting Positions
Text Symbol: 014 = CAUTION: Test Mode, No Processing
Text Symbol: 002 = Preview Date
Text Symbol: 001 = Deletion Date
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' "STFO490110 EXPORTING "STFO490110 TITLEBAR = 'Abgrenzung/Löschung von Planstellen'(AT0)"STFO490110 * DIAGNOSE_OBJECT = "STFO490110 text_question = text-at2 "STFO490110 * = 'Direkte und indirekte Planstellen werden gelöscht. Möchten
RH_READ_OBJECT call function 'RH_READ_OBJECT' exporting plvar = exec_p1000-plvar otype = exec_p1000-otype objid = exec_p1000-objid importing short = org_short stext = org_stext exceptions not_found = 1 others = 2.
RH_GET_ASSIGNED_OBJECTS call function 'RH_GET_ASSIGNED_OBJECTS' exporting plvar = pchplvar otype = exec_p1000-otype objid = exec_p1000-objid wegid = c_weg_id_sbesx sbegd = del_date sendd = del_date tdepth = '2' tables assigned_objects = assigned_objects.
RH_CONDITION_BUILD call function 'RH_CONDITION_BUILD' importing condition = condition tables condtab = cond_tab exceptions empty_condtab = 1 no_db_field = 2 unknown_infty_db = 3 wrong_condition = 4 unknown_pad_db = 5 others = 6.
RH_READ_INFTY call function 'RH_READ_INFTY' exporting infty = '1001' istat = '1' subty = 'A008' extend = 'D' condition = condition tables innnn = act_owner objects = act_position exceptions all_infty_with_subty = 1 nothing_found = 2 no_objects = 3 wrong_condition = 4 others = 5.
RH_READ_OBJECT call function 'RH_READ_OBJECT' exporting plvar = assigned_objects-plvar otype = assigned_objects-otype objid = read_objid importing obeg = pos_begda short = pos_short stext = pos_stext exceptions not_found = 1 others = 2.
RH_READ_INFTY call function 'RH_READ_INFTY' exporting authority = space with_stru_auth = space infty = '1000' istat = '1' tables innnn = cut_p1000 objects = act_position exceptions all_infty_with_subty = 1 nothing_found = 2 no_objects = 3 wrong_condition = 4 others = 5.
RH_CUT_OBJECT call function 'RH_CUT_OBJECT' exporting gdate = del_date histo = space gstat = '1' vtask = 'B' tables i1000 = cut_p1000 exceptions error_during_cut = 1 no_authorization = 2 gdate_before_begda = 3 corr_exit = 4 others = 5.
RH_DELETE_OBJECT call function 'RH_DELETE_OBJECT' exporting
plvar = act_position-plvar "490110STFO otype = act_position-otype "490110STFO objid = act_position-objid "490110STFO * plvar = act_owner-plvar "490110STFO * otype = act_owner-otype "490110STFO * objid = act_owner-objid "490110STFO vtask = 'B' exceptions error_during_delete = 1 no_authorization = 2 corr_exit = 3 buffer_upd_with_foreign_data = 4 others = 5.
REUSE_ALV_GRID_DISPLAY call function 'REUSE_ALV_GRID_DISPLAY' exporting i_callback_program = prg_name it_fieldcat = list_field_catalog[] it_sort = sort[] is_layout = list_layout it_events = list_events tables t_outtab = show_tab exceptions program_error = 1 others = 2.
REUSE_ALV_COMMENTARY_WRITE call function 'REUSE_ALV_COMMENTARY_WRITE' exporting it_list_commentary = list_comments.
REUSE_ALV_EVENTS_GET call function 'REUSE_ALV_EVENTS_GET' exporting i_list_type = 0 importing et_events = p_list_events exceptions list_type_wrong.
RH_UPDATE_DATABASE call function 'RH_UPDATE_DATABASE' exporting vtask = 'D' exceptions corr_exit = 1 others = 2.
RH_CLEAR_BUFFER call function 'RH_CLEAR_BUFFER'.
RH_CLEAR_PLOG_TAB call function 'RH_CLEAR_PLOG_TAB'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RH_DELETE_FREE_POSITIONS - Delete unoccupied positions on key date RH_DELETE_FREE_POSITIONS - Delete unoccupied positions on key date RH_DELETE_COL_USER_SETTINGSO01 - RHDELETECOLUSERSETTINGSO01 RH_DELETE_COL_USER_SETTINGSI01 - RHDELETECOLUSERSETTINGSI01 RH_DELETE_COL_USER_SETTINGS - Deleting a user's column configuration RH_DELETE_COL_USER_SETTINGS - Deleting a user's column configuration