Custom parameters in URL with BexWeb (WAD/Web template)

Hello all,
I've been reading a lot in this forum, but I haven't been able to do what I want to do.
I want to insert a custom parameter in the URL as we made with BW 3.5, and then read it.
I finally think it's something about the command SET_VARIABLES_STATE, but I cannon get it work.
In the template I have only been able to insert commands under the Web Template element (either before first display and before first rendereing, both with the same results). I've also tried several types of commands.
The XHTML generated is as follows:
                <bi:WEB_TEMPLATE_ACTIONS type="COMPOSITE" >
                    <bi:ACTION_BEFORE_FIRST_RENDERING type="COMPOSITE" >
                        <bi:INSTRUCTION >
                            <bi:SET_VARIABLES_STATE >
                                <bi:VARIABLE_VALUES type="ORDEREDLIST" >
                                    <bi:VARIABLE_VALUE type="COMPOSITE" index="1" >
                                        <bi:VARIABLE value="ZSESION" text="ZSESION"></bi:VARIABLE>
                                        <bi:VARIABLE_TYPE type="CHOICE" value="VARIABLE_INPUT_STRING" >
                                            <bi:VARIABLE_INPUT_STRING value="ZSESION"></bi:VARIABLE_INPUT_STRING>
                                        </bi:VARIABLE_TYPE>
                                    </bi:VARIABLE_VALUE>
                                    <bi:VARIABLE_VALUE type="COMPOSITE" index="2" >
                                        <bi:VARIABLE value="ZSESION2" text="ZSESION2"></bi:VARIABLE>
                                        <bi:VARIABLE_TYPE type="CHOICE" value="VALUE_SET_VARIABLE" >
                                            <bi:VALUE_SET_VARIABLE value="ZSESION2"></bi:VALUE_SET_VARIABLE>
                                        </bi:VARIABLE_TYPE>
                                    </bi:VARIABLE_VALUE>
                                    <bi:VARIABLE_VALUE type="COMPOSITE" index="3" >
                                        <bi:VARIABLE value="ZSESION3" text="ZSESION3"></bi:VARIABLE>
                                        <bi:VARIABLE_TYPE type="CHOICE" value="TEXT_VARIABLE" >
                                            <bi:TEXT_VARIABLE value="ZSESION3"></bi:TEXT_VARIABLE>
                                        </bi:VARIABLE_TYPE>
                                    </bi:VARIABLE_VALUE>
                                </bi:VARIABLE_VALUES>
                            </bi:SET_VARIABLES_STATE>
                        </bi:INSTRUCTION>
                    </bi:ACTION_BEFORE_FIRST_RENDERING>
                </bi:WEB_TEMPLATE_ACTIONS>
I pass it in the URL this way:
&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=010/2010&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=ZSESION
Also, I want to read it using the ABAP interface IF_BICS_CONS_WEBITEM_CUST_EXIT, method EXECUTE.
I wonder if it's possible that, once the command parameter works, that the value of my parameters arrives here in the I_XML in parameter.
I've also read about standard class CL_RSWR_SERVICES, but I don't really want to debug a std class and even less to enhace it ...
PD: This variable ZSESION does not exist in any query, and we don't want it to exist, as it's only necessary for integration in the intranet.
Thanks to all,
Rafa
Edited by: Rafael LLabrés Pérez on Sep 28, 2011 3:54 PM

