cancel
Showing results for 
Search instead for 
Did you mean: 

Web reporting - calling two seperate javascript commands

Former Member
0 Kudos

I have a javascript funtion which hides a web item and then calls up the value help / filter popup.(see below)

If I include an alert command in between both the hide and popup commands work. If I exclude the alert command only the second popup command works.

How can I perform the hide and popup commands without the alert comand.

function TWOCOMS3()

{

SAPBWOpenURL(SAP_BW_URL_Get() +'&ITEM=FILTER_1&HIDDEN=X');

alert("message 1");

SAPBWOpenURL(SAP_BW_URL_Get() +'&CMD=PROCESS_HELP_WINDOW&DATA_PROVIDER=DATAPROVIDER_1&HELP_SERVICE=DP_VIEW_FILTER&IOBJNM=Z_VENDOR')

}

Thanks

-Hans

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for the response Heike,

I had tried this approach already. However when I call the function the Filter object is hidden but the help popup does not appear. I've also tied hide and drilldown and these with the same result,

The code that you suggested creates the following URL:

http://huey01.worldwide.bbc.co.uk:8000/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&ITEM=FILTER_1...

-Hans

Former Member
0 Kudos

Hi Hans,

you should use a command sequence to fire both commands at once. Remember:SAPBWOpenURL will fire an URL to the server and the page gets rendered new.

Use a command sequence like

function TWOCOMS3()

{

SAPBWOpenURL(SAP_BW_URL_Get() +'&ITEM=FILTER_1&HIDDEN=X&CMD_1=CMD%3dPROCESS_HELP_WINDOW%26DATA_PROVIDER%3dDATAPROVIDER_1%26HELP_SERVICE%3dDP_VIEW_FILTER%26IOBJNM%3dZ_VENDOR')

}

Heike