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

Use FM rsdri_infoprov_read for different cubes


I'm working on a BW35 system and want to use FM RSDRI_INFOPROV_READ to read data from <b>DIFFERENT</b> cubes. This means that the parameter I_INFOPROV is not a fixed value but a variable. As consequence the itab E_T_DATA can have different structures as well.

I know the structure of the itab should look like /BI*/V<cube>2 and I have tried FIELD SYMBOLS and the CREATE DATA statement, but I got stuck!

Has anybody a source example or can anybody help me to declare the itab thus I can use it in a loop structure after the function module call?

Thanks in advance,

Patrick van Os

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 24, 2005 at 07:09 AM

    Hi Patrick,

    your create data statement should look like this.

    data: l_dataref type ref to data,

    l_cube(30) type c.

    field-symbols: <it_tab> type standard table.

    l_cube = '/BI*/V<CUBE>2'.

    create data l_dataref type table of (l_cube).

    assign l_dataref->* to <it_tab>.

    This creates you a table <it_tab> of the structure of the cube. And as you do it with the variable l_cube the table will be of a dynamic structure.



    Add a comment
    10|10000 characters needed characters exceeded

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.