SAP Reports / Programs

/ISDFPS/HROM_POS_GENERATOR SAP ABAP Report - Positions Generator for Contingent Planning







/ISDFPS/HROM_POS_GENERATOR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Generating Positions for Quota Planning Starting from your planned required positions (entered as whole numbers or full-time equivalents, FTE), this report enables you to generate new positions or set positions you do not need to obsolete...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 /ISDFPS/HROM_POS_GENERATOR into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

/ISDFPS/POSGEN - Position Generator: HCP
/ISDFPS/POS_GEN - HCP Position Generator


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 /ISDFPS/HROM_POS_GENERATOR. "Basic submit
SUBMIT /ISDFPS/HROM_POS_GENERATOR AND RETURN. "Return to original report after report execution complete
SUBMIT /ISDFPS/HROM_POS_GENERATOR 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: SUB_FROM = Planning Type
Title: Positions Generator for Contingent Planning
Text Symbol: ZBE = Planning available
Text Symbol: TOO = Related organizational unit
Text Symbol: TBC = e.g.
Text Symbol: SUC = Generation was successful
Text Symbol: SUB = Generation of:
Text Symbol: STA = Generation Status
Text Symbol: SEL = Selection of organizational units
Text Symbol: SBS = Generation complete; reduction required
Text Symbol: RED = Reduction required in FTE
Text Symbol: RDQ = Reduction error; check required
Text Symbol: RDE = Reduction error; check required
Text Symbol: QRD = Execute reduction
Text Symbol: PLF = Plan status incorrect KON contingent planning not found
Text Symbol: PLA = Generation Method
Text Symbol: ORL = Organizational unit locked
Text Symbol: ORG = Organizational Unit
Text Symbol: ONF = Organizational unit not found or not valid
Text Symbol: NOO = No positions exist for reduction or are already obsolete positions
Text Symbol: NDP = Obsolete positions (not deleted)
Text Symbol: NAD = Generation successful; positions were set to obsolete and not deleted
Text Symbol: KPL = No active plan version has been chosen
Text Symbol: KON = Contingent planning not found
Text Symbol: IC2 = Information
Text Symbol: IC1 = Generation
Text Symbol: HDR = Generating positions in budget planning
Text Symbol: FTG = All necessary actions have been executed
Text Symbol: ERS = Error during creation
Text Symbol: CRE = Create New Positions
Text Symbol: ATR = Reduction occurs without dialog
Text Symbol: ALT = Planning exceeds budget
Text Symbol: ALR = Current plan already generated. Make a new plan


INCLUDES used within this REPORT /ISDFPS/HROM_POS_GENERATOR

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:

RH_GET_ACTIVE_WF_PLVAR CALL FUNCTION 'RH_GET_ACTIVE_WF_PLVAR' IMPORTING act_plvar = pchplvar EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

RHOM_SET_UPDATE_FLAGS_FOR_BUFF CALL FUNCTION 'RHOM_SET_UPDATE_FLAGS_FOR_BUFF' EXPORTING update_pppar_exep = loc_pppar_exep update_from_struc = 'X'.

RHOM_WRITE_BUFFER_TO_DB CALL FUNCTION 'RHOM_WRITE_BUFFER_TO_DB'.

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.

REUSE_ALV_COMMENTARY_WRITE * CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' * EXPORTING * it_list_commentary = comments_list.

RH_GENERATE_FROM_HEADCT_STEP

/ISDFPS/FDP_GEN_FROM_HCP_STEP * call function 'RH_GENERATE_FROM_HEADCT_STEP' CALL FUNCTION '/ISDFPS/FDP_GEN_FROM_HCP_STEP' EXPORTING act_plvar = sel_us_tab-plvar act_otype = sel_us_tab-otype act_objid = sel_us_tab-objid act_istat = gen_istat "?? act_plan_state = sub_from act_reduce_only = 'X' distribute_reduction = distrib used_in_generation = 'X' no_enqueue = no_enq gen_istat = gen_istat IMPORTING no_reduction_done = no_reduction_done amount_obsolet = red_amount TABLES pos_not_deleted = pos_not_deleted EXCEPTIONS no_active_plvar = 1 orgunit_not_valid = 2 plan_state_not_ok = 3 no_head_count_plan_found = 4 orgunit_locked = 5 reduction_error = 7 "STFO526000 no_positions_to_set_obsolet = 8 "STFO526000 OTHERS = 6. "STFO526000

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' "#EC * EXPORTING plvar = sel_us_tab-plvar otype = 'S' objid = pos_not_deleted-objid IMPORTING short = pos_short stext = pos_stext EXCEPTIONS not_found = 1 OTHERS = 2.

