Variables selection

hi,
i have created a query and when i run the query the system automatically picks a variable as a required field in the varaible selection screen.
here is the mssg i get
Variable ZWEEK1 for characteristic Week has been converted to a required entry
Diagnosis
Variable &V1& is used in the query in such a way, that an optional entry is not possible.
For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
System Response
Procedure
If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
Can someone tell me a way out not to use this as a mandatory selection.
Thanks

Kim,
My read on this is that your variable Week1 is an optional entry. The system is saying for the purpose of the query it needs to be mandatory.
Two options, one is to change the variable type to mandatory rather than optional. If you don't want to do this as the variable may be in other queries, use or create a new variable that is mandatory,
Regards
Gill

Similar Messages

  • Performance issues with query input variable selection in ODS

    Hi everyone
    We've upgraded from BW 3.0B to NW04s BI using SP12.
    There is a problem encountered with input variable selection. This happens regardless of using BEx (new or old 3.x) or using RSRT. When using the F4 search help (or "Select from list" in BEx context) to list possible values, this takes forever for large ODS (containing millions of records).
    Using ST01 and SM50 to trace the code in the same query, we see a difference here:
    <u>NW04s BI SQL command</u>
    SELECT                                                                               
    "P0000"."COMP_CODE" AS "0000000032" ,"T0000"."TXTMD" AS "0000000032_TXTMD"                             
    FROM                                                                               
    ( "/BI0/PCOMP_CODE" "P0000" ) LEFT OUTER JOIN "/BI0/TCOMP_CODE" "T0000" ON  "P0000"."COMP_CODE" = "T0000
      "."COMP_CODE"                                                                               
    WHERE                                                                               
    "P0000"."OBJVERS" = 'A' AND "P0000"."COMP_CODE" IN ( SELECT "O"."COMP_CODE" AS "KEY" FROM              
      "/BI0/APY_PP_C100" "O" )                                                                               
    ORDER BY                                                                               
    "P0000"."COMP_CODE" ASC#                                                                               
    <u>BW 3.0B SQL command:</u>
    SELECT ROWNUM < 500 ....
    In 3.0B, rownum is limited to 500 and this results in a speedy, though limited query. In the new NW04s BI, this renders the selection screen unusable as ABAP dumps for timing out will occur first due to the large data volume searched using sequential read.
    It will not be feasible to create indexes for every single query selection parameter (issues with oerformance when loading, space required etc.). Is there a reason why SAP seems have fallen back on a less effective code for this?
    I have tried to change the number of selected rows to <500 in BEx settings but one must reach a responsive screen in order to get to that setting and it is not always possible or saved for the next run.
    Anyone with similar experience or can provide help on this?

    here is a reason why the F4 help on ODS was faster in BW 3.x.
    In BW 3.x the ODS did not support the read mode "Only values in
    InfoProvider". So If I compare the different SQL statements I propose
    to change the F4 mode in the InfoProvider specific properties to
    "About master data". This is the fastest F4 mode.
    As an alternative you can define indexes on your ODS to speed up F4.
    So would need a non-unique index on InfoObject 0COMP_CODE in your ODS
    Check below for insights
    https://forums.sdn.sap.com/click.jspa?searchID=6224682&messageID=2841493
    Hope it Helps
    Chetan
    @CP..

  • How to add customize message on the variable selection screen in the query

    Hi all,
    Can we add an customise message on the variable selection screen in the query? If yes please let me know how it can be achevied?
    Thanks,
    Rani

    Hi Rani,
    I faced a similar issue (for what I understand your request is).
    My requirement for the Variable Screen was to do:
       1) place a link to a ppt file
       2) remove buttons "Save", "Save As...), "Delete"... the standard buttons come when running the Query or WebTempl
    We were using a Web Templ for BI7.0
    I struggled trying to find out how to do it. My conclusions are:
    - WAD, not sure we can accomplish it using a Web Template but i did not "play" a lot with the Web_Template Properties in order to know
    - XHTML, I was told in my post HTML modification was the way, but I have close to nil background in HTML and couold not find the way of accessing the Variable Entry screen
    For instance, I had to remove similar buttons and change some font size from a link on the Web Template (WAD), which was pretty straight forward. In WAD the buttons come with its own icon and to increase the Font size for that link we used XHTML (<font size="2" >). But the heck of the variable screen...well, i just did not get trhough to it to modify it in any way.
    Good luck,
    Definetly in a Query I would say that no.
    alex
    PS: If anyone had a better insight, please feel free to share it.

  • Variable Selections in BEx Query Variants

    I am trying to save a variant for a BEx query that uses a floating date range.  I want the date range to move with the calendar.  I r/3 this is done with the variable selection.  In BW 3.5, I don't see how this is possible.  I only see options for TVARVC which are user exit selections.  Can someone point me in the right direction.
    Regards,
    Kevin B

    Hi Kevin
    Your requirment is that date range should move with calendar (ex. In first week , the date range should be from 1 to 7 of the current month & in  second week the date range should be from 1 to 15 of current month) ...if it is like this then you can go ahead with - create a variable and do the coding with sydatum (system date ) and embed the required logic. But if your requirement is completely random then you can not use this.
    Hope this helps
    Regards
    Pradip
    (Rewarding points is the way of saying thanks on SDN !!)

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

  • UNCAUGHT_EXCEPTION when a user is executing a variable selection in WT

    Hi Experts,
    There is strange problem to one User, when ever she uses the Varibale selection for 0FUNCT_LOC in Portal, the systems throws the below UNCAUGHT_EXCEPTION, in the Webtemplate screen.
    When i Checked that is displayed in  *Root Cause*,  it is showing as follows.
    " The initial exception that caused the request to fail was: 
    Termination message sent
    ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent
    ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
      MSGV1: SAPMSSY1
      MSGV3: UNCAUGHT_EXCEPTION
    at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessageInternal(MessageManager.java:172)
    at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:128)
    And other messages that were displayed are below.
    ABEND: Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    ABEND: System error in program CL_RSBOLAP_VARIABLE_CHARACTERI and form No hierarchy available (see long text)
    Here the problem is that, while others users have no problem with  the same Webtemplate,that is there is no exception raised for Functional location for them (And also when i checked from my side in Webtemplate, there was no problem displayed at my side too )
    But when We created the copy of the user id (With same roles and profiles) again it has showed the same problem again.
    We also checked in the Roles and Authorizations for that user, but could find no problem.
    Also the user is able to access the Function Loaction variable selection in Bex Analyzer without any problems.
    But  only when she uses the selection in Portal she is getting UNCAUGHT_EXCEPTION.
    Could anyone please help me how to trace where the problem is, and why it is happening only for that user.
    And when there is no problem at Bex Analyzer side, why the exception is raised at Portal.
    Thanks in advance for helping
    Regards
    Raghu

    Thanks Javier,
    But it could not help me to fix the issue, the problem occurs to only one user, when she selects Functional Location variable (Hierarchy Infoobject) in Portal. For me and others we do not have problem, but when i copy replica that user id with problem, and execute at my side i too see the same problem, any idea why?
    Do we need to do any user specific configuration at portal side, for case of Hier Infoobject variables incase?.
    Any help on this would be appreciated.
    Thanks a lot.
    Raghu

  • How to include text lable in Variable selection screen (Web Reporting)

    Hi Experts,
    I have created one query and in Web Report-->variable selection screen I have one Date field for that field I have to display a label stating that user to input date in the format YYYY.MM(like a text label).Actually I have created 10 to 12 report . I need u r suggestion such that a single change will reflect my requirement in all the reports and I have created all the reports for same multiprovider.
    Thanks in Advance
    Yours,
    Bala

    Bala,
    Prompts can originate from one of two places:  either via Designer and using the @prompt functionality or while creating the report building a prompt in the Query Filters panel.  If the prompt was built using the @prompt method, and all 10-12 reports are using that particular @prompt, then one change via Designer will cause all reports to reflect the new verbiage.  If you built the 10-12 reports using the prompt in the second scenario, then each individual report needs to be opened, modified and then saved.  If you must use the latter method, then you can open the first report, modify the prompt verbiage, then highlight the new verbiage with your mouse and hit Control-C (which copies that text to the Clipboard of your Windows system).  Then go to the second report, locate the verbiage that needs to be changed, delete it, then Control-V (which pastes), and voila, some keyboarding strokes are saved....
    Thanks,
    John

  • Limit list of values in variable selection screen

    Hi
    Apologies if this has been asked / answered elsewhere, but I thought I would put it out there, at least while I continue trying to find a solution.
    We have a requirement to limit the data from which a user is allowed to select values in the variable selection screen. I know how to write the ABAP code that will return the list of data from which the user can choose, but not sure how to implement that in the query variable.
    Essentially, the BEx query needs an input on username, and the current user should be able to choose from a list of usernames. That list of usernames should only be usernames to which the current user has access.
    Don't worry about the linking of current user to user names, that is taken care of in our DSO.
    What I am after, is limiting the data that comes back when the "F4 Help" type button is pressed on the variable screen.
    I can default a value in the customer exit variable using ABAP code in the i_step = 1 loop, but that doesn't seem to effect the list of data available for selection.
    Any decent ideas?
    Cheers,
    Andrew

    Hi Andrew,
    As charlie suggested go for Analysis authorization that is the simplest approach to restrict values for any object, in another way you can use following BADI for value restriction using ABAP code, refer the below link.
    [http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-BW_BADI_F4]
    By using customer exit you can only populate default values but you will not be able to restrict F4 help values.
    Regards,
    Durgesh.

  • SAPGUI 640 patch 19, BEX SAP BW 3.x, , Netweaver04 - No variable selection

    The above in subject line is installed. Checked the installation w/sapbexc.xla, no major issues, all components were selected during frontend install. When the BEX Browser is launched I connect to BW and I select a report a Visual Basic error "Run-time error '91' Object variable or With block variable not set" occurs. Excel is opened but the expected variable selection screen does not appear. In addition to the above the BW addon patches 8 and 9 are installed and a couple of entries made into the PC registry per note 542961. SAPGUI works well for everything else as far as I can tell. What have I missed to make this work? prkctybum

    Lou,
    Please help me with this issue. We have the same similar issue you had. We can do the Global Settings going to the individual users but we are not able to push the resolution to every machine in the company, please see the note below. If you could send the resolution showing how you were able to push the code to every machine. You can mail me to [email protected].
    I’ve attempted to use .NET 2’s storeadm /LIST command to pull the BEXAddin info from the IsolatedStorage Assembly where it keeps a record of the bexaddin.dll information. However the record it keeps is of no help. The file path:
    C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\IsolatedStorage\x1smiiqw.qws\p1vq0mkf.2u2\Url.fc1l2xts4acc5iv3nxl2uoy0btkfeen5\AssemFiles\BExAddin.xml
    …is not kept here, or anywhere else that I can find. I’m going to have to do this the hard way and build something to check if IsolatedStorage exists, if so, query the folder structure, and check to see if the BEXADDIN.XML has been built, if it has, rewrite the legacy option. If it doesn’t exist, that’s the BIG issue, we’ll have to initiate Excel to run the BExAnalyzer that way it generates the IsolatedStorage and then repeat the above. The problem is that running Excel without the customer realizing that I’m running it is kinda tricky, what’s worse is that this would have to run for every user on a machine, and that’s impossible to do without everyone’s password, so essentially, this would only work for the logged on user, or what USD perceives as the logged on user, and since USD runs under the NT AUTHORITY\SYSTEM account that’s what it will see as the current user. So, long story short, I don’t think I can automate a fix for this.
    So, while I could query every existing users folder structure within IsolateStorage, I cannot guarantee that they’ve run BEX once to generate the folder structure for themselves in order for me to patch it. We could force BEX open after pushing SAP, but again, it would open for the SYSTEM account, not a “real” user. The only way to automate is to get the customer involved and have them run BEX one time, but how would we know to then push the fix…
    Kiran

  • Filter value for variable selection screen

    Hi & help !,
    This could be a tricky or an easy question, but it seems too hard for me !
    I'm storing version in my cube, and have a report which shows informations for the version you select (with a variable = ZVERSION01).
    ex :  Version :
    V01
    V02
    V03
    V04
    When report is executed i have my variable selection screen (for variable ZVERSION01) which give all version [V01 -> V04]. But i want users have no access to version V01 & V02.
    Variable ZVERSION01 is "single selection", i tried to filter with Default Values screen or Characteristic Restriction screen but it doesn't work.
    ex : caracterisitic restriction screen : VERSION = !V01 / !V02
          default value screen : variable VERSION = ZVERSION01
    Any idea?
    Thx

    Hi,
    In BI 7.0 there is Anaylysis authorisation RSECADMIN transaction. That you can use here or normal role concept will also do.
    What you need to do is grant authorisation to the users for V03 and 04 version only and create 'Authorisation' type variable on version in the query. (type of variable - it asks while creating the variable). This way users will only be able to see authorised versions only.
    Note you have to make version infoobject as Authorisation relevent infoobject. ( in infoobject properties).
    Let me knw if you have any doubt.
    Regards,
    Viren

  • How to use Keyfigures in the Bex variable selection screen.

    Hi,
    I have a scenario, where the user whats to see the keyfigures like volume, amount in the variable selection screen, so that he can dynamically, set the condition according to his requirement.
    For example , he wants to see all the PO's for a particular calmonth which have volume >  1 Million or on someother day, he may input the value as volume > 2Million or Volume < 0 , so it depends. Similarly he wants to dynamically select the Amount values.
    I have tried using condition with "greater than"and value as a formula variable and it works for one condition, but if I add another condition i.e, "less than"and value as a formula variable then it conflicts and the query is throughing below error.
    "ERROR BRAIN (418): Variable ZCS_VAR_CH_KG_LT (DC015DZ850NUYVFDMPJHRGHXW) does not exist or is incorrectly used 4 Volume"."".
    Do we have a option to use customer exit in such a scenario ??, any suggestions please.

    Hi,
    Please check out the below link.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e&overridelayout=true
    Hope it suffice your requirement.
    Regards,
    AL

  • Variable selection issue

    can someone plzzz help me regarding the following issue..........
      how to limit set of master data values in variable selection during query execution?
    cheers
      hari.

    Hi,
    check this link
    it's for increasing the limit you can use it to decrease the limit.
    BEX - number of displayed values
    Thanks

  • Do we have search help facility in variable selection (F4 help).

    Hi All,
    At my client place users are comfort with R/3 search help (F4), and looking for the same feature in Bex Reporting. Is it possible to have the same kind of feature in Bex reports.
    Example.
    In R/3 T-Code MB5B, user searches with material description or with some other options like sales material by general product hierarchy. Can we get the same kind of feature.
    And my client says that if we drop down for material it is taking huge amount of time to display the material numbers and description, we want to know how to reduce the time for displaying the material or customer master data text in variable selections.
    In Bex we are aware of material text is going to display as small or medium or long descriptions, when we drop down.
    Your suggestions are most valuable to us.
    Thanks in Advance.
    Akash

    Goto se11
    in  data type  :  put  KIDNO  change  mode   ... avoid the  messges  ....
    there  in theDefinition   :  put your new  Search Help   activate  it  ....
    so that   it will be attached..
    otherwise there  so many ways of attaching the serach help   for F4 ..
    Implementing search Helps 
    Search helps can be implemented in a variety of ways:
    1 .Add to Table field Added via SE11: Place cursor on desired field within database and select menu path  Goto->Search help->for field
    Effect: If field used to create screen field, search help will be called when user executes F4/drop down input help. All fields on screen will be populated if appropriate fields exist in search help and screen.
    2.Add to Table  Added via SE11: Place cursor on desired field within database and select menu path  Goto->Search help->for table
    3.Add to Data element Added via SE11: Select desired data element (double click), enter search help name and parameters in appropriate fields on screen. Will be applied to all fields associated with that data element
    4.Add to Screen field Added via screen painter: One of field attributes is search help. Will only populate the one screen field.
    5.Add to Sel. screen parameter (MATCHCODE) Added using 'matchcode' addition for parameters declaration: Search help name must be no more than 5 characters long.
    e.g. PARAMETER p_prog LIKE trdir-name MATCHCODE OBJECT zsh.
    Rewatrd  points if it is usefull ...
    Girish

  • Key and text replaced with "???" in variable selection after SPS Upgrade

    Hello community
    I have a problem regarding the variable screen.
    We recently upgraded to SAPKW70021 and SP19 in Java. After this a problem appeared in web reporting and variable selection. When users are prompted to enter a value for fiscal year for example, the input help displays "???" instead of years. When you choose an "???" randomly from the list and add to your selection, the year is displayed correctly.  The same issue is present with company code selection and other user input variables as well, the selection list is filled with "???" for both key and text.
    Does anyone have any suggestions on how to fix this problem?
    best regards
    Antti Lyytikäinen

    Hi,
    Note 1368055 describes this issue. You need to implement the mentioned java patch for the BI components and set the parameter mentioned in the note to solve this issue.
    Best regards,
    Janine

  • Need to skip the variable selection screen when using dropdown

    Hello Friends,
    I have created a web template having a dropdown, a table and a text element. Basically I am trying to follow the guide "How to Use a Dropdown Box to Set Variable Values". It shows how to select values for a variable using dropdown.
    NOTE: The guide can be found here:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2642ab90-0201-0010-9193-d59de66cbab4
    What is happening is when I select a value for the variable in the dropdown, the correct url is getting formed but instead of displaying the report using the selected value, the variable selection screen appears. Given below is the url that gets formed:
    http://abcdev.wdf.sap-ag.de:8000/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=3&CMD=PROCESS_VARIABLES&SUBCMD=VAR_SUBMIT&VAR_NAME_1=TSTPEROD&VAR_VALUE_EXT_1=04.2007
    Please assist me to get rid of the variable selection screen. Thanks!
    Regards,
    Prem.

    Hello Ray,
    Thanks for your reply. This has partially resovled the issue. I have awarded you points for that. Now I am able to skip the variable screen.
    However, the query results are not getting refreshed. I wanted to restirct the values based on the value given in the variable selection (In my case the dropdown box). Somehow I am not able to link the dropdown with the variable or the "SAPBWOpenURL(url);" function is having some issues.
    Please assist. Thanks!
    Regards,
    Prem.

  • Caption in the Variable Selection Screen

    Hi,
    I have my queries in web templates on WAD. I want to attach a description for each report which shows on the top of the selection screen, how can I do it. For example i have a P&L monthly report with the selection screen include a selection for Fiscal Period and GL Account, I want to have the caption :
    "P&L Monthly". How can I achieve this
    Thanks
    Rashmi.

    Hi,
    I have tried it but it is showing the caption once i enter the variables and get into the web template. I want it to show on the variable selection screen as well. How can i do it
    Thanks
    Rashmi.

Maybe you are looking for

  • HT1349 Cannot download purchases even though I have storage?

    I purchased some movies for a road trip and was told I needed more storage in order to download them all. I purchased more storage, but I am still unable to download them. Any help would be great.

  • Help with SELECTIO SCREEN

    Dear Sirs: I defined the following parameters in my program: SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME. PARAMETERS:             p_kokrs LIKE cobk-kokrs MEMORY ID ZKO  OBLIGATORY, More parameters. SELECTION-SCREEN END OF BLOCK b1. AT SELECTION-SCR

  • Runs slow!! i can temporarily speed up by erasing cache, help?!!

    recently i saw an suggested answer to speeding up, by increasing the virtual memory (control panel)... i did that, and i erase cache daily, but within a couple hours it will slow down a lot! I normally work with three windows which have 3 or 4 tabs e

  • Appraisal Document: Wrong entries in action log

    Hi Gurus, For some appraisal documents, the action log is getting wrong entries. For example, it appears several entries. Those entries identify persons that have seen the document. I have an example that several employees have seen the same document

  • I have an appdata roaming uvcut.dll error on startup

    Upon startup i have a (c users name app data roaming uvcut.dll error) But it does not appear in safe mode if that is any help. It says specified module can not be found. Plz help!