Skip to Content
author's profile photo Former Member
Former Member

Force the Variable Screen to Popup After Opening a View (BEx Web Application)

Hello all!

What I am trying to do:

I am trying to post a link to a web template that will allow users to open already saved views. Once they have opened a saved view, the (date) parameters will most likely be from the last time they ran the report and will need to be updated. So what i would like to do is create this template, have the "Open View" window popup immediately, and then once they select their view (hit "Ok"/"Open"), then have the variables screen open so that they can make any variables changes that they would like.

What I have so far:

I have created the web template and successfully made the "Open View" dialog window popup immediately. All I changed in the code is added these lines between the ACTION_BEFORE_RENDERING/INSTRUCTION tags:

bi:LOAD

bi:TARGET_DATA_PROVIDER_REF value="DP_1" /

bi:OPEN_SAVE_DIALOG_LAYOUT value="TEMPLATE_PERSISTENCY" /

bi:DISPLAY_SINGLE_FILTER_ENTRY value="X" /

/bi:LOAD

The above code works perfectly and does exactly what I need it to do for part 1, that is popup the open view window. Once the window pops up and I select my view, I can't get the variable screen to open automatically. I can obviously click the button and open it manually, but I want to save my users the trouble of having to do that EVERY time.

Someone help me please!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Feb 27, 2013 at 05:56 PM

    Hi,

    Are you using any mandatory value in variable screen?

    VARIABLE SCREEN NOT SHOWN BY DEFAULT SCENARIOS:
    ===============================================
    1. If a query has no variables, no variable screen will be shown in web.
    It is not at all possible to see variable screen in this case.

    2. If a query has variables (only optional variables but no mandatory
    variables ) then variable screen will not be shown.

    3. If a query has mandatory variable but if it is prefilled, then
    variable screen will not be shown.

    you can enforce to see variable screen only in case 2 and 3 by using the
    parameter '&VARIABLE_SCREEN=X' to the end of context url as shown in
    example below:

    /irj/servlet/prt/portal/prtroot/pcd!3aportal_co
    ntent!2fcom.sap.pct!2fplatform_add_ons!2fcom.sa
    p.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=
    <XXX>&VARIABLE_SCREEN=X

    The variable screen wont be shown if there are no mandatory variables
    in the query. You can force it with the following methods,
    1) Append the parameter '&VARIABLE_SCREEN=X' to the links in your menu.
    2) Change the parameter in the web template used > template property
    'Force variable screen' in the Web Application Designer, per
    default it is not checked.
    3) In case, no template is specified, the standard web template is
    used > transaction SPRO. In case, no web template is maintained as
    standard web template in transaction SPRO the standard web template
    delivered by SAP is used. It is recommended not to change
    the original SAP template but to create a copy, apply changes and
    maintain it as new standard web template in transaction SPRO. Please
    review note 643464 for further informations."


    VARIABLE SCREEN SHOWN BY DEFAULT SCENARIOS:
    ===========================================
    Only when there is a mandatory variable which is not filled and has
    to be filled only by user via F4 help, then variable screen will
    be shown automatically.

    Thanks & Regards,

    Sapna

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 28, 2013 at 12:55 PM

    Hi Greg,

    Please set parameter VARIABLE_SCREEN=X. in your standard web template and retest.

    Regards,

    Arvind

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2013 at 02:29 PM

    (This is actually in response to both of you.)

    Thanks for the quick response!!

    I wish it were that easy. If i take my template and run it against a fresh query, it works perfect, the variable screen pops up and all that jazz. But in this case, im not running it against a fresh query, im giving the link to my end users and they are being forced to open a VIEW. This view will already have variables associated with it and filled in because the users have already ran the report and saved it as such.

    I don't think it's as easy as setting the VARIABLE_SCREEN=X. I have that set right now and it doesn't change anything because the variables are already populated when opening a view. i have even placed the VARIABLE_SCREEN=X in the URL and same results.

    I have the template forcing the users to open a view by placing OPEN_SAVE_DIALOG_LAYOUT inside the ACTION_BEFORE_RENDERING tag. It's almost like i need a ACTION_AFTER_RENDERING tag but i feel like it doesn't exsist.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 06, 2013 at 11:20 AM

    Hi,

    Please check if you Problem is mentioned on this SCN Page

    http://scn.sap.com/docs/DOC-35785

    Best Regards Roland

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.