BEx Web Applications in BPS Web Interfaces

Hi all,
I need to make a BPS web interface which enables the business user to see data in the BW system while posting the budget items in BPS. This is to be done in the Web, and I have therefore tried to implement a solution for the customer following the instructions in the HowTo-paper: "How To.... Integrate BEx Web Applications into BPS Web Interfaces".
The report is displayed when the interface is executed, but the variable which I have included in the code does NOT have any effect on the BW query (which is a surprise to me) but rather only on the BPS Web Interface (which is no surprise to me).
The above results in two questions:
- What part of this code needs to be changed for the variable to take effect on the BW query as well as the BPS Web Interface:
<iframe
    id="BWReport01"
    name="BWQUERY"
    src="/sap/bw/BEx?
    cmd=ldoc&TEMPLATE_ID=ALLOK_CHECK2"
    width="1200"
    height="600">
    Frames are not supported
</iframe>
<script language="JavaScript" type="text/javascript">
    var frame  = document.getElementByld( 'BWReport03' );
    var url    = '/sap/bw/BEx?cmdldoc&TEMPLATEID=';
    var filter = '&FILTER_IOBJNM=0PROFIT_CTR&FILTER_COLLAPS=&FILTER_VALUE_EXT=';
    var '1000/'  = '';
    var appl   = 'ALLOK_CHECK2';
    var varvl  = '%=descr(VarvlSel1_pctr/value)%>';
    var convert = /\((.*)\)/;
    convert.exec(varvl);
    if ( RegExp.$1 != "") varvl = RegExp.$1;
    url = url + appl + filter + comp + varvl;
    url = url.replace(/ /,"");
    frame.src = url;
</script>
Particular areas where I am in doubt (in squared brackets):
[  var '1000/'  = ''; ]
[  var convert = /\((.*)\)/; ]
- has anyone had any experience in using the Selector Package (SEL_PACKAGE) rather than the Selector Variable Value (SEL_VARVL)? In case you have, how is it implemented in the HTML-code?
Looking forward to hearing from you guys soon.
Best regards
Rune Rygaard

Hi Rune,
Here's what I found - I'm not sure it will solve your problem, but maybe it can give you some hints:
<b><iframe
id="BWReport01"
name="BWQUERY"
src="/sap/bw/BEx?
cmd=ldoc&TEMPLATE_ID=ALLOK_CHECK2"
width="1200"
height="600">
Frames are not supported
</iframe></b>
I think the section above in bold has to be deleted and replaced by the one specified in section 3.3 of the how to paper: <iframe id=BWReport03" name="BWQUERY" src="/sap/bw/mime/....</iframe>. The reason is the your defintion will display the report, but will not take any variables into consideration.
Furthermore you're missing a '=' in your code (cmd=ldoc) - I marked it in bold below. What you could also do was to add an alert to display the URL generated by the javascript. I added that in bold as well. That can give you an idea of whats missing.
Hope this helps,
Jacob Lund - DK :o)
<script language="JavaScript" type="text/javascript">
var frame = document.getElementByld( 'BWReport03' );
var url = '/sap/bw/BEx?<b>cmd=ldoc</b>&TEMPLATEID=';
var filter = '&FILTER_IOBJNM=0PROFIT_CTR&FILTER_COLLAPS=&FILTER_VALUE_EXT=';
var '1000/' = '';
var appl = 'ALLOK_CHECK2';
var varvl = '%=descr(VarvlSel1_pctr/value)%>';
var convert = /\((.*)\)/;
convert.exec(varvl);
if ( RegExp.$1 != "") varvl = RegExp.$1;
url = url + appl + filter + comp + varvl;
url = url.replace(/ /,"");
<b>alert (url);</b>
frame.src = url;
</script>

