Skip to Content
0
Former Member
Nov 28, 2006 at 02:39 PM

WAD: setting properties without using SAPBWOpenURL?

34 Views

Hi,

I was wondering if it is possible to set properties of web items without having to recall the actual webpage?

The reason why I want to do this is because I have a hidden item of the type CL_RSR_WWW_ITEM_LABEL which I use to put info in (in its caption). Since it's not visible to the user, he mind find it anoying that the page does a refresh when there are no visible changes to it.

Now I have something like this in my java-code to set the content of the caption of that label:

var temp = a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k;

var prop = SAPBWGetItemProp("TABBOOKMARK");

if (prop != null)

{

for (i = 1; i < prop.length; i++)

{

if (prop<i>[0] == "CAPTION")

{

if (prop<i>[1] != "")

{

var str = prop<i>[1];

if (str != temp)

{

var url = SAP_BW_URL_Get() + '&amp;ITEM=TABBOOKMARK' + '&amp;CMD=SET_PROPERTIES&amp;CAPTION='+temp;

SAPBWOpenURL(url);

}

}

else

{

var url = SAP_BW_URL_Get() + '&amp;ITEM=TABBOOKMARK' + '&amp;CMD=SET_PROPERTIES&amp;CAPTION='+temp;

SAPBWOpenURL(url);

}

}

}

}

Is there another way to achieve the same goal?

thanks in advance,

Tom