Retain variable values across web templates during a web session

Hi all,
How can we let web template get variable values from another template's variable values so as to keep the same entry values as previous report run?
For example 0vendor has a variable (for single, mandory) used in all  vendor related web templates. "vendor1" was entered for the second template.
I tried to use "SET/GET PARAMETER" in variable user exit. It works in BI with RSRT,  but it doesn't work with Bex or Web template. Looks like web session is not sync with the ABAP stack.
How about using cookie? How to create/reset cookie in variable user exit? Can we get variable values from web server memory or user session data?
Please share your thought !
Thanks for helping!
David

Hi Arun,
All the web templates are randomly run by user, there are no set of templates run after one template. Any templates can run after any other web template.
Basically we link  web templates with portal menu items. any report can be run by any sequence. The thing the new report need to take the previous selection values from common variables.

Similar Messages

  • How to retain variable values across a BPEL Process?

    Hi All,
    I've created a BPEL process using number of variables. Out of these I've a common variable with name processorBO that is required for calling every service. But after calling a service, I lose values inside processorBO and it gets filled with the new values.
    Can anyone tell me how to retain the processorBO values across complete process so that, I can use the required values at appropriate places ?
    Thanks in Advance
    Regards

    well...you could always use the transformations to do the assign, or if you want to use just the assign activity to set the response values from the service to the 'global variable' you could use something like
      <copy>
          <from variable="inputVariable" part="payload"
                query="/client:testProcessProcessRequest"/>
          <to variable="globalVariable" part="payload"
              query="/client:testList[1]"/>
      </copy>the [1] will assign your values to the array-part of the variable.
    This does the same as a for-each in your xsl transformation.

  • Web Template URL for Web Template ZTEST could not be Generated

    Hello Experts,
                           I have designed a Template in WAD with the name ZTEST(example) when i am trying to execute it in Browser, it is throwing an error like "Web Template URL for Web Template ZTEST could not generated". I am working on 7.0 WAD
    Please suggest me if there is any settings to done.
    Thanks in Advance,
    Regards,
    Vishnu.

    Hello Mr. Wond,
                                Even if i am Executing using a default Template it is throwing the same error that " Web Template URL could not be generated". Meanwhile when i am working on this issue i found that some Command URLs should be defined, but i am unable to trace where to define this URL Command like <a href=u201Dhttp://myAppServer:myPort/SAP/BW/BEx?pageno=1&request_no=8&cmd=ldoc&template_id=EXAMPLE_TEMPLATEu201C></a>
    Please suggest..................
    Regards,
    Vishnu.

  • BEx Web Template (BTMP) and Web Template (TMPL)

    Hi,
    I found in BI7 Objects, there are BEx Web Template (BTMP) and Web Template (TMPL). what's the different between them? For the BEx Web Template (BTMP), i can find in Web Application designer.
    But for Web Template (TMPL), I cannot find them in Web Application designer. How can I edit them?
    for example, there is a standard Web Template (TMPL)  0tpli_0tct_mc01_q0111, where can I change it?
    Many Thanks
    Jonathan

    hello,
    TMPL is for 3.5 template and BTMP is for BI 7.0 templates. For opening 7.0 template you need to use BI 7.0 WAD not 3.5 WAD.
    you can open the standard template 0tpli_0tct_mc01_q0111 in WAD and then do save as to save it custom template.
    Then you can edit the custom template and make the changes.
    Make sure that the std. template is installed correctly.
    Regards,
    Dhanya

  • Retain navigation steps across WAD templates

    Hello experts,
    I have a web report that is built using several templates. Each template has a tab container (same tabs across the templates) and a sort button. When navigating across the templates, the users want to retain the last template's navigation steps: same tab, same sorting (right now, the default tab and sorting is executed every time the user goes to a new template).
    I have buttons that allow users to switch among templates based on TRANSFER_STATE. It works for the tab container but not for the Sort button. The button does not have a parameter that would allow to keep the navigation step. Moreover, there are RRIs in the report, which does not work with TRANSFER_STATE.
    Basically, what I need is a way to apply certain commands (go to proper tab, apply proper sorting) when entering a new template, but based on the previous template. I know I can apply javascript functions when executing the template, but how can I retain and retrieve the previous template's last navigation steps?
    Any ideas?
    Thanks,
    JLT

    Thank you Janine,
    You are right: I can switch from a template to another using TRANSFER_STATE in a button and keep the tab and the sorting.
    The problem remains with RRI. I have set some query jumps. Users can right click on a row and Goto another template/queries that is filtered for the user's selection (drill down).
    Is there a way I can use TRANSFER_STATE in that context?
    Thank you,
    JLT

  • Retaining Variable Value for Scenario Restart

    I have a slave-package where i use many variables for JDBC connection/url/login/passwd and Target File Path - all have been defined as type HISTORIZE
    My packages are as follows
    (1) There are many odiSqlUnload steps in the slave-package which uses the connection information & file path from the variables which have been declared in it.
    (2) I just have declare variable steps in the slave-package, and have created a master-package which calls this slave-package's scenario using the command[i] "odiStartScen -GLOBAL.var_name=<var_value>"
    so that all variables get their values from the master-package's call with variable values sent thru it
    (3) Now, the problem occurs when I have to re-start my slave-package's scenario. Say for eg, the first step in my slave-package works fine, but errors out on the next step;
    But when I re-start it for the next step, ODI doesn't seem to pick up values from the variables even though they are of type HISTORIZE, and I get an error with empty values for JDBC, URL & file path which I had specified as variables.
    Why is it that the variables are not able to retain their values.
    Any help would be greatly appreciated!

    finally I get it. I have to use #varname instead of :varname, otherwise it won't get error but just cannot get value. and I find out this #varname cannot be defined anywhere, otherwise the value will get lost also.

  • Passing variable value from main template to sub templates in BIP

    Hi Gurus,
    i am developing BI publisher report by calling different templates from the main template.
    for example:
    I have main template which calls three templates. my Main template code is like this
    <?import:file:///C:/Temp/P1.rtf?> <?import:file:///C:/Temp/P2.rtf?>
    <?import:file:///C:/Temp/P3.rtf?>
    <?CALL: O1?>
    <?CALL: O11?>
    <?CALL: O111?>
    <?CALL: O1111?>
    <?CALL: O11111?>
    <?CALL: P1FOOTER?>
    PageBreak
    <?CALL: O2?>
    <?CALL: O22?>
    <?CALL: O222?>
    <?CALL: O2222?>
    <?CALL: O22222?>
    <?CALL: P2FOOTER?>
    PageBreak
    <?CALL: SUM1?>
    <?CALL: SUM2?>
    <?CALL: SUM3?>
    <?CALL: SUMFOOTER?>
    Now i am passing some parameter value to the main template, but i have to pass that variable value in all other templates.
    I am getting parameter value in main template but not getting in other templates. Getting error BI generation failed
    Please advise me.
    Thanks,
    Jag

    Yes i have declared my variable at main template but if i do the same declaration at subtemplates, then report not generating. So that i am thinking better to capture that value in variable from the main template then to sub templates.
    I dont know is it works or not? Please see below
    <?import:file:///C:/Temp/P1.rtf?> <?import:file:///C:/Temp/P2.rtf?>
    <?import:file:///C:/Temp/P3.rtf?>
    <?param@begin: Test;'default_value';'string'?>
    <?$Test?>
    <?CALL: O1?>
    <?CALL: O11?>
    <?CALL: O111?>
    <?CALL: O1111?>
    <?CALL: O11111?>
    <?CALL: P1FOOTER?>
    PageBreak
    <?CALL: O2?>
    <?CALL: O22?>
    <?CALL: O222?>
    <?CALL: O2222?>
    <?CALL: O22222?>
    <?CALL: P2FOOTER?>
    PageBreak
    <?CALL: SUM1?>
    <?CALL: SUM2?>
    <?CALL: SUM3?>
    <?CALL: SUMFOOTER?>
    Now i am passing some parameter value to the main template, but i have to pass that variable value in all other templates.
    I am getting parameter value in main template but not getting in other templates. Getting error BI generation failed
    Please advise me.
    Thanks,
    Jag
    Edited by: user7498756 on Aug 16, 2012 9:59 AM

  • Writing variable value to a textfield during(not at the end of script) script.

    Hi,
    May be this is a stupid question, but I need to know the answer.
    The question is
    Is it possible to write a variable's value to a text field or numeric field during or in the middle of a script, not like at the end of script. Actually I found that live cycle designer forms writes values to fields when event script finishes.
    I tried on a click even of a button.
    TextField1.rawvalue  = "5" ;
    xfa.host.messageBox("test message");
    But code shows alert message first and then writes the value afterwards. When alert windows pops up text field is having old value or say blank.
    Thanks
    Arvind

    Hi Arvind
    You could try using the layout:ready event, you just need some way of working out what the next step is, maybe for form variable you can increment each time the layout:ready event is called so you know to write out the next thing.  There is an example of this in a sample here Adobe LiveCycle Designer Cookbooks by BR001: Season Planner (or Year Planner) PDF Template
    Regards
    Bruce

  • Sort variable values in selection box in BEx web report.

    Hello friends,
    In my BEx web report I have cal/month selection. When I do dropdown to select values it starts with 01/1960 and I have to click 10 times to get to 01/2006, 02/2006 and so forth.
    Is there a way to sort these values so I can get most current cal/month in first list?
    Thanks in advance.
    Regards,
    BJ

    I would consider changing the read mode for the dropdown box.  Are all of those dates actually relevant?  Check out the properties of the dropdown box in WAD. 
    Thanks,
    Jeff

  • How to access variable values across mappings?

    Hi all,
    I have created the following sample class Test.java and imported it as an archive:
    public class Test{
    public static String myStringData = null;
    In one of the mappings, I have a UDF that sets the  "myStringData" using the foll:
    Test.myStringData = "Amit";
    I am trying to access this variable in another mapping using a UDF with foll statements:
    String test = Test.myStringData;
    result.addValue(test);
    However, on testing the second mapping I get the value of the variable as null. I have activated all objects.
    Not sure what exactly I am missing here...Kindly provide your inputs.
    Thanks..
    Amit

    Hi,
    >>>Shabarish/Praveen, it would be great if you could provide me with some examples on the suggested approaches as I am relatively new to PI.
    the truth is that you should not write anything from message mappings
    as:
    what happens if the DB table to which you want to write will be locked
    what happens if the file will not be accessible ?
    it's better not to write anything from message mappings
    especiall if you say you're new to XI
    maybe just tell us the real problem - why do you think you need to do it?
    Regards,
    Michal Krawczyk

  • Displaying variable values in Web Template

    Hi,
    I am working on a Web Template.
    I want to display the variables and their values input by the user on the Web Template.
    Which Web Item function shd I use?
    How shd I use it?
    Pls guide me.
    Thank you,
    Adarsh

    Hi Adarsha.
    You can add the standard web item called "Text Elements". When you have added it just insert the dataprovider you want the filter values displayed for.
    Hope it helps.
    BR
    Stefan

  • Variable Personalization for Web Templates

    Hi,
    Does anyone know of a method to personalize variable values for <b>individual</b> web templates. When I personalize a variable value while running the query on web, its value gets modified for all queries, not just the specific one that I am running.
    This does not happen when I run the queries in BEx. Here I have the option of personalizing the variable values specific to the query that I am running (by using the icon at the bottom of the variable screen), or to personalize the variable value across all queries (by using the icon displayed with the individual variable).
    Can anyone help me in achieving the same two options for queries run on web? I want to personalize variable values for individual queries.
    Thanks
    -Arif

    Hi Arun
    Thanks for your input, but the bookmarks or parameter passing will not give enough flexibility to the users.
    For example:
    Out of 10 available variables in the query, the user should have an option of selecting values for those that have not been personalized (say 7 variables) while the rest 3 get populated automatically because they have been personalized. In EACH run of the query, the user will have the flexibility to select a different value for the 7 variables.
    This needs to be different for each query the user runs, even though the queries may use same variables as the other.
    I am trying out some options. If it works, I shall let you know.
    Regards
    -Arif

  • How I can gain the variable value in web-application?

    Hi,
    I have a web-template with several web-item. The data provider refers to a query with a variable screen.
    After the report run and the table is displayed, i have need to set a paticular filter-item with the variable value that i put in pop-up screen.
    Therefore I am trying a function or method in order to pass the variable value (pop-up variable).
    Help me, Thanks in advance

    Hi Ciro,
    in the Web item properties of the Text element web item you can specifically select in the ITEM_LIST a list of text elements. For variables you can choose if you want to display text or key values. This should work for the print template.
    With the Excel display I'm a bit unsure. There is a BEx Function called SAPBEXshowTextElements that allows you to display the variable values. I just don't know if you can execute it in the SAPBEXonRefresh. You can find additional information in the BW help under Business Explorer->Analysis & Reporting: BEx Analyzer->Queries in Workbooks->Integration with Visual Basic for Application (in the BW 3.1 documentation).
    Another thing that might work is to add another navigational attribute to the needed InfoObjects with reference to the InfoObject. While loading Master Data you can fill the navigational attribute with the same value as the characteristic. Then you can drag the variable into the filter and put the Navigational attribute into the query.
    Example: You have the IO 0COSTCENTER that you want to put a filter on. Create an IO COSTC_N (Costcenter Navigation) with reference to 0COSTCENTER and insert it into 0COSTCENTER as navigational attribute. While loading Master Data for 0COSTCENTER fill COSTC_N from 0COSTCENTER.
    In the query put COSTC_N into the filter box and create a fitting variable. 0COSTCENTER can now be displayed in the rows and the filter values for COSTC_N are displayed in the query.
    Best regards
       Dirk

  • WEB Template doesn't display variables screen

    Hello,
    I have created a WEB template using the WEB Application Designer. The template only contains one "Role Menu" item. I have checked the "Force Variable Screen Display" option but when I execute a query from the role menu, the system doesn't always display the variable screen.
    This only seems to happen when all the query variables are optional. If at least one query variable is mandatory, the variable screen is displayed. Is there a way to force the system to display the variable screen even if all the variables are optional ?
    Many thanks.
    François.

    Check the HTML code in webtemplate.
    object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value=""/>
             <param name="SUPPRESS_WARNINGS" value="X"/>
             <param name="VARIABLE_SCREEN" value="X"/>
             <param name="VARIABLES_CLEAR" value="X"/>
             TEMPLATE PROPERTIES
    </object
    if the <b><param name="VARIABLE_SCREEN" value="X"/></b> , is not there , just hardcode it.
    We encountered the same issue for melting variables some times.
    which version are you in , is there a bug..?
    thanks
    Martin

  • How to fill variables when calling a web template as a modal dialog

    Hi Experts,
    My scenario is as follow:
    I have a web template (application) A with an analysis item which has enabled the option for selecting single rows, in the rows I have the characteristic 0EMPLOYEE and a button for executing the commands OPEN_TEMPLATE_DIALOG and SET_TEMPLATE for calling web template B. In web template B I have a report with the variable zp_employee.
    The behavior I need is, if the user is selecting a row in the analysis item of template A, variable zp_employee in web application B should be filled from the selection. If there is no selection of a row, the variable screen should shows up.
    The general issue here, is how to feed one or more variables that "live" in wad B from a web item (analysis, input item, combo box, etc) in wad A.
    I guess it has to do with setting parameters in the URL with which wad B is called, may be coding a java script in web template B in the standard action "Action Before first display", but not sure
    thanks for any help

    Hi:
    Try that one in SPRO.
    here are steps if u need them.
    SPRO
    SAP Reference IMG
    From here, open tree:
    SAP Netweaver
    SAP Buss Info Warehouse
    Reporting Relevant Settings
    BEx Web
    Set Standard Web Templates.
    Here add for Adhoc analysis and others if needed.
    Ram Chamarty
    Message was edited by: Ram Chamarthy

Maybe you are looking for