SAP RH_PM_GET_STRUCTURE Function Module for









RH_PM_GET_STRUCTURE is a standard rh pm get structure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 pm get structure FM, simply by entering the name RH_PM_GET_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.

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



Function RH_PM_GET_STRUCTURE 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_PM_GET_STRUCTURE'"
EXPORTING
PLVAR = "
* DEPTH = 0 "
* CHECK_OBJECT = ' ' "
* PROGRESS_INDICATOR = ' ' "
* SVECT = "
* ACTIV = 'X' "
* BUFFER_MODE = "
OTYPE = "
OBJID = "
BEGDA = "
ENDDA = "
* STATUS = '1' "
WEGID = "
* 77AW_INT = ' ' "
* AUTHY = 'X' "

TABLES
* OBJEC_TAB = "
* STRUC_TAB = "
* GDSTR_TAB = "

EXCEPTIONS
NOT_FOUND = 1 PPWAY_NOT_FOUND = 2
.



IMPORTING Parameters details for RH_PM_GET_STRUCTURE

PLVAR -

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

DEPTH -

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

CHECK_OBJECT -

Data type: P1000-HISTO
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROGRESS_INDICATOR -

Data type: P1000-HISTO
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SVECT -

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

ACTIV -

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

BUFFER_MODE -

Data type: FLAG
Optional: Yes
Call by Reference: Yes

OTYPE -

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

OBJID -

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

BEGDA -

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

ENDDA -

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

STATUS -

Data type: P1000-ISTAT
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WEGID -

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

77AW_INT -

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

AUTHY -

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

TABLES Parameters details for RH_PM_GET_STRUCTURE

OBJEC_TAB -

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

STRUC_TAB -

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

GDSTR_TAB -

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

EXCEPTIONS details

NOT_FOUND -

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

PPWAY_NOT_FOUND -

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

Copy and paste ABAP code example for RH_PM_GET_STRUCTURE 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:
lv_plvar  TYPE P1000-PLVAR, "   
lv_not_found  TYPE P1000, "   
lt_objec_tab  TYPE STANDARD TABLE OF OBJEC, "   
lv_depth  TYPE HRRHAS-TDEPTH, "   0
lv_check_object  TYPE P1000-HISTO, "   ' '
lv_progress_indicator  TYPE P1000-HISTO, "   ' '
lv_svect  TYPE HRRHAS-SVECT, "   
lv_activ  TYPE HRRHAS-ACTIV, "   'X'
lv_buffer_mode  TYPE FLAG, "   
lv_otype  TYPE P1000-OTYPE, "   
lt_struc_tab  TYPE STANDARD TABLE OF STRUC, "   
lv_ppway_not_found  TYPE STRUC, "   
lv_objid  TYPE STRUC, "   
lt_gdstr_tab  TYPE STANDARD TABLE OF GDSTR, "   
lv_begda  TYPE P1000-BEGDA, "   
lv_endda  TYPE P1000-ENDDA, "   
lv_status  TYPE P1000-ISTAT, "   '1'
lv_wegid  TYPE HRRHAS-WEGID, "   
lv_77aw_int  TYPE HRRHAS-77AW_INT, "   ' '
lv_authy  TYPE HRRHAS-AUTHY. "   'X'

  CALL FUNCTION 'RH_PM_GET_STRUCTURE'  "
    EXPORTING
         PLVAR = lv_plvar
         DEPTH = lv_depth
         CHECK_OBJECT = lv_check_object
         PROGRESS_INDICATOR = lv_progress_indicator
         SVECT = lv_svect
         ACTIV = lv_activ
         BUFFER_MODE = lv_buffer_mode
         OTYPE = lv_otype
         OBJID = lv_objid
         BEGDA = lv_begda
         ENDDA = lv_endda
         STATUS = lv_status
         WEGID = lv_wegid
         77AW_INT = lv_77aw_int
         AUTHY = lv_authy
    TABLES
         OBJEC_TAB = lt_objec_tab
         STRUC_TAB = lt_struc_tab
         GDSTR_TAB = lt_gdstr_tab
    EXCEPTIONS
        NOT_FOUND = 1
        PPWAY_NOT_FOUND = 2
. " RH_PM_GET_STRUCTURE




ABAP code using 7.40 inline data declarations to call FM RH_PM_GET_STRUCTURE

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 PLVAR FROM P1000 INTO @DATA(ld_plvar).
 
 
 
"SELECT single TDEPTH FROM HRRHAS INTO @DATA(ld_depth).
 
"SELECT single HISTO FROM P1000 INTO @DATA(ld_check_object).
DATA(ld_check_object) = ' '.
 
"SELECT single HISTO FROM P1000 INTO @DATA(ld_progress_indicator).
DATA(ld_progress_indicator) = ' '.
 
"SELECT single SVECT FROM HRRHAS INTO @DATA(ld_svect).
 
"SELECT single ACTIV FROM HRRHAS INTO @DATA(ld_activ).
DATA(ld_activ) = 'X'.
 
 
"SELECT single OTYPE FROM P1000 INTO @DATA(ld_otype).
 
 
 
 
 
"SELECT single BEGDA FROM P1000 INTO @DATA(ld_begda).
 
"SELECT single ENDDA FROM P1000 INTO @DATA(ld_endda).
 
"SELECT single ISTAT FROM P1000 INTO @DATA(ld_status).
DATA(ld_status) = '1'.
 
"SELECT single WEGID FROM HRRHAS INTO @DATA(ld_wegid).
 
"SELECT single 77AW_INT FROM HRRHAS INTO @DATA(ld_77aw_int).
DATA(ld_77aw_int) = ' '.
 
"SELECT single AUTHY FROM HRRHAS INTO @DATA(ld_authy).
DATA(ld_authy) = '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!