Description input variable dependent by queries

Hi gurus,
I have a input variable in more queries bex (bi 7.0).
I do to change description for only one query without to create an other custom variable and replace it where I need.
I test in cmod with the support the second customer exit variable but when  I launch the query I don't intercept the description variable (insert in table RSZELTTXT) in step 1.
Any suggest..
thanks a lot
Andrea
Edited by: andreapistore on Feb 3, 2011 2:32 PM
Edited by: andreapistore on Feb 3, 2011 2:44 PM

Hi
In the restriction of AS1 you restrict on current quarter (SAP Variable -> Current quarter  0CQUART if not found see Business content -> Query element -> variables)
Then you do a right mouse click an set the variable offset on -3
The same for AS2 with -2; AS3 with -1
on AS4 you don't do an offset.
Next to the description of the restricted key figure there is a button for Text variables (Current quarter (T) 0CQUARTT ).
Udo

Similar Messages

  • Use of Input Variables in SQL-Queries Sometimes Not Possible

    Only in simple SELECT-statements the use of input variables ([%0], [%1], etc.) work without problems.
    In more complex queries the use of these variables is not possible (e.g. SELECT-statements with sub-queries, sometimes when UNION is used - but I couldn't find any general rule when the problems will arise; sometimes two different queries with the same query-structure behave in different ways when these variables are used).
    In these cases the query is not executed - not even the input-window to enter values into the input variables is displayed. The query stops with some strange error-messages in the status line. These error-messages doesn't have any relation to the actual query - sometimes it refers to field-names never used in the query or refers to syntax error which do not exist.
    If the input variables are replaced by constant values there are no problems so there can't be any syntax errors - the only difference is the presence or absence of input variables.
    Example:
      provided that the queries have a certain complexity
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= [%0] ...
      does not work,
      SELECT ...
      FROM   ... OINV Tx ...
      WHERE  ... Tx.DocDate >= '1.1.2007' ...
      works!
    Does anybody have run into the same problem and now if it is a bug of SAP-BO or an error on behalf of the user? Does anybody know a way to correct the problem?
    Thanks in advance!
    Frank
    By the way: Are there any rules where exactly input variables can be used in a query?
    Only in SELECT-statements? Where there exactly?
    In statements outside of SELECT?

    Only SAP Partners Can access service.sap.com/notes, but I think it is possible to search in them from the customer portal as well.
    Here are summary of the two notes mentioned before this:
    730960:
    <i>
    The following query is an example for how to define variables in long
    queries rather than using "Fixed Declares".
    You need to use exactly the same template as follows, do not delete
    "comments" from this query.
    The only changes you need to do :
    1. In the first and in the fifth rows you need to select the table to which you would like to relate the variable e.g. in this example, the variable is related to the table VPM1 - 'Payments to Vendors - Rows'.
    2. In the fourth and in the eighth rows you need to select the field to which you would like to define the variables e.g. in this example, the variable is the field 'DueDate'.
    /SELECT FROM [dbo].[VPM1] T0/
    declare  @fromdate as datetime
    /* WHERE */
    set @fromdate = /* T0.DueDate */ '[%0]'
    /SELECT FROM [dbo].[VPM1] T1/
    declare  @tilldate as datetime
    /* WHERE */
    set @tilldate = /* T0.DueDate */ '[%1]'
    select  OVPM.docnum, VPM1.dueDate,VPM1.CheckNum, VPM1.Branch,
    VPM1.BankCode, VPM1.CheckSum, OVPM.CardName,
    case
    when OPCH.docnum is null then VPM2.docEntry
    else OPCH.docnum
    end as 'docnum'
    from OVPM INNER join VPM1 on OVPM.docnum = VPM1.docnum
    left join  VPM2 LEFT JOIN OPCH ON VPM2.DocEntry = OPCH.DocEntry
    on OVPM.docnum = VPM2.docnum
    where OVPM.Canceled = 'N' AND VPM1.DueDate >=@fromdate AND
    VPM1.DueDate <=@tilldate
    </i>
    955295:
    <i>
    Using SAP Business One Survey Variables (parameters) in a 'Set' SQL Statement can give an error in the Query Generator.
    For Example:
    Declare @Num as numeric(2)
    Set @Num = [%0]
    Select T0.DocNum
    From ORDR T0
    Where DocNum = @Num
    Other terms
    query, SQL, parameter, survey, variable, query generator, set, declare, [%0], table, error, SAP Business One
    Reason and Prerequisites
    FAQ
    Solution
    In such cases you need to put in an SQL remark statement a reference field in the DB for the Survey Variable (any field).
    For Example: (to make the above query work)
    Declare @Num as numeric(2)
    Set @Num = /* T0.DocNum */ [%0]
    Select T0.DocNum
    From ORDR T0
    Where docnum = @Num
    </i>

  • Ready for Input Variables for Multiple Queries in I_T_VAR_RANGE

    Hi
    I created Web template which contains multiple views/queries. Two views/queries contain Ready for Input Variables. I have custeomer exit code for this Web template. I wrote code by using Ready for input variable which pass to customer exit code. But the variables which contain in two views/queries not appearing in I_T_VAR_RANGE. The two variables belongs to different views and I required those variables. please find below code:
        WHEN 'ZVBCUST'.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR1'. 
            g_soldto = w_var_range-low.
          ENDLOOP.
          LOOP AT i_t_var_range INTO w_var_range WHERE vnam = 'ZVAR2'
            g_zvbsshto = w_var_range-vnam.
            g_shipto = w_var_range-low.
          ENDLOOP.
    The above 'ZVAR1' is ready for input variable which belongs to one Query and below 'ZVAR2' is other ready for input variable which belongs to second query. I required these two at a time when customer exit variable 'ZVBCUST' executes.
    But in I_T_VAR_RANGE only one variable appears when I execute Web Template . Kindly help me in this regard
    Thanks
    luci

    Hi,
    First thing is to how you have defined your variable such as
    Customer exit or
    Replacement path or
    Manual input etc..
    If you want your variable filled through the exit select Customer Exit, then you have to look at the variable options such as Single value or range. According to your definition you have code as you defined such as wa_range-opt = 'BT' or 'EQ'.
    Next..
    In CMOD -> your project -> EXIT_SAPLRRS0_001 -> include 'ZXRSRU01' ->
    ISTEP = 1 -> before the variable pop up will be filled by the exit
    when 'your variable'
    your code
    ISTEP = 2 -> after the variable pop up i.e after running your selections, calculates the values for your variables after selection screen execution.
    when 'your varaible'
    your code
    ISTEP = 3 -> Validation purpose and message handling purpose
    when 'your variable'
    your code

  • Formula variable with replacement path to another input variable

    Hi @ all,
    i have a question regarding "Formula variable with replacement path to another input variable".
    My Problem is that in selection screen and for info-fields the input variable is shown with its key and not with its description.
    Scenario:
    A formula variable (X) is used to get an input value of a characteristic variable (Y) for 0Fiscper3 to realize a IF-Then scenario.
    The formula variable (X) uses replacement path by variable (Y) replace by "key".
    In selection screen of the query variable (Y) is named with its key "ZAB_BUPE01" and not with its description " fiscal period". Same as for info-fields where the description is "ZAB_BUPE01" and not " fiscal period".
    Does anybody have a solution to display the selection variable correctly?
    Regards
    Tobias

    Issue Solved!
    The input varaible (y) for 0Fiscper3 was saved globally on the InfoProvider. This results in that the formula variable with replacement path only shows its technical name. I put the input variable in the query itself and it soved the problem. The variable is displayed with its description in selection screen.
    Regards

  • Front End Variable to Multiple Queries

    I need to create a front end variable selection on plant that will then pass the plant as a parameter to run a Bex query that is based on plant.  I cannot seem to accomplish this in BEX Query designer am I new to WAD.  I don't want to publish 20+ queries to the portal and instead want to publish one query with a variable input that runs the "sub-query" based on the input variable parameter. 
    Example user inputs plant.  The query is for sales of slow moving items that is plant specific.  Each query has restrictions based on material number for 500 materials.  There is not currently a way to identify these materials by plant for master data...
    Any guidance is greatly appreciated
    Warm Regards
    Lee Lewis

    Dear,
    Why dont you go for Restriction with Manula Entry Variable on Material Variable, by doing this you can have one query instead of 20 queries,
    Variable selection Screen will be like the below,
    Plant -
    MAnual Entry (Single Mandatery)
    Material------ Manual Entry (Multiple Entry / Range )
    Regards
    Reddy A
    Edited by: ReddyAbi7 on Jan 5, 2010 12:18 PM
    Edited by: ReddyAbi7 on Jan 5, 2010 12:18 PM
    Edited by: ReddyAbi7 on Jan 5, 2010 12:20 PM

  • Description for Variable in variable screen

    Hi Forum,
    I am using variables type "Replacement Path" in a query for 0FISCYEAR and 0FISCPER3 through by another variable for 0FISCPER.
    The variables are functioning well, but in the screen of entrance of variables, the variable for 0FISCPER display the technician name instead of the description.
    Many thanks in advance for any idea.
    Kind regards,
    Joã

    Hi Supraja,
    Thanks for your help.
    However my problem is like Tobias Vogt problem posted Jan 30, 2009 10:49 AM (Technical description in variable screen for replacement path variable).
    ""There's a query that is used as stand alone and as a target of RRI from another query.
    Because the source query provides a time-interval and the target query should only use
    the upper value, I've used a variable1 of type replacement path to be replaced by another variable2.
    That's working quite well. But unfortunately, the technical description of variable2 is shown on variable input screen.
    Does anyone know how the technical description can be replaced by a text description?""
    Read this link
    João Alvarez

  • Order of Input-Variables in Web Template

    Hi,
    I have a problem with Web Templates. I have prepared Web Templates in BI 7.0 WAD in which I am displaying multiple queries. Some input variables are common to all queries and some are only in the main query. I have set the correct order of the input vars in the main query, but when I run the Web Template, I get the common variables first and then the rest which is not okay for me.
    Can anybody suggest how to overcome this problem? And display the variables in the order I want in the Web Template?

    Hi Mayank
    Why dont you insert a table in the WAD template and move the "buttons/variables" into the table rows/columns in the order you want them to appear.
    That should work.
    Srikant

  • Input variable takes value from current filter setting in navigation block

    Hi
    Is there is a way in SAP, maybe with customer exit, to fill a input variable for 0CALMONTH (which in the end will get a value like "06.2005") with the current value from the selected month in the filter settings of the time characteristic 0CALMONTH in the navigation block of a query?
    I guess the filter values are transferred back to the OLAP engine so the server knows the filter values of course and theoretically might be able to fill a variable with it...?
    Full points will be assigned.
    Thanks,
    German

    Thanks for your suggestion Vikram.  But if i change in the Info-object leve, i hope it will be reflected in all the Queries that are using this info-object.  I want it for a particular query alone.
    Also, in the Info-object level, for the option 'Query execution Filter value' the value is given as 'Value in Master Data Table' only.  Still, it is User specific.
    Regards,
    Murali

  • Input variables screen always visible

    Hi....i have a WAD and i want to know if theres a way to have the input variables screen always visible ....for example i want tha t the variables input fields always on top of the WAD, and the user can write new values and click on execute button (or something like that) and execute the WAD.......
    Another option would be using input fields in WAD but i dont know if its possible to pass the web item input fields values as filter for WAD queries....
    Regards

    Hi Oscar,
    Just add this piece of code within the <body>....</body?  to your template backend
    <!-- Display Variable Screen --->
              <TD class=SAPBEXNavLine><A href="<SAP_BW_URL CMD='PROCESS_VARIABLES' VARIABLE_SCREEN='X'>"><IMG
                alt="<SAP_BW_TEXT program="SAPLRRSV" key="T76">" src="Mime/BEx/Icons/S_B_VARB.gif"
                border=0  valign="middle"></A></TD>
              <TD class=SAPBEXNavLine> |</TD>
    Just check if src="Mime/BEx/Icons/S_B_VARB.gif" is present in your repository. This if for the icon.
    Hope this helps...!!

  • Variable dependency in Analyzer

    Hi All,
    My requirement is like i have many variables which are dependent on one another.
    Like country, subcountry.
    country - authorized variable
    subcountry - list of subcountries corresponding to the country selected by user.
    Here when the user selects one country, and press show values for subcountry, it should show valid subcountries for that country, out of which user choose one subcountry.
    So i have made subcountry as user exit variable and wrote logic inside i_step = 2. But i dont think this functionality is not possible in query designer. I have many variables like this. Can anybody help me how to achieve this functionality in analyzer.

    Indeed you can have performance impact, especially if you are supporting Business Explorer Analyzer Tools in Windows Microsoft Office Excel 2007. As far as my experience can tell me, Windows Microsoft Office Excel 2003 is a much better support for Business Explorer and offers far more stability than the later version.
    That´s something you have to try and measure...
    Although the 6 dropdown box will not increase the filter scope, it will just decrease, so less data, as you are doing your selection in dropdown boxes, is to be displayed in some of those queries (data providers), or is to be target of a planning function/sequence.
    This way, the performance should only be affected by what (I mean how many and what dimension they can have) queries or data providers are to be displayed (in same workbook) you are using for planning and executing these functions. Remember that every refresh of a query will take some time of the processor...
    What you can do is instead of having that many queries to take variable dependency into account, I don´t know if it is the case; is by using the master data attributes.
    Let me give one example I'm familiar with:
    Country / Company Code / Cost Center
    Cost Center has in master data the attributes company code and country
    These 3 characteristicas can be all in one data provider that will affect himself.
    You can use 3 dropdown boxes that are called by the same data provider that have this relationship.
    You can use this line of thinking in your Country / Sub-country / ....
    Hope I answered you...

  • Input variables definition in jobType

    Hello,
    I am trying to develop new job Type to perform transport of tablespaces
    and would like to define input variables that can be chosen as oracle_database type
    for source and target databases.
    I do not think adding targets to the job will satisfy it since as far as I understood
    there is no control in the index value of added targets to the job so I won't be
    able to identify which db was source and which destination.
    I was able to define input boxes for variables but they just text boxes where I should
    insert some value, however I would prefer to choose target from selection list
    It would be nice if it can be defined as steps before job submit to provide source and destination
    targets for the job.
    Could you please help me to figure out how to do it and/or might be point to docs/examples
    where it is shown
    Thanks,
    Andrey

    Hi Andray,
    This is "single-execution-multiple-target" mode and default UI does not support this option since you want to select source and destination targets for same job execution.
    You may look at Multi-Task job type option to implement what you are looking for
    - Go to Job Activity page, in create job lis, select "Multi-Task" and click Go button
    - Provide Job name, and select "Different Target for different tasks" option for Targets
    - For each of the tasks in tasks tab, you can provide different targets for each task. You could have task1 that would run a SQLScript or RMANScript job and then you could have task2 that could run OSCommand job on a different target based on "successOf" or "failueOf" dependency.
    Hope this helps.

  • Error in Query input variable

    Hello Experts
    I have a query which has input variable 0I_FPER for Fiscal year period and takes interval as input.
    when i try to select values i get following error. i have tried different inputs
    "Characteristic Fiscal year/period has no master data for "003.2010" "
    I tried creating new input variables and still get same ptoblem for TO value put in.
    Please help.
    Thanks in advance
    Regards
    Sudeep

    Hi
    I am using 0FISCPER infoobject for restriction, master data table for this is T009B.
    i even tried to rebuild this using tranfer global setting s option but problem still exists.
    0FISCPER object has no SID table.
    Moreover this report work fine using RSRT but give error at inputs when i run it over web.
    I am still facing same problem
    Please help
    Regards
    Sudeep
    Edited by: Sudeep Paranjape on Dec 27, 2010 10:50 AM

  • 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..

  • Input Variable in BO Webi Report

    Hi,
    We have BW-Query and have defined BO Webi-Report using Universe on this query.
    When we execute BW-Query direct in BW, we can see all plants from
    master data table in the input Variable (Input help/F4).
    When we execute BO-Report in BO, it shows only plants in the input variable, for which there are transaction data
    in InfoCube. I expect here to see all plants from the master data table (like BW Query).
    Is it normal? Or is there some other issue?
    Thanks

    Hi,
    as the webi report will contain only transactional data anyway (webi MDX statement will ask for non empty records), this is the normal behavior what you are experiencing.
    What settings do you have on the infoObject, on which you have the variable set?:
    -Query Def Filter Value Selection
    -Query Execution Filter Val. Selection
    There you should be able to choose between "Only Values in InfoProvider" and "master data".
    Best regards

  • Calculations on customer exit using input variable

    hi,
    suppose i have a date input variable on my query, and i want to use the input value as an input for a calculation to be done in a different characteristic variable whose value is derived via a customer exit. how could this be done?
    as an example - i have an input date field, and say, the user enters 1/15/2005. the other characteristic variable is, for example, sales for a given date, restricted against a characteristic variable (customer exit) which should restrict the KF to say, the start of the month of the input date up to the input date (in this case, 1/1/2005 - 1/15/2005).
    thanks in advance. =)
    ryan.

    Hi Ryan,
    you have to use parameter I_STEP = 2 in your exit (IF I_STEP = 2. (...))
    This second step is called after the processing of the variable pop-up and only for those variables that are not marked as “ready for input” and are set to “mandatory variable entry”.
    Build your second variable in this way and then you can use this step to see first (pop-up) variable value.
    For details see www.service.sap.com/bw -> SAP BW InfoIndex -> Variables -> How to... Derive a Variable value from another variable 2.x (pdf).
    Hope it helps (and please don't forget to assign some points by clickin'on the yellow star to the contributors that help you !!!)
    Bye,
    Roberto

