cancel
Showing results for 
Search instead for 
Did you mean: 

Func. Module RSDRI_INFOPROV_READ

Former Member
0 Kudos

Hi,

I have an internal table containing 3 fields ; matnr, locno and country.

I need to pass these values to the function module RSDRI_INFOPROV_READ to retrieve values from the infocube based on the entries in the internal table. How do I go about it? Please help ASAP.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Debaprasad,

You basically need to store contents of your internal table in the I_T_RANGE parameter.

For example, you can store the matnr data this way (assuming the name of your internal table is IT_DATA):


DATA:  g_s_range       TYPE rsdri_s_range,
           g_t_range       TYPE rsdri_t_range.

DATA: l_s_data type line of <place the type of your internal table here>.

CLEAR g_s_range.
g_s_range-chanm    = '0MATERIAL'.
g_s_range-sign     = rs_c_range_sign-including.
g_s_range-compop   = rs_c_range_opt-equal.
g_s_range-low      =  l_s_data-matnr.
append g_s_range to g_t_range.

You can also check out the RSDRI_INFOPROV_READ_DEMO program in SE38 for an example of how to call the RSDRI_INFOPROV_READ function module.

Answers (0)