RH_GENERATE_FROM_HEADCT_STEP

/ISDFPS/FDP_GEN_FROM_HCP_STEP * CALL FUNCTION 'RH_GENERATE_FROM_HEADCT_STEP' CALL FUNCTION '/ISDFPS/FDP_GEN_FROM_HCP_STEP' EXPORTING act_plvar = sel_us_tab-plvar act_otype = sel_us_tab-otype act_objid = sel_us_tab-objid act_plan_state = sub_from act_create_only = 'X' used_in_generation = 'X' no_enqueue = no_enq gen_istat = gen_istat EXCEPTIONS no_active_plvar = 1 orgunit_not_valid = 2 plan_state_not_ok = 3 no_head_count_plan_found = 4 orgunit_locked = 5 reduction_error = 7 "STFO526000 no_positions_to_set_obsolet = 8 "STFO526000 OTHERS = 6. "STFO526000

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_OKAY' info = own_qinfo IMPORTING result = sel_us_tab-icon EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_STORNO' info = own_qinfo IMPORTING result = sel_us_tab-icon EXCEPTIONS OTHERS = 0.

RHOM_READ_INFTY_BUFFERED CALL FUNCTION 'RHOM_READ_INFTY_BUFFERED' EXPORTING plvar = g_p1019-plvar otype = g_p1019-otype objid = g_p1019-objid infty = '1019' subty = g_p1019-subty istat = g_p1019-istat begda = g_p1019-begda endda = g_p1019-endda TABLES infty_dat = g_1019_exp_tmp EXCEPTIONS OTHERS = 0.

/ISDFPS/CHANGE_INFTY_BUFFERED CALL FUNCTION '/ISDFPS/CHANGE_INFTY_BUFFERED' EXPORTING fcode = 'INSE' TABLES innnn_exp = g_1019_exp EXCEPTIONS no_active_plvar = 1 no_input = 2 object_not_enqueued = 3 write_error = 4 OTHERS = 5.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_FAILURE' info = own_qinfo IMPORTING result = sel_us_tab-icon EXCEPTIONS OTHERS = 0.

RH_GENERATE_FROM_HEADCT_STEP

/ISDFPS/FDP_GEN_FROM_HCP_STEP * call function 'RH_GENERATE_FROM_HEADCT_STEP' CALL FUNCTION '/ISDFPS/FDP_GEN_FROM_HCP_STEP' EXPORTING act_plvar = exec_p1019-plvar act_otype = exec_p1019-otype act_objid = exec_p1019-objid act_plan_state = sub_from act_create_only = 'X' used_in_generation = 'X' no_enqueue = p_no_enq gen_istat = gen_istat IMPORTING amount_obsolet = red_amount ev_positions_generated = gv_positions_created EXCEPTIONS no_active_plvar = 1 orgunit_not_valid = 2 plan_state_not_ok = 3 no_head_count_plan_found = 4 orgunit_locked = 5 reduction_error = 7 "STFO526000 no_positions_to_set_obsolet = 8 "STFO526000 OTHERS = 6. "STFO526000

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_FAILURE' info = own_qinfo IMPORTING result = sel_us_tab-icon EXCEPTIONS OTHERS = 0.

RHOM_READ_INFTY_BUFFERED CALL FUNCTION 'RHOM_READ_INFTY_BUFFERED' EXPORTING plvar = g_p1019-plvar otype = g_p1019-otype objid = g_p1019-objid infty = '1019' subty = g_p1019-subty istat = g_p1019-istat begda = g_p1019-begda endda = g_p1019-endda TABLES infty_dat = g_1019_exp_tmp EXCEPTIONS OTHERS = 0.

