SAP RH_OM_GENERATE_PATH Function Module for Generate internal evaluation path









RH_OM_GENERATE_PATH is a standard rh om generate path SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate internal evaluation path processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rh om generate path FM, simply by entering the name RH_OM_GENERATE_PATH into the relevant SAP transaction such as SE37 or SE38.

Function Group: RHGP
Program Name: SAPLRHGP
Main Program:
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RH_OM_GENERATE_PATH pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RH_OM_GENERATE_PATH'"Generate internal evaluation path
EXPORTING
* ACT_PATHID = "
* RELA_TEXT_FLAG = 'X' "
* ACT_TITLE = "
* HIERARCHIE_ICON = 'X' "
* CHANGE_DISPLAY_ICON = "
* SCREEN_START_COLUMN = "
* SCREEN_START_LINE = "
* SCREEN_END_COLUMN = "
* SCREEN_END_LINE = "
* ACT_INT_PATHID = "
* INTERN_FLAG = 'X' "
* EXTERN_FLAG = 'X' "
* SAPORG_FLAG = 'X' "
* MARK_MODE = "
* MARK_ONLY_ONE_RELATION = "
* MAINT = 'X' "
* GENERATE_PATH = "

IMPORTING
NEW_PATHID = "

TABLES
* I77AW_IN = "
* I77AW_LOCKED_IN = "
* RESTRICTED_STARTOBJECTS = "
* I777V_IN = "
* I77AW_OUT = "

EXCEPTIONS
NO_PATH_GENERATED = 1 NOTHING_SELECTED = 2 ACTION_CANCELLED = 3
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLRHGP_001 Additional information on / off
EXIT_SAPLRHGP_002 Text Fill Customer-Specific Field
EXIT_SAPLRHGP_003 Header Fill Customer-Specific Field

IMPORTING Parameters details for RH_OM_GENERATE_PATH

ACT_PATHID -

Data type: HRRHAS-WEGID
Optional: Yes
Call by Reference: No ( called with pass by value option)

RELA_TEXT_FLAG -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACT_TITLE -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

HIERARCHIE_ICON -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGE_DISPLAY_ICON -

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

SCREEN_START_COLUMN -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

SCREEN_START_LINE -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

SCREEN_END_COLUMN -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

SCREEN_END_LINE -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

ACT_INT_PATHID -

Data type: HRRHAS-77AW_INT
Optional: Yes
Call by Reference: No ( called with pass by value option)

INTERN_FLAG -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTERN_FLAG -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SAPORG_FLAG -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MARK_MODE -

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

MARK_ONLY_ONE_RELATION -

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAINT -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

GENERATE_PATH -

Data type: C
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RH_OM_GENERATE_PATH

NEW_PATHID -

Data type: HRRHAS-WEGID
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RH_OM_GENERATE_PATH

I77AW_IN -

Data type: T77AW
Optional: Yes
Call by Reference: No ( called with pass by value option)

I77AW_LOCKED_IN -

Data type: T77AW
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESTRICTED_STARTOBJECTS -

Data type: T788O
Optional: Yes
Call by Reference: No ( called with pass by value option)

I777V_IN -

Data type: T777V
Optional: Yes
Call by Reference: No ( called with pass by value option)

I77AW_OUT -

Data type: T77AW
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_PATH_GENERATED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOTHING_SELECTED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ACTION_CANCELLED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RH_OM_GENERATE_PATH Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_i77aw_in  TYPE STANDARD TABLE OF T77AW, "   
lv_act_pathid  TYPE HRRHAS-WEGID, "   
lv_new_pathid  TYPE HRRHAS-WEGID, "   
lv_no_path_generated  TYPE HRRHAS, "   
lv_rela_text_flag  TYPE C, "   'X'
lv_act_title  TYPE C, "   
lv_hierarchie_icon  TYPE C, "   'X'
lv_change_display_icon  TYPE C, "   
lv_screen_start_column  TYPE I, "   
lv_screen_start_line  TYPE I, "   
lv_screen_end_column  TYPE I, "   
lv_screen_end_line  TYPE I, "   
lv_act_int_pathid  TYPE HRRHAS-77AW_INT, "   
lt_i77aw_locked_in  TYPE STANDARD TABLE OF T77AW, "   
lv_nothing_selected  TYPE T77AW, "   
lv_intern_flag  TYPE C, "   'X'
lv_action_cancelled  TYPE C, "   
lt_restricted_startobjects  TYPE STANDARD TABLE OF T788O, "   
lt_i777v_in  TYPE STANDARD TABLE OF T777V, "   
lv_extern_flag  TYPE C, "   'X'
lt_i77aw_out  TYPE STANDARD TABLE OF T77AW, "   
lv_saporg_flag  TYPE C, "   'X'
lv_mark_mode  TYPE C, "   
lv_mark_only_one_relation  TYPE C, "   
lv_maint  TYPE C, "   'X'
lv_generate_path  TYPE C. "   

  CALL FUNCTION 'RH_OM_GENERATE_PATH'  "Generate internal evaluation path
    EXPORTING
         ACT_PATHID = lv_act_pathid
         RELA_TEXT_FLAG = lv_rela_text_flag
         ACT_TITLE = lv_act_title
         HIERARCHIE_ICON = lv_hierarchie_icon
         CHANGE_DISPLAY_ICON = lv_change_display_icon
         SCREEN_START_COLUMN = lv_screen_start_column
         SCREEN_START_LINE = lv_screen_start_line
         SCREEN_END_COLUMN = lv_screen_end_column
         SCREEN_END_LINE = lv_screen_end_line
         ACT_INT_PATHID = lv_act_int_pathid
         INTERN_FLAG = lv_intern_flag
         EXTERN_FLAG = lv_extern_flag
         SAPORG_FLAG = lv_saporg_flag
         MARK_MODE = lv_mark_mode
         MARK_ONLY_ONE_RELATION = lv_mark_only_one_relation
         MAINT = lv_maint
         GENERATE_PATH = lv_generate_path
    IMPORTING
         NEW_PATHID = lv_new_pathid
    TABLES
         I77AW_IN = lt_i77aw_in
         I77AW_LOCKED_IN = lt_i77aw_locked_in
         RESTRICTED_STARTOBJECTS = lt_restricted_startobjects
         I777V_IN = lt_i777v_in
         I77AW_OUT = lt_i77aw_out
    EXCEPTIONS
        NO_PATH_GENERATED = 1
        NOTHING_SELECTED = 2
        ACTION_CANCELLED = 3
. " RH_OM_GENERATE_PATH




ABAP code using 7.40 inline data declarations to call FM RH_OM_GENERATE_PATH

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single WEGID FROM HRRHAS INTO @DATA(ld_act_pathid).
 
"SELECT single WEGID FROM HRRHAS INTO @DATA(ld_new_pathid).
 
 
DATA(ld_rela_text_flag) = 'X'.
 
 
DATA(ld_hierarchie_icon) = 'X'.
 
 
 
 
 
 
"SELECT single 77AW_INT FROM HRRHAS INTO @DATA(ld_act_int_pathid).
 
 
 
DATA(ld_intern_flag) = 'X'.
 
 
 
 
DATA(ld_extern_flag) = 'X'.
 
 
DATA(ld_saporg_flag) = 'X'.
 
 
 
DATA(ld_maint) = 'X'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!