cancel
Showing results for 
Search instead for 
Did you mean: 

How to get navigation state

dominik_klaffke
Participant
0 Kudos

Hi all,

I would like to get the navigation state of a query to call the 'Web Service for Accessing Query Data'.

In the documentation at http://help.sap.com/saphelp_nw04/helpdata/en/d8/3bfc3f8fc2c542e10000000a1550b0/frameset.htm

there is a parameter called 'Parameter' that allows you to set Data Provider Commands, i.e. the navigation status. But how do I get it? Within a BeX Web Application, when someone fixes a certain column or does something similar - how do I get this information? For each web item I can access it's attributes but how do I get the navigation status to send it to the 'Query'-web service?

Any ideas?

Dominik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dominik,

you can get the navigation state of a specific data provider by the java script function SAPBWGetDataProviderDimensions(dataprovider). It returns an array consisting of navigation state and other information. Have a search for the js function to get the format of the returned array.

Greetings,

Daniel

dominik_klaffke
Participant
0 Kudos

Hi Daniel,

thanks for your help. I can access the array with that Javascript function. But I do not really understand in which format the Query web service needs the parameter.

The parameter "parameter" (of the query web service) expects an internal table with lines as name-value pairs. But if I have a look at the documentation for Function SAPBWGetDataProviderDimensions at

http://help.sap.com/saphelp_nw04/helpdata/en/af/00453c3ff4110ee10000000a11405a/content.htm

I don't understand how to fill the parameter table with name-value pairs that make any sense. Do you have some better documentation?

Thanks a lot and best regards,

Dominik

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dominik,

as I understood correctly the documentation at http://help.sap.com/saphelp_nw04/helpdata/en/76/80a1393e3a6942e10000000a11402f/frameset.htm you are able to send parameters to the web service. These parameters seem to be the same as the parameters for a SAP BW URL (see the <SAP_BW_URL> command). With this command you can (e.g.) call another template (<SAP_BW_URL CMD=LDOC TEMPLATE_ID=YOURTEMPLATE>) or set a filter (<SAP_BW_URL CMD=LDOC DATA_PROVIDER=DP_1 FILTER_IOBJNM=0DATE FILTER_VALUE_EXT=2006*> to filter Data Provider 1 with 0DATE info object with 2006).

You can have a look at the documentation for the <SAP_BW_URL> command. And with the help of the javascript function SAPBWGetDataProviderDimensions you can use the field IOBJNM to set the value as you like.

I hope I could help a bit.

Greetings,

Daniel