/ISDFPS/CHANGE_INFTY_BUFFERED CALL FUNCTION '/ISDFPS/CHANGE_INFTY_BUFFERED' EXPORTING fcode = 'AEND' TABLES innnn_exp = g_1019_exp EXCEPTIONS no_active_plvar = 1 no_input = 2 object_not_enqueued = 3 write_error = 4 OTHERS = 5.






ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_STORNO' info = own_qinfo IMPORTING result = sel_us_tab-icon EXCEPTIONS OTHERS = 0.

RHOM_READ_INFTY_BUFFERED CALL FUNCTION 'RHOM_READ_INFTY_BUFFERED' EXPORTING plvar = g_p1019-plvar otype = g_p1019-otype objid = g_p1019-objid infty = '1019' subty = g_p1019-subty istat = g_p1019-istat begda = g_p1019-begda endda = g_p1019-endda TABLES infty_dat = g_1019_exp_tmp EXCEPTIONS OTHERS = 0.

/ISDFPS/CHANGE_INFTY_BUFFERED CALL FUNCTION '/ISDFPS/CHANGE_INFTY_BUFFERED' EXPORTING fcode = 'AEND' TABLES innnn_exp = g_1019_exp EXCEPTIONS no_active_plvar = 1 no_input = 2 object_not_enqueued = 3 write_error = 4 OTHERS = 5.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_OKAY' info = own_qinfo IMPORTING result = sel_us_tab-icon EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_OKAY' info = own_qinfo IMPORTING result = preview_tab-icon EXCEPTIONS OTHERS = 0.

RH_GENERATE_FROM_HEADCT_STEP

/ISDFPS/FDP_GEN_FROM_HCP_STEP * call function 'RH_GENERATE_FROM_HEADCT_STEP' "HCP_ISDFPS CALL FUNCTION '/ISDFPS/FDP_GEN_FROM_HCP_STEP' EXPORTING act_plvar = exec_p1019-plvar act_otype = exec_p1019-otype act_objid = exec_p1019-objid act_plan_state = sub_from calc_red_gen_only = 'X' used_in_generation = 'X' no_enqueue = p_no_enq gen_istat = p_istat IMPORTING amount_obsolet = red_amount EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_STORNO' info = own_qinfo IMPORTING result = preview_tab-icon EXCEPTIONS OTHERS = 0.

RH_GENERATE_FROM_HEADCT_STEP

/ISDFPS/FDP_GEN_FROM_HCP_STEP * call function 'RH_GENERATE_FROM_HEADCT_STEP' "HCP_ISDFPS CALL FUNCTION '/ISDFPS/FDP_GEN_FROM_HCP_STEP' EXPORTING act_plvar = exec_p1019-plvar act_objid = exec_p1019-objid act_plan_state = p_sub_from calc_red_gen_only = 'X' used_in_generation = 'X' no_enqueue = p_no_enq gen_istat = p_istat IMPORTING amount_obsolet = red_amount amount_generate = gen_amount ev_positions_generated = p_positions_generated EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_name info = own_qinfo IMPORTING result = preview_tab-icon EXCEPTIONS OTHERS = 0.

RHOM_READ_INFTY_BUFFERED CALL FUNCTION 'RHOM_READ_INFTY_BUFFERED' EXPORTING plvar = exec_p1019-plvar otype = exec_p1019-otype objid = exec_p1019-objid infty = '1019' subty = exec_p1019-subty istat = exec_p1019-istat begda = exec_p1019-begda endda = exec_p1019-endda auth_fcode = 'DISP' with_stru_auth = 'X' buffer_mode = 'X' TABLES infty_dat = ip1019_exp EXCEPTIONS no_active_plvar = 1 OTHERS = 2.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_ALERT' info = own_qinfo IMPORTING result = preview_tab-state_icon EXCEPTIONS OTHERS = 0.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' "#EC * EXPORTING plvar = preview_tab-plvar otype = preview_tab-otype objid = preview_tab-objid IMPORTING short = org_short stext = org_stext EXCEPTIONS not_found = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' "#EC * EXPORTING i_callback_program = prg_name it_fieldcat = list_field_catalog[] is_layout = list_layout it_events = list_events i_screen_start_column = 5 i_screen_start_line = 5 i_screen_end_column = 85 i_screen_end_line = 15 TABLES t_outtab = show_not_del EXCEPTIONS program_error = 1 OTHERS = 2.

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.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = comments_list.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = popup_comments.



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 /ISDFPS/HROM_POS_GENERATOR or its description.