Skip to Content
author's profile photo Former Member
Former Member

Filtering of data while reading with "RSDRI_INFOPROV_READ" from infocube.

Hi all,

I am working with a function module "rsdri_infoprov_read" to read data from multi provider. Here i am facing a problem with the parameter 'i_t_range' - select options, I have filled elements of this parameter, but regardless of my selection it brings some more data from cube. It would be so helpful for me if somebody can can have a look at it. The value apppending to i_t_range is as shown below,

  • plant is the selectio screen input.

LOOP AT s_plant.

g_s_range-chanm = 'GCSLOCT'.

g_s_range-sign = 'I'.

g_s_range-compop = 'EQ'.

g_s_range-low = s_plant-low.

APPEND g_s_range TO g_t_range.

ENDLOOP.

  • material is the selectio screen input for which product.

LOOP AT i_t_materials.

g_s_range-chanm = 'GCSMATE'.

g_s_range-sign = 'I'.

g_s_range-compop = 'EQ'.

g_s_range-low = i_t_materials-sub_type.

APPEND g_s_range TO g_t_range.

ENDLOOP.

  • version is the planning book version constant.

g_s_range-chanm = 'GCSPLVER'.

g_s_range-sign = 'I'.

g_s_range-compop = 'EQ'.

g_s_range-low = version.

APPEND g_s_range TO g_t_range.

ENDLOOP.

  • week is the selectio screen input for period.

g_s_range-chanm = '0CALWEEK'.

g_s_range-sign = 'I'.

g_s_range-compop = 'BT'.

g_s_range-low = s_period-low.

g_s_range-high = s_period-high.

APPEND g_s_range TO g_t_range.

It should fetch data for the plant which i given in s_plant-low(select option) only but it returns other plants too in the output internal table e_t_data.So it effects the perfomance and here i need to fliter the other plants while reading itself.

This is for plant, but coming to other inputs like material,version and period into the i_t_range table and for which it returns the corrct values only.The problem's with the plant input selection only.

I hpe you guys can easilyhelp me with this,,

thanks in advance for all.

Regards

ashir ck

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2010 at 01:34 PM

    Please Help....!!!

    I've been trying hard but i am not able to figure this out as i am a fresher in abap....

    Regards

    Ashir

    Edited by: ashir.ck on Oct 21, 2010 5:38 PM

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Just as double check,

      Put in a breakpoint after it gets out of the Loop at S_plant and check what is in table g_t_range. Maybe something there is a value in there that you are not expecting.

      • plant is the selectio screen input.

      LOOP AT s_plant.

      g_s_range-chanm = 'GCSLOCT'.

      g_s_range-sign = 'I'.

      g_s_range-compop = 'EQ'.

      g_s_range-low = s_plant-low.

      APPEND g_s_range TO g_t_range.

      ENDLOOP.

      PUT A BREAKPOINT HERE

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.