Skip to Content
Former Member
Mar 17, 2009 at 02:48 PM

Query with variant from ABAP



I need to execute a BW-query from an Abap-report.

I tried it already with function module 'RRW3_GET_QUERY_VIEW_DATA' and with classes / objects 'CL_RSR_REQUEST' resp. 'CL_RSR_DATA', but:

I want to use the query with a variant, which could be found in table RSRPARAMETRIZA.

(Btw: even with a variant in table RSRVARIANTDIR I don't get the results wanted...)

Is there a direct way to call a BW-query with a variant from Abap?

Alternatively: How do I get the variant-contents? Is there a 'universal' way to work with both kinds of variants? (RSRVARIANTDIR / RSRPARAMETRIZA)

Thanks in advance.