SAP RSSEM_INFOPROV_READ_RFC_2 Function Module for Read transaction data with hierarchy node selection (RFC-capable)









RSSEM_INFOPROV_READ_RFC_2 is a standard rssem infoprov read rfc 2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read transaction data with hierarchy node selection (RFC-capable) 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 rssem infoprov read rfc 2 FM, simply by entering the name RSSEM_INFOPROV_READ_RFC_2 into the relevant SAP transaction such as SE37 or SE38.

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



Function RSSEM_INFOPROV_READ_RFC_2 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 'RSSEM_INFOPROV_READ_RFC_2'"Read transaction data with hierarchy node selection (RFC-capable)
EXPORTING
I_INFOPROV = "InfoProvider
* I_AUTHORITY_CHECK = "DM: Type of Authorization Check
* I_USE_AGGREGATES = "Boolean
* I_PACKAGESIZE = -1 "
* I_KEYDATE = SY-DATUM "Date and Time, Current (Application Server) Date
* I_CALLER = RSDRS_C_CALLER-RSDRI "General Indicator
IX_ADD_INFO = "
IX_SELDR = "

IMPORTING
E_END_OF_DATA = "Boolean
E_RFCDATA_UC = "

CHANGING
C_FIRST_CALL = "Boolean

TABLES
I_T_SFK = "BW Data Manager: List of Key Figures
* I_T_RANGE = "BW Data Manager: Range List
* I_T_SFC_MOD = "BW Data Manager: List of Characteristics

EXCEPTIONS
SHFC_HIENODE = 1 NO_NCUM_QUERY_ALLOWED = 2 WRONG_INPUT = 3 METADATA_ERROR = 4 INHERITED_ERROR = 5 NESTED_QUERY_ERROR = 6 INTERNAL_ERROR = 7 NO_AUTHORIZATION = 8
.



IMPORTING Parameters details for RSSEM_INFOPROV_READ_RFC_2

I_INFOPROV - InfoProvider

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

I_AUTHORITY_CHECK - DM: Type of Authorization Check

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

I_USE_AGGREGATES - Boolean

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

I_PACKAGESIZE -

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

I_KEYDATE - Date and Time, Current (Application Server) Date

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

I_CALLER - General Indicator

Data type: FLAG
Default: RSDRS_C_CALLER-RSDRI
Optional: Yes
Call by Reference: No ( called with pass by value option)

IX_ADD_INFO -

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

IX_SELDR -

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

EXPORTING Parameters details for RSSEM_INFOPROV_READ_RFC_2

E_END_OF_DATA - Boolean

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

E_RFCDATA_UC -

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

CHANGING Parameters details for RSSEM_INFOPROV_READ_RFC_2

C_FIRST_CALL - Boolean

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

TABLES Parameters details for RSSEM_INFOPROV_READ_RFC_2

I_T_SFK - BW Data Manager: List of Key Figures

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

I_T_RANGE - BW Data Manager: Range List

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

I_T_SFC_MOD - BW Data Manager: List of Characteristics

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

EXCEPTIONS details

SHFC_HIENODE - For each characteristic in SHFC there must be at least one node selection

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

NO_NCUM_QUERY_ALLOWED - No stock queries supported.

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

WRONG_INPUT -

Data type:
Optional: No
Call by Reference: Yes

METADATA_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INHERITED_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NESTED_QUERY_ERROR -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSSEM_INFOPROV_READ_RFC_2 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_i_t_sfk  TYPE STANDARD TABLE OF RSDRI_T_SFK, "   
lv_i_infoprov  TYPE RSINFOPROV, "   
lv_c_first_call  TYPE RS_BOOL, "   
lv_shfc_hienode  TYPE RS_BOOL, "   
lv_e_end_of_data  TYPE RS_BOOL, "   
lt_i_t_range  TYPE STANDARD TABLE OF RSSEM_T_RANGE, "   
lv_e_rfcdata_uc  TYPE XSTRING, "   
lv_i_authority_check  TYPE RSDRI_AUTHCHK, "   
lv_no_ncum_query_allowed  TYPE RSDRI_AUTHCHK, "   
lt_i_t_sfc_mod  TYPE STANDARD TABLE OF RSDRI_T_SFC, "   
lv_wrong_input  TYPE RSDRI_T_SFC, "   
lv_i_use_aggregates  TYPE RS_BOOL, "   
lv_i_packagesize  TYPE I, "   -1
lv_metadata_error  TYPE I, "   
lv_i_keydate  TYPE SY-DATUM, "   SY-DATUM
lv_inherited_error  TYPE SY, "   
lv_i_caller  TYPE FLAG, "   RSDRS_C_CALLER-RSDRI
lv_nested_query_error  TYPE FLAG, "   
lv_ix_add_info  TYPE XSTRING, "   
lv_internal_error  TYPE XSTRING, "   
lv_ix_seldr  TYPE XSTRING, "   
lv_no_authorization  TYPE XSTRING. "   

  CALL FUNCTION 'RSSEM_INFOPROV_READ_RFC_2'  "Read transaction data with hierarchy node selection (RFC-capable)
    EXPORTING
         I_INFOPROV = lv_i_infoprov
         I_AUTHORITY_CHECK = lv_i_authority_check
         I_USE_AGGREGATES = lv_i_use_aggregates
         I_PACKAGESIZE = lv_i_packagesize
         I_KEYDATE = lv_i_keydate
         I_CALLER = lv_i_caller
         IX_ADD_INFO = lv_ix_add_info
         IX_SELDR = lv_ix_seldr
    IMPORTING
         E_END_OF_DATA = lv_e_end_of_data
         E_RFCDATA_UC = lv_e_rfcdata_uc
    CHANGING
         C_FIRST_CALL = lv_c_first_call
    TABLES
         I_T_SFK = lt_i_t_sfk
         I_T_RANGE = lt_i_t_range
         I_T_SFC_MOD = lt_i_t_sfc_mod
    EXCEPTIONS
        SHFC_HIENODE = 1
        NO_NCUM_QUERY_ALLOWED = 2
        WRONG_INPUT = 3
        METADATA_ERROR = 4
        INHERITED_ERROR = 5
        NESTED_QUERY_ERROR = 6
        INTERNAL_ERROR = 7
        NO_AUTHORIZATION = 8
. " RSSEM_INFOPROV_READ_RFC_2




ABAP code using 7.40 inline data declarations to call FM RSSEM_INFOPROV_READ_RFC_2

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.

 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_packagesize) = -1.
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_keydate).
DATA(ld_i_keydate) = SY-DATUM.
 
 
DATA(ld_i_caller) = RSDRS_C_CALLER-RSDRI.
 
 
 
 
 
 


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!