Hi,
It is possible in 7.0, but unfortunately it is a lot more complicated than i 3.x. There are quite a few examples here:
http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/content.htm
I used it in a case where I wanted to embed a Web template in a BPS application and pass characteristic filters from the BPS application to the web template - similar to your requirements. Basically you need the following just to restrict one characteristic :o(
&BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
&BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING
&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=PDS06
&BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=0D_PH2
I could only get it to work with one characteristic and I suspect, that the reason is that the URL simply gets to long (very quickly). You have to repeat the above for every characterstic you want to use :o(
Hth,
Jacob

Similar Messages

  • Passing parameters from an URL to a WAD Web Template 7.0

    Hi guys, I need to pass parameters from an URL to a web template created with WAD 7.0. We need to open a template with certain filters starting from a link button located on an Xcelsius Dashboard. Our customer wants a web template to be opened with the filters defined within the Xcelsius
    The idea is to run the template with the filters defined in the URL. I know this was incredibly easy with WAD 3.x, but I didn't find any suitable solutions to use with WAD 7.0.
    What is the easiest way to do this with WAD 7.0?
    Thanks in advance and regards.
    Fabio Cristi

    Hi,
    It is possible in 7.0, but unfortunately it is a lot more complicated than i 3.x. There are quite a few examples here:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/ef05462480025ae10000000a1553f7/content.htm
    I used it in a case where I wanted to embed a Web template in a BPS application and pass characteristic filters from the BPS application to the web template - similar to your requirements. Basically you need the following just to restrict one characteristic :o(
    &BI_COMMAND_1-BI_COMMAND_TYPE=SET_SELECTION_STATE
    &BI_COMMAND_1-TARGET_DATA_PROVIDER_REF_LIST-TARGET_DATA_PROVIDER_REF_1=DP_1
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1=SELECTION_INPUT_STRING
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-SELECTIONS-SELECTION_1-SELECTION_INPUT_STRING=PDS06
    &BI_COMMAND_1-CHARACTERISTICS_SELECTIONS-CHARACTERISTIC_SELECTIONS_1-CHARACTERISTIC=0D_PH2
    I could only get it to work with one characteristic and I suspect, that the reason is that the URL simply gets to long (very quickly). You have to repeat the above for every characterstic you want to use :o(
    Hth,
    Jacob

  • TR with WAD web templates

    Dear All,
           I need to collect WAD web templates in a TR.
           Please suggest me the best way to collect them.
           I was trying with transport connection option in RSA1. But it looks like not all the web items are getting collected.
           Thanks in advance.
    Regards,
    Anwar

    Hi Anwar,
    Before collecting the objects into a transport, we should follow the sequence, if you will miss the sequence then you are unable to collect the objects into transport request.
    Please let me know are you following the sequence while collecting the objects into transport request. if you will not follow the sequence,first collect the objects in a sequnece.
    Step1--> Once you have that, transport your base level objects - Infoobjects, DSO & Cube structures.
    Step2--> Then you can transport the Update rules, transfer rules, transformations for the above..
    Step3--> And finally, the infopackages and DTPs.
    By using RSA1--> choose -->Transport connnection option in modeling tab. And Drag the objects which you want to collect into transport.
    Please let me know, stilly ou are facing any issues.
    Thanks,
    Premalatha.C

  • About the top N condition in WAD web template

    Hi all experts,
    I'm facing a problem in my WAD web template. Hope you guys can give me a hand.
    In my web template, there is analysis item A and B.
    Table A are used to display top 3 customers(char) with highest purchase rate % (KF), I'm using top N condition to select top 3 customers.
    And table B is to show all customers with purchase rate, sorted from highest purchase rate to lowest (logic:- sort the KF(purchase rate) in descending order)
    The problem is when there is many customers with purchase rate = 100%(more than 20 customers), then for the 1st-3rd customers of table A and B, the selected and sorted customers results are not the same, shouldn't that they should be identical for the 1st three rows as they are trying to show customers with highest purchase rate? even though table A is using top 3 condition and table B is using descending sorting for purchase rate.
    For example:- Top 3 customers in table A and all customers in table B
    Table A                                            
    Customer       Purchase rate             
    c3                  100%                             
    c1                  100%                            
    c5                  100%                                                                               
    Table B
    Customer    Purchase rate
    c2              100%
    c3              100%
    c4              100%  
    c1              100%
    c5              100%
    c6              81%
    c7              58%
    In this example, table a and b have selected different customers for 1st to 3rd position, i'm trying to make them showing identically. Any suggestion?
    Perhaps you guys can give me some idea on how does the top N condition determine the TOP 3 customers if there is many customers with 100% purchase rate as in this case.
    Thanks a lot,
    Eric
    Edited by: Eric Tan on Aug 12, 2008 10:49 AM

    When u create conditions, you have tab called CHARACTERISTIC ASSIGNEMENT.& other is GENERAL..which is like in what way you want to create conditions i.e based on which characteristic or whole characteristic in rows etc...you try choosing those option in that tab, so that you can find some ideas..

  • The changes made in the WAD web template is not replicating on web browser

    Hi,
    We are using BI 7.0 WAD. Suppose if i create a one web template and if i run it ...it is working fine.
    If i change the present web template and if i do change anything on the present web template and if run this web template it is giving the previous result....it is not reflecting the present changes.
    The changes made in the WAD web template is not replicating on web browser result.
    I went to transaction SMICM, then choose "Goto" from the top menu. From there, go to HTTP Server Cache, then choose Invalidate, then choose Global in system. With this thing also it didnt slove.
    thanks

    Clear your browser cache also and see if the changes are visible.....
    Arun

  • Changes made in the WAD web template is not replicating on web browser

    Hi,
    We are using BI 7.0 WAD. Suppose if i create a one web template and if i run it ...it is working fine.
    If i change the present web template and if i do change anything on the present web template and if run this web template it is giving the previous result....it is not reflecting the present changes.
    The changes made in the WAD web template is not replicating on web browser result.
    Thanks in adv
    pinky

    Just to add.
    WAD templates are stored as HTML in the HTTP cache.
    Whenever you make changes to the template - it is good practice to delete / invalidate the HTTP Server cache.
    This can be done from
    SMICM --> Goto (menu bar ) --> HTTP Server cache --> Invalidate --> GLobal
    ust to make this thread complete..
    However this is usually done for 3.x web templates since they run off the ABAp stack - not too sure about the JAVA stack - guess portal cache has to be cleared too..

  • Custom SharePoint Master Page with Content Editor Web Part.

    Hi All,
    I have created a custom SharePoint Master Page to apply within my SharePoint Site and it was a success.
    When I want to add the content I have to use the script editor web part and add HTML snippets. Then the styles will reflect correctly. But when I use content editor web part some of the styles do not reflect. Lets assume that if I want to add a H2 with the
    custom color, the color do not show in the ribbon. And how SharePoint know that this is an <h2> and reflect the other styles like padding, margin and so on.
    Please can someone help me to solve this.
    Thanks and regards,
    Chiranthaka

    Hi,
    From your description, my understanding is that you want to add CSS code in your customized Master Page with content editor web part.
    I tested your issue in SharePoint Designer, and I added CSS code successfully.
    I accomplish your requirement with steps below:
    Add a content editor web part in a list and add some CSS code in the web part.
    Open SharePoint Designer, enter the master page.
    Insert a content editor web part under INSERT tab in the Ribbon.
    Open the list that have edited in step1 in the SharePoint Designer.
    Copy code from the list to the Master Page as the screenshot below.
    The screenshot below is my result:
    In addition, why do not you add CSS code just with <style> tag in your page? Just add CSS code as below(in this method, you do not need any web part.):
    <style>
    h2{
    background-color:green;
    </style>
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How To Pass Multiple Parameters In URL with Report Builder

    Hi,
    I use apex 4.2 with database xe 11g and i use report builder to build my report i use this link to call report
    function runrep(){
    var vurl = 'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO');
    popupURL(vurl);
    now i want to pass Multiple Parameters like P138_ITEM_CODE , P138_UOM_CODE
    how can i add this Parameters in URL ?
    Regards
    Ahmed

    Ramani_vadakadu wrote:
    window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
    the above code we are using apex JS to BI publisher calling for report as PDF
    i don't know exactly where your parameters , did you customize my link to multiple parameters
    'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF&paramform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); 

  • How to include custom style sheets in BI 7 WAD (Web Reports)

    Hi,
    I have WAD in 3.X, where I have used custom stylesheets. Now I need to use the same style sheets of 3.x development in BI 7 WAD.
    How do i achieve this?
    Regs, Arka

    Hi,
    Stylesheets cannot be included via the Web Application Designer for BI 7.0 web templates. You need to use the Theme Editor of the Portal instead. Please refer to the documentation:   
    http://help.sap.com/saphelp_nw70/helpdata/de/f4/bb7a3b688d3c1de10000000a11402f/frameset.htm
    Best regards,
    Janine

  • How to build Information button in WAD, web template

    Hello friends,
    I am working in BI 7.0 WAD
    well i designed a query in Bex and it is linked with portal , so if i run the query it shows the result in Portal
    On portal while executing the query if i filter on some characteristics, then there is a button on Upper left named INFORMATION--- so if i click that it will give me the details, what extra filters i did , what extra restrictions i did.
    I am now using the same query in WAD, in order to design a web template.
    So please suggest how to create that Information tab in Web template.
    I think i have to create a Button, than name it as Information,
    But then selecting a Command, what Selection do i have to make
    Which command selection i have to do and what settings I have to make.
    Please suggest appropriate step by step approach as i am new  and learning.
    Also if you can tell how to use a specific Query in WAD to design a Web template.
    Thanks
    W

    I am new ,so if you can shed light by giving steps i will appreciate it.
    In SPRO, i can see SAP REFERENCE IMG, IMG INFORMATION, PROJECT ANALYSIS, MANAGE WORKLIST   ....
    How shall i go to reporting section.
    All reports are linked to portal so they execute equally on Portal with same setting.
    So how shall i copy that web template/
    If i copy the web template , how shall i remove everything else.
    How shall i use that web template in My WAD.
    How to save that Web template.
    Do i have to do everything in Bi server, as i can use SPRO tcode only there.
    If i create new template in WAD, how can i drag and drop the function as of default template.
    How shall i set the property
    Please suggest

  • Display 2 reports in 2 tabs of one WAD web template --variable issue

    We need to create one web template which contains 2 queries in 2 tabs in WAD. Each query has its own selection option. But after we create it in this way, the two queries selection option combined together in the initial screen.
    This is not convenient because we would like to set different authorizations to these 2 query reports, some people only can access to one of these 2 reports. But in this case, they have to enter all the selection option for displaying only one report.
    Is it possible to separate the selection screen for these 2 reports to 2 selection screens? Maybe it will be required to enter selection data when press individual tab.

    HI,
    Its possible that each tab can have different selection Screen.
    In the Tab parameters :
    First Tab: In command prompt,Specify "Call Variable Screen Dialog" .
    Similarly do it for Second tab.
    Now when open query..for each Tab,you will see a selection screen based on your data provider
    hope this helps
    Sriman

  • Problem Publishing  WAD Web template in a Browser

    Hello everyone,
    I have developed a Web template using BEx WAD. When i try to execute the same in my browser. It say page cannot be displayed in internet explorer. I checked with the Basis consultant to see if the port settings were correct. He said everything was OK. Can anyone suggest ay troubleshooting steps i can follow to resolve this issue? Could also use some WAD configuration documents if any available to pass onto the Basis team as they are not well versed with BEx WAD.
    Thankyou,
    RadhaKrishna.

    You can check the BW WAS configuration using the FM RSBB_URL_PREFIX_GET. Also make sure all the BW Bex Services are active in tcode SICF.
    The attached document gives youy detail steps for the same.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ec20a990-0201-0010-f291-d1d039975e41
    Thanks.

  • Running query in default WAD web template

    Hello Experts,
    Can you please guide me about how i can run a query in a default web template created in BEX Web Application Designer?

    Welcome to SDN.
    Kindly use BEX forum for BEX/WAD related queries.
    (SAP Business Explorer (SAP BEx)).
    coming to your question.
    you can set the webtemplate created by you as the default webtemplate from transaction RSCUSTV21.
    once its set, if you open query on the web (from query desinger,etc) it will utilize the default template you have set.
    Regards
    Raja

  • PL/SQL - Masking Parameters on URL with Form Post vs Get

    I am inquiring about the PL/SQL functionality of passing focus from one procedure/function to another
    via HTML web pages, using FORM ACTION="post" against "get".
    I've successfully written a good bit of code using the "get" functionality, where the parameters are passed
    on the URL, but security really wasn't an issue on that phase of the application. Now that it is, I'm researching
    further on how to use the ACTION="post" to mask the parameters from the URL and not receive failures in the process.
    I've seen multiple references in books showing the simple process of calling the procedure/function
    which does not explicitly require parameters, and using the ACTION="post", but when doing so, it returns
    the typical PL/SQL message that the page can not be found.
    We are running 9i, but not running 9iAS. Is it necessary to have 9iAS in order to reap these benefits,
    or is it not as simple as it's seems and I should just use Java Servlets/JSPs instead?
    Any information, or direction, would be appreciated.
    Thanks in advance.

    Encrypt the value of parameter and decrypt it back in processRequest of target page ??
    -Idris

  • Can i get a custom home page URL with APEX ?

    My name is Srinivas and i
    work for a top telecom company in North Carolina and i am a Oracle DBA
    here.
    We want to move away from spreadsheets about our typical DBA
    information and statistics and reports and move to Oracle APEX (formerly HTML
    DB). I was wondering whether i should use the public domain
    apex.oracle.com or create something running with an internal Oracle 10g ?
    If i use the public one apex.oracle.com for developing the application,
    can i get my own URL ? like http://telecom_company_dba.oracle.com or
    do we have to live with the http://apex.oracle.com URL ? We want to help
    our management with this APEX application and we would like to have a
    good meaningful URL for the APEX application
    If we maintain our own internal APEX application created by our own
    database 10g, then we could have our own domain name i guess. Correct ? or
    is it possible even i use the public apex.oracle.com ?
    waiting for your reply :)
    -thx

    Hi,
    The public apex.oracle.com site is not intended for production applications, if you don't want to run your own server there are a number of commercial hosting providers who specialise in providing hosting for APEX.
    There is a list of the providers (of which I'm one) here -
    http://wiki.shellprompt.net/bin/view/Apex/HostingExamples
    Regarding the 'nice' URL, yes that's certainly possible.

Maybe you are looking for