on 2012 May 24 9:48 AM
Hello BW Community, what is the best way for call Bex Query result from ABAP program?
thanks
Request clarification before answering.
Hello Jan,
you can use the Function Module RS_VC_GET_QUERY_VIEW_DATA_FLAT to execute a query.
In this FM you can also pass Parameters to your query.
The result-Structure will give you a list off cells and a definition about your axis.
Kind regards,
Hendrik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jan,
I assumed, that you are running you BW with Release < 7.30. With 7.30 you will have a very easy access point by using the so called "Easy Queries": http://scn.sap.com/community/data-warehousing/netweaver-bw/blog/2012/02/17/my-first-steps-with-easy-...
WIth those, you will have a clear function module with a typed structure for your concrete query and you do not have to deal with cells, rows, axis and so on.
Kind regards,
Hendrik
Hi,
Can you please refer the following link regarding RRW3_GET_QUERY_VIEW_DATA and check whether it is relevant:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/b7a332352056a4e10000000a1553f6/frameset.htm
Thanks & Regards,
Sapna
Hello Jan,
the parameter e_axis_data has the informations about the rows and columns. Look in the debugger and you will see that AXIS = 0 is the column-axis and AXIS = 1 is the row-axis. Within this structure you will have a field called "SET" as internal table with the concrete data.
The structure within these data tables is organized by so called tupels. Each tupel represents one row and you have to fill it up with the cell-data.
Hope this helps.
Kind regards,
Hendrik
User | Count |
---|---|
86 | |
11 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.