Maybe you are looking for

  • Is it possible to widen the page view when drafting iWeb pages?

    I'm drafting web pages via iWeb and figured out how to make the page content wider (in page layout/content width), but would like to be able to have a view of the entire page while I'm rearranging the text and images on the webpage. I cannot figure o

  • HP LaserJet 1020 doesn't work on SL, works on Leopard

    Sigh, after upgrading to Snow Leopard, my printer became a brick. I just can't install the driver and it looks like a lost case. There is a workaround that uses Linux drivers but it requires that you upload some code every time you try to print (from

  • IPad 3 charging issue with 10w power adapter

    Hi everyone, About the beginning of November, I purchased my first iPad. This is an iPad 3, wifi. Up until yesterday, I was able to charge my iPad using the 10w power adapter and cable from the box. Since yesterday, that doesn't work anymore. I searc

  • ISE alarms delete fails

    Hi team, I'm deploying a new ISE platform on a client site. We have a few alarms saying that the supplicant is not configured: When I enter the alarm details, select all the alarms and hit Acknowledge the pop-up appears saying that the alarms had bee

  • Self-referencing relationship line is non-movable

    I am using Version 3.0.0.665 of data modeler. When I create a self-referencing relationship, the relationship line ends cannot be moved. They seem to be fixed. Is this the normal behavior. Any way to make them more flexible.