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

How to write an ABAP program to execute MDX Statement in BW?

Hi All,

How to write an ABAP program to execute MDX Statement in SAP BW?

We are asked to save MDX Statement nto database and then use RSR_MDX_TEST in an ABAP program. Can anybody share some tips and suggestion how to write this ABAP program?

Thanks,

Sapna

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2012 at 11:10 AM

    You can make use of the function module EXPORT_GET_DATA_FROM_MDX for executing MDX statements.

    In the T-code MDXTEST you can check your MDX codes and then the same need to be passed for the parameter PT_MDX_STATEMENT, for doing this you can define a work area of type BAPI6111MDX and append the statements

    Ex : wa_stmt TYPE BAPI6111MDX,

    it_stmt TYPE BAPI6111MDX.

    wa_stmt = 'SELECT'

    APPEND wa_stmt TO it_stmt.

    The parameter PT_MDX_STATEMENT need to be populated with this .

    the different table parameters need to be filled for this function module.

    Prathish.

    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.