Similar Messages

  • Response times using BEX/Web vs. BEX /Excel user interface

    Our customer in Sweden is currently rolling out SAP BW to local sales offices around the globe and they are having huge response time problems with the BEX/Excel interface running from Australia towards the BW servers in Sweden. If running the Web interface the response time is acceptable.
    Question: Is this problem caused purely by bandwidth limitations or is it the distance itself that is the problem. If they double their bandwidth capacity, will the response times using the BEx web interface be reduced by 50% or will it remain unchanged?
    /Fredrik Osterstrom, Capgemini,

    Hi,
    It is generally much slower to display queries using Excel than the HTML version because of the way they display data and the way they are designed/engineered.
    But generally of course, it should also be on an acceptable basis.
    If you still  could not figure out the problem, I advice you  to display the query using HTML version via Browser and then download to Excel aftewards. It is normally fast. This is just a work around till you figure out the probable cause. There are many factors that contribute to this.
    Try isolation technique.
    1.) Is the query slow on displaying using Excel on all desktop computers or only selected computers?
    2.) Is the desktop computer fast enough w/ ample memory to handle the processing?
    3.) Are there any programs running/installed on the computer which directly affects Excel processing?
    Hope I have helped, and if I did, please grant points!
    --Jkyle

  • To give value ranges in web interface builder in a BPS application

    Hi all,
    I want to give value range for an info-object in web interface builder when selecting a value range variable , but the web application is displaying only the 'from' field and I am not able to get the place to give 'to' for a complete range.
    Is there any other solution apart from creating an exit variable that reads from two other variables for 'from' and 'to'.
    plz help.

    Hi Chauhan,
        If you wish your user to input different values, then you have to provide "n" variables in the layout and read them in the exit variable! This method of reading user input is not adviced! Nevertheless, if you try solution described for first case, potentially in the range there could be "posting level" value(s) that was not wished.
      If these values fall under some range, it is possible to display the layout filtered with these selections
       For this you could provide two variables in the BSP-Selection section and in the BPS layout you would use a variable to type exit to read in the low and high values (that the user has selectedin BSP Page). In this way you could filter the contents of the layout with the multiple values for the "Posting level".
    Thanks 
      VArun

  • Open Bex workbook from BPS web interface,How hard it could be?

    Hi all,
        I want to add a link or function-button in my BPS web interface,hope it could open a query(excel analyser),I tried 2 methods as follow:
       1. MIME , It can only open a static excel file, not a analyser query. I gave up this method.
       2. I use the program RRMX_START_EXCEL and add a plan function which is a EXIT in BPS0,in my EXIT function I used some code in  RRMX_START_EXCEL,I test it in BPS0 ,it works ,it can open a analyser excel query.But when I put this plan function(including a parameter group ) in BPS_WB ,when I click the function-button in web interface, it crashed,says:
    Error when processing your request
    What has happened?
    The URL http://bw1.:8000/sap/bc/bsp/sap/zwebcaxa001_998/page1.htm was not called due to an error.
    The termination type was: TH_RES_FREE
    and some other Error infomation,
    Is it possible to realize my requirement? or Web interface and analyzer are just 2 total differrent things ,it is not possible to realize this?
    thanks all

    Hi Denny,
    Have a look at www.javascript.internet.com and do a search for "whatfile".....
    This should give you the javascript code whereyou can enter a file name (say an excel file name) and click a button to navigate to it.
    Although I have not tried exactly what you have asked, I have successfully used parts of this code to open specified files (excel files) on our local directory from a BPS planning web page.
    Obviously you will need to adapt the code to your specific evironment/situation...
    Good luck.
    Rael

  • Calling a separate BSP Page from a Web Application Builder BPS page.

    I have been creating a basic BPS application for manually entering data into BW.
    We are allowing users 2 options: 
    1. Manual Data entry via a web Page created in the Web Interface Builder.
    2. Via a Flat File using the process described in the "How To" Guide on how to load a flat file into BPS Web Page.  This was done in the Mime repository via a BSP application (transaction se80).
    I want to incorporate both method on a single web page (or group of linked pages) so that the user can choose which method that they want to use.
    My question is: How can I call the flat file loading screen (created in se80) from the Manual data entry screen that was created in Web Interface Builder?
    Thanks,
    Adam

    Adam,
    You dont have to create a new tab also. You can incorporate the newly created BSP page
    below the Manual Entry layout. Do the following step
    1. Create a text element below the layout in web application builder. Choose Edit long text
    2.insert this code
    <iframe id="Text86" border="true" name="upload4" src="/sap/bw/mime/bex/icons/pixel.gif" width="580" height="65"></iframe>
    <script language="JavaScript" type="text/javascript">
      var frame  = document.getElementById( 'Text86' );
      var url    = '/sap/bc/bsp/sap/z100bps001/upload_hours.htm';
    // set source attribute of iframe to new URL
      frame.src = url;
    </script>
    Now you should be able to the see the newly created BSP page below your layout.
    Coming to your other question on "hard coding" the answer is you shouldnt specify the absolute url, just specify the relative URL and system will take care of the rest.
    Eg. - '/sap/bc/bsp/sap/z100bps001/upload_hours.htm'
    Let me know if you need any help.
    Thanks,
    Praveen
    PS.Dont forget to reward points

  • Problems access to a web application (Web Interface or Web report)

    Hi,
    We found problems with the access to web application. Some users have problems with direct links to the web applications(Web Interface or Web reporting), when they click on the link an error message appears, the message displays the following text:
    "Cannot open file Bex?sap-language=ENbsplanguge=ENcmd=idoc_TE.."
    Clicking in details the message is "No Access to specified file"
    For this users the access to excel reporting is correct, the message appears when they click on the direct web links through the browser or directly in BW system, but if they type the URL they can access. Other users can use the direct web link without problems.
    I highly appreciate any help or idea about how to solve this issue.
    Thanks in advance.

    HI,
    please ask to your basis that check the language of every single user on su01 tx.
    This is the problem i think.
    Natalia.

  • Multiple BPS variables in Bex web report

    Hi Guys,
    I am trying to have a Bex report use the BPS variables in the web interface. I have managed to do so with 1 variable, but we have a number of variables.
    I have created the code below to get the result. however this doesn't seem to work.
    Can anyone help me with this issue.
    Gert van de Vreede
    <iframe
    id ="Z_WA_BPS_GRSALPR001"
    src="/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=Z_WA_BPS_GRSALPR001"
    style="width:1200;height:300">>
    </iframe>
    <script language="JavaScript" type="text/javascript">
    function varValueConvert(dispValue){
    /* Expected formatting of variable selector: Text(Key) or Key
    If there are more than one (...) expression the first is taken.
    var keySection = dispValue.match(/\(.*?\)/);
    if (keySection){
    var keyValue = keySection[0].replace(/\(|\)/g,"");
    alert(dispValue + ' : ' + keySection + " : " +keyValue);
    return keyValue;
    } else {
    alert(dispValue);
    return dispValue;
    var frame = document.getElementById( 'Z_WA_BPS_GRSALPR001' );
    var url = '/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=';
    var queryVar1 = '&VAR_NAME_1=0SALESORG&VAR_VALUE_EXT_1=';
    var queryVar2 = '&VAR_NAME_2=ZZHOUSE&VAR_VALUE_EXT_2=';
    var queryVar3 = '&VAR_NAME_3=ZZBRAND&VAR_VALUE_EXT_3=';
    var queryVar4 = '&VAR_NAME_4=ZZLINE&VAR_VALUE_EXT_4=';
    var queryVar5 = '&VAR_NAME_5=ZCOREC&VAR_VALUE_EXT_5=';
    var queryVar6 = '&VAR_NAME_6=ZSUBCAT&VAR_VALUE_EXT_6=';
    var queryVar7 = '&VAR_NAME_7=ZZMARCAT&VAR_VALUE_EXT_7=';
    var queryVar8 = '&VAR_NAME_8=0VERSION&VAR_VALUE_EXT_8=';
    var appl = 'Z_WA_BPS_GRSALPR001';
    var bpsVarvl1 = '<%=descr(salesorg_var/value)%>';
    var bpsVarvl2 = '<%=descr(House_var/value)%>';
    var bpsVarvl3 = '<%=descr(Brand_var/value)%>';
    var bpsVarvl4 = '<%=descr(Line_var/value)%>';
    var bpsVarvl5 = '<%=descr(Core_cat_var/value)%>';
    var bpsVarvl6 = '<%=descr(Sub_cat_var/value)%>';
    var bpsVarvl7 = '<%=descr(marcat_var/value)%>';
    var bpsVarvl8 = '<%=descr(VarvlSel7/value)%>';
    bpsVarvl1 = varValueConvert(bpsVarvl1);
    bpsVarvl2 = varValueConvert(bpsVarvl2);
    bpsVarvl3 = varValueConvert(bpsVarvl3);
    bpsVarvl4 = varValueConvert(bpsVarvl4);
    bpsVarvl5 = varValueConvert(bpsVarvl5);
    bpsVarvl6 = varValueConvert(bpsVarvl6);
    bpsVarvl7 = varValueConvert(bpsVarvl7);
    bpsVarvl8 = varValueConvert(bpsVarvl8);
    // create URL
    url = url + appl + 0SALESORG + bpsVarvl1 + ZZHOUSE + bpsVarvl2 + ZZBRAND + bpsVarvl3 + ZZLINE + bpsVarvl4 + ZCOREC + bpsVarvl5 + ZSUBCAT + bpsVarvl6 + ZZMARCAT + bpsVarvl7 + 0VERSION + bpsVarvl8;
    // remove possible white spaces
    url = url.replace(/ /,"");
    // alert('Generated URL: ' + url);
    // set source attribute of iframe to new URL
    frame.src = url;
    </script>

    Hi Gert,
    the following line is wrong:
    url = url + appl + 0SALESORG + bpsVarvl1 + ZZHOUSE +
    bpsVarvl2 + ZZBRAND + bpsVarvl3 + ZZLINE +
    bpsVarvl4 + ZCOREC + bpsVarvl5 + ZSUBCAT +
    bpsVarvl6 + ZZMARCAT + bpsVarvl7 + 0VERSION +
    bpsVarvl8;
    Try this:
    url = url + appl + '0SALESORG' + bpsVarvl1 + 'ZZHOUSE' +
    bpsVarvl2 + 'ZZBRAND' + bpsVarvl3 + 'ZZLINE' +
    bpsVarvl4 + 'ZCOREC' + bpsVarvl5 + 'ZSUBCAT' +
    bpsVarvl6 + 'ZZMARCAT' + bpsVarvl7 + '0VERSION' + bpsVarvl8;
    Regards
    Marc
    SAP NetWeaver RIG

  • How to find the size (and sizelimit) BPS web interface

    Hello.
    We have build an application with the SEM-BPS webinterface builder.
    In the past we had problems with the size off this application. After we had added some new tabs in the application the size limit had been exceeded and the web inteface could not been activated. So we had to remove the new tabs into a new webinterface.
    Now we have to add again some new tabs into the webinterface application. That brings up some questions.
    Wat is the sizelimit of the webinterface application?
    Can we change this limit?
    How can we know the size off the current application?
    How can we find out the size of a separate tab in the webinterface? (So that we can make a prediction of the size which will be added to the web interface)?
    Thanks and regards,
    Eldo.

    Trevor.Dennis wrote:
    John, are there already differences?  I thought 13.1 was mainly about retina display support, but I guess there would also be other fixes released while they were at it.
    Yes, definitely already differences. I sympathize with Photoshop instructors (online and offline).
    The headline change was Retina support but that was also made available to non-Cloud versions.
    Other Cloud-only changes in 13.1 are listed here
    http://helpx.adobe.com/photoshop/using/whats-new.html
    http://psd.tutsplus.com/articles/news/cs6_1/
    Non-Cloud CS6 users have been very vocal and disgruntled about some of these changes.

  • SEM-BPS 6.0 BPS_WB generate Web Interface BSP

    Hi all,
    We recently had a redirect of the portal connected to our NW04S BW development system and had worked thorugh the issues on the portal side so existing Iviews works (SEM-BPS 6.0). 
    We are now creating some new iview for a new applications but I cannot generate the BSP page.  BPS_WB say that the BSP was generated correctly but when I try to test it, it says that http entry is missing and would I like to add it and when I say I do, it fails since I cannot generate a node under SICF since I do not have the authorization.  I did an SU53 check and asked for 01 create on S_ICF_ADM but getting a lot of questions since 01 on S_ICF_ADM is reserved for Basis only on this project.
    Another thing we are also concerned with is that some system settings that need to be done on the BW side might now have been done although Basis said all entries are changed..
    I have to admit that the last time I worked with someone to set up portal connection to BPS was back in 2003 so I have to dig pretty deep into my memory and had been doing some quick searches but have not found anything obvious yet that would solve the regeneration issue except for the authorization addition which they are very hesitant about.
    Any information or thoughts on this issue / problem would be appreciated.
    Thansk,
    Mary

    Hello Mary,
    I still work on BCS, so dont have BPS here. What I can do is to give you a summary of those things I had done in the past. Maybe it helps?
    I gues you know that there are 2 diffren types of nodes: System nodes to enable connection to the web and the node for each web interface.
    The required system nodes are describes in OSS 517484. I guess you have released them? Since BW Release 3.5 the web interface works with HTMLB. I guess you have activated thise too?`So the last possibility is from my point of view the web interface itself.
    The node for the web interface existis already?
    /default_host/sap/bc/bsp/sap/<your_web_interface>
    In develop system the web interfaces will be activated manually normally. But in Prod automaticall because of not allowed customising. If the web interface has created such an entry already I think the only chance is to give the web interface another name in Development system - or to delete the existing node in the prod system (dangerous).
    If this is not your problem, maybe another consultant has an idea?
    regards
    Eckhard Lewin

  • Integrate WAD 7.0 Template into BPS Web Interface

    Dear all,
    We recently migrated to BW 7.01. We have an existing planning application running as a BPS Web Interface.
    I now want to integrate a query output (data and chart) by using a web template designed with WAD 7.0 into the existing BPS web interface. I know how to do this with a web template designed with WAD 3.5. There is also a How-to paper available that explains it for 3.5. I'm struggling now to do the same with WAD 7.0. The syntax for the URL generation changed, that's one problem. There maybe more when actually calling the web template from the web interface(?).
    I found some threads here in the forum dealing with this issue but no clear solution. Some posts even mentioned that integration of 7.0 web templates into BPS web interfaces is not possible at all. I would appreciate any information on this issue.
    Thanks in advance!
    Regards,
    Ulrich Meier

    Hello Ulrich,
    the 7.0 web templates run on your BI Java server which has a different host name (and port) than you BW ABAP server which run the BPS web interface. The servers are different in Dev/QA/Prod so you need to generate the URL dynamically.
    One way is to hardcode it in JavaScript. Something like: if CurrentDomain = ABAPDevDomain. Domain = JavaDevDomain. if CurrentDomain = ABAPQADomain. Domain = JavaQADomain. etc
    A fancy alternative would be to put the Java domain and port into an exit variable which you could include in the BPS web interface (in a hidden DIV tag for example). Fill the exit variable using function RSWR_GET_DEPLOY_PORTAL_INFO. Then your JavaScript can pick up this value to generate the proper URL for the web template.
    Regards,
    Marc
    SAP Techology RIG
    PS: Posting JavaScript directly is limited for security reasons (certain JS keywords are not allowed). You can put your JS into a text file and attach it to your posting.

  • How To Run Planning sequences automatically a BPS 3.5 web interface

    Hi all
    We are using BI on version 7.0 (Netweaver 2004s) yet since other planning applications were used in BW-BPS we are still using it, anyway when creating planning folders I can set son sequences to run before layout display. In web interface (via BPS_WB) this option is not available as a standard.
    I followed the steps from teh how to paper "How to run planning sequences on save and other events (WEB)" and even named my subcoponents as described in the document yet it doesnt work,
    I already checked the source code for the sub class and names of the components. does anyone have an Idea of how can I make it work?
    Cheers!!!

    I used the name MyLayout_before for the but_function subcomponent

  • LIST OF VALUES not Populating in BPS WEB INTERFACE ( LAYOUTS )

    Hi BI Guru's
    I have created a WEB interface for BPS in BI ( version 7.0) .  But when i execute this in internet explorer, I do not get the LIST OF VALUES for Material. 
    When I click on "input help" the system open a new window for "Value selection".  When I specify the material code, it gives me blank LIST OF VALUES.
    But it is working for other fields like Customer, UOM in the same layout.
    Please suggest some solution.
    Thanks,
    Nilesh Labde

    hi,
    Thanks for the reply.
    Master data is avaliable for the Material Code.  The problem is in Internet Explorer and not in SAP GUI .
    If i run Planning folder for the same layou in SAP GUI it is working fine.

  • Query in BPS Web Interfaces - Open in New Window

    Hello,
    I am trying to insert a BW Query into a web interface but have it launch in a new window.  I know how to have it open in the web interface by using a text box.  In July of 05 I found an answer from Marc Bernard on a similar topic, but with a query returning variables.  When I tried to use the code, I got an error.  I know that I can create a URL with Target="_Blank" but I don't want to hard code the full URL of the web report because the default host and port will change with the systems.  I tried the following URL in hopes that would inherit the system but it doesn't work.
    http://<default_host>:<default_port>/sap/bw/BEx?cmd=ldoc&infocube=EPABUDGET&query=EPA322BR
    Here is the code I have for the report.   Can someone tell me how to open in a new window or how to get the URL to work?
    <iframe
        id="BWReport01"
        name="BWQUERY"
        src="/sap/bw/BEx?cmd=ldoc&infocube=EPABUDGET&query=EPA322BR"
        width="900"
        height="800">
    Frames are not supported.
    </iframe>
    Thanks,
    Cherie

    Hi Cherie,
    you are on the right track. Just use a href="/sap/bw/bex..." target="_blank". If you need the URL to be more dynamic, use javascript with window.open.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Error: BeX-Web Application Error

    Hi All,
                            while running the dashboard which is integrated with Enterprise portal, we are getting the below error.These dashboards consumes data from the BEX query  directly using the SAP Netweaver connection Type.
      Error Desc:   BeX-Web Application Error
    Please find the more details in the attached sheet. can any one help me out to resolve this issue

    Hi
    Check weather BO system is up or not

  • Error in BEx Web Application Iview in Portal

    Hello All,
    I am trying to access a query from the BI NW2004s (Ver 7.0)in EP 7.0 and i have created a BEx Web application Iview and have specified the proper Query/Template , but i am not able to preview the output on Iview and getting the following error in Iview
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: com.sap.ip.bi.web.portal.integration.launcher.
    Exception id: 05:52_11/10/06_0006_17835450
    See the details for the exception ID in the log file
    Further to add is that when i access the same BI application using the URL Iview, it's wokring absolutely fine. Can somebody identify the problem with the BEx Web Application Iview and suggest a suitable remedy for the same??.
    Thanks in advance.
    Regards,
    Sarabjeet.

    Hello,
    You can download these components from Service Market Place (service.sap.com/swdc) and:
    Download -> Support Packages and Patches -> Entry by Application Group -> "Support Packages and Patches" -> "SAP NetWeaver" -> "SAP NETWEAVER" -> "SAP NETWEAVER 2004S" -> "Entry by Component" -> "BI Java":
    BI BASE SERVICES 7.00
    BI WEB APPLICATIONS 7.00
    You have to download the SP that equals your APAP SP.
    Normally, these SCAs will be installed with installation of "BI Usage Type" of the J2EE engine.
    Regards, Karol Kalisz
    SAP BI Development

Maybe you are looking for