cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting the Data Provider in WEB

Former Member
0 Kudos
189

Hi,

Does anyone know if it is possible to reset the data provider based on a certain value selected in a dropdown box.

THnaks,

Dan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dan,

yes thats possible. Please have a look on the online documentation:

http://help.sap.com/saphelp_bw33/helpdata/en/bd/43143c1ab8ff1ae10000000a11405a/frameset.htm

You can use views or queries for reinitializing the data provider. If you want the drop-Down-Box to show the actual used query you can use Javascript and the textelement web item (use: REPTNAME). This is not possible for views. A possibility for views would be to store the actual selected view as a custom attribute of the web-item table and read this information via JavaScript function SAPBWGetItemProp .

Regards

Heike

Former Member
0 Kudos

Hi Heike,

We tried using the reset data provider in javascript and got it to work to a certain point. We were wondering if you could do this somewhere within the CL_RSR_WWW_MODIFY_TABLE class?

Also, could you provide more details around using the JavaScript function SAPBWGetItemProp to solve this problem.

Thanks,

Dan

Former Member
0 Kudos

Hi Dan,

I'm not sure what you want to do with the MODIFY_TABLE class. You habve to explain your scenario in more detail.

For the Javascript-Function I would recommend to read the online documentation:

http://help.sap.com/saphelp_bw33/helpdata/en/09/0b453c8bf3f30ee10000000a11405a/frameset.htm

And an example where this functionality is used from the online documentation:

http://help.sap.com/saphelp_bw33/helpdata/en/52/5f3f88eac08748b4dd134285d6bc32/frameset.htm

Regards

Heike