Hi all,
I have successfully implemented the "How to.." document with BPS variables feeding the Bex filters, but can anyone out there help me understand how to launch the Bex application into a new window rather than it being embedded in a frame (inside the planning layout, that is)?
I am trying to set up a button to press in order to launch the report in a new window....
The current code in the text component (in BPS_WB) is as follows:
<iframe id="BWReport03"
name="BWQUERY"
src="/sap/bw/mime/bex/icons/pixel.gif"
width="1000" height="600"></iframe>
<script language="JavaScript" type="text/javascript">
var frame = document.getElementById( 'BWReport03' );
var url = '/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=';
var filter = '&FILTER_IOBJNM=MYINFOOBJECT&FILTER_COLLAPS=&FILTER_VALUE_EXT=';
// Example using fiscal year 2004 and variant K4: K4/2004 => comp = #K4/#
var comp = '';
var appl = 'MYBEXAPPLICATION';
var varvl = 'MYVARIABLE';
// Option: Adjust the '
SELECT
' to your local language
if (varvl != "" && varvl != "-- SELECT --"){
// expected formatting of variable selector: Text(Key) or Key
var convert = /\((.*)\)/;
convert.exec(varvl);
// If there is value in brackets it is the key
if ( RegExp.$1 != "") varvl = RegExp.$1;
// create URL
url = url + appl + filter + comp + varvl;
// remove possible white spaces
url = url.replace(/ /,"");
// set source attribute of iframe to new URL
frame.src = url;
}
</script>