SAP RSA2_SERV_HIERTRANSFER_GET Function Module for









RSA2_SERV_HIERTRANSFER_GET is a standard rsa2 serv hiertransfer get 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 rsa2 serv hiertransfer get FM, simply by entering the name RSA2_SERV_HIERTRANSFER_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSA7
Program Name: SAPLRSA7
Main Program: SAPLRSA7
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RSA2_SERV_HIERTRANSFER_GET 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 'RSA2_SERV_HIERTRANSFER_GET'"
EXPORTING
* I_OSOURCE = "
* I_OBJVERS = 'A' "
* I_S_HIERSEL = "

TABLES
I_T_LANGU = "
E_T_HIETEXT = "
E_T_HIENODE = "
* E_T_FOLDERT = "
* E_T_HIEINTV = "

EXCEPTIONS
INVALID_HIERARCHY = 1 NOT_EXIST = 2
.



IMPORTING Parameters details for RSA2_SERV_HIERTRANSFER_GET

I_OSOURCE -

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

I_OBJVERS -

Data type: ROOSOURCE-OBJVERS
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_S_HIERSEL -

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

TABLES Parameters details for RSA2_SERV_HIERTRANSFER_GET

I_T_LANGU -

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

E_T_HIETEXT -

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

E_T_HIENODE -

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

E_T_FOLDERT -

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

E_T_HIEINTV -

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

EXCEPTIONS details

INVALID_HIERARCHY -

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

NOT_EXIST -

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

Copy and paste ABAP code example for RSA2_SERV_HIERTRANSFER_GET 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_i_osource  TYPE ROOSOURCE-OLTPSOURCE, "   
lt_i_t_langu  TYPE STANDARD TABLE OF RSLANGUSEL, "   
lv_invalid_hierarchy  TYPE RSLANGUSEL, "   
lv_i_objvers  TYPE ROOSOURCE-OBJVERS, "   'A'
lv_not_exist  TYPE ROOSOURCE, "   
lt_e_t_hietext  TYPE STANDARD TABLE OF ROSHIETEXT, "   
lt_e_t_hienode  TYPE STANDARD TABLE OF ROSHIENODE, "   
lv_i_s_hiersel  TYPE ROSHIERSEL, "   
lt_e_t_foldert  TYPE STANDARD TABLE OF ROSFOLDERT, "   
lt_e_t_hieintv  TYPE STANDARD TABLE OF ROSHIEINTV. "   

  CALL FUNCTION 'RSA2_SERV_HIERTRANSFER_GET'  "
    EXPORTING
         I_OSOURCE = lv_i_osource
         I_OBJVERS = lv_i_objvers
         I_S_HIERSEL = lv_i_s_hiersel
    TABLES
         I_T_LANGU = lt_i_t_langu
         E_T_HIETEXT = lt_e_t_hietext
         E_T_HIENODE = lt_e_t_hienode
         E_T_FOLDERT = lt_e_t_foldert
         E_T_HIEINTV = lt_e_t_hieintv
    EXCEPTIONS
        INVALID_HIERARCHY = 1
        NOT_EXIST = 2
. " RSA2_SERV_HIERTRANSFER_GET




ABAP code using 7.40 inline data declarations to call FM RSA2_SERV_HIERTRANSFER_GET

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 OLTPSOURCE FROM ROOSOURCE INTO @DATA(ld_i_osource).
 
 
 
"SELECT single OBJVERS FROM ROOSOURCE INTO @DATA(ld_i_objvers).
DATA(ld_i_objvers) = 'A'.
 
 
 
 
 
 
 


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!