Variables and Structure in Existing query

Hi,
Where can i see the Variables and Structure in Existing query.
Thanks
Priyanka

Open the Query from Query designer.
Click on 'Query properties' in tool bar.
You can see the variables under 'sequence of variables' window.There you can change the Sequence of variables also.
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a569ae09411d2acb90000e829fbfe/content.htm

Similar Messages

  • Bind Variables and Shared Component Report Query

    I have a query in a region report which I have replicated to a shared component report query.
    Both queries reference page items as bind variables in the where clause.
    The report region on screen shows the correct results but the report query shows "no data". This is the case when running "Test Query" and "Download XML data" from the shared component report query definition. If I hardcode the variable names I get rows returned, If I use bind variables - and specify the values for these variables I get no data. THe XML file contains the tags for each bind variable I have specified but has no data between the tags. I have Ticked the box to include application and session state but it appears that the bind variables are not being used.
    When I use my report query in the application (URL tied to a button) I get the same problem, the binds are not being passed to the report query.
    Can someone please clarify if this is a bug or not? And if not, how can I get it to work.
    I am using Apex 4.0.2
    Thanks
    Kathryn

    Hi
    To confirm, yes I selected the bind variables. I used these in the report layout, but the xml file has them as empty i.e.
    <P0_START_DATE><P0_START_DATE/> with nothing in between.
    IN the Test Query section, if I put real values in the boxes for the bind variables, I get no data found. If I hardcode the values into the query, I get the data.
    I've repeated the create report query many times and have created a report layout in RTF. I can use the layout with my region - in the print attributes and the layout works with the query but I need to create a PDF using 2 queries - ROWSET1 and ROWSET2. I can generate the XML but the values in the rows are all empty. When I use the layout with a report query instead of the region, I get no data even though I have used the same sql and have selected the bind variables. I was using variables from page items on page zero but have also tried using page items on the current page, the result is the same.
    I need to use a report query and a report layout as I need data from 2 queries in the PDF.
    I looked at your demo - what happens if you add a second sql query to the report query - is there any chance I can look at the back end (developer access?)
    Thanks for your input
    Kathryn

  • Customer Exit Variable and Condition in a Query (Sequence of Execution)

    Hi,
      For a query i defined a Customer exit variable and a condition....
    Which will first execute...wether it is a  Variable and then Condition or vise versa
    Is there any way we can control sequence of execution
    My requirment is first to execute the condition and the variable how can i control this
    Thanks

    Hi
    In your customer exit you will be having a field by name I_STEP which will help you to handle the time of execution of the variable.
    Assign points if helpful
    Prathish

  • Problem with Queries Structures in Bex Query Designer and Universe Designer

    Hi everyone,
    I have a problem when i try to do a Universe from a Bex Query Designer.
    When I use a Characteristic Restrictions in a Structure, the universe only show me the structure without the objects inside it.
    EJ:
    1) Bex Query Designer
    Colunms
    (Structure) ZSRT_123
                          - (Characteristic Restrictions) Reg Guayana
    >          (InfoObject)     0Product = 'XXX'
    >          (InfoObject)     0Country = 'YYY'
         - (Characteristic Restrictions) Reg Caracas
    >          (InfoObject)     0Product = 'AAA'
    >          (InfoObject)     0Country = 'BBB'
    Rows
    (Structure) ZSRT_456
                   (Key Figure)     Net Sales
    2) Universe designer
    (Class) ZSRT_456
    >(Measure)      Net Sale
    (Class)     ZSRT_123
    >(Dimension)      ZSRT_123
    The universe dont translate the two Characteristic Restrictions in the structure ZSRT_123.
    Any information would be much appreciated. Thank you.

    Hi,
    I assume that you are using BOE XI 3.1 SP2.
    We have added an option in SP2 to generate or not the L00 level.
    Unfortunately this option applies not only on characteristics but also on hierarchies, hierarchies variables and structures: that's the reason why you have no elements belonging to the structure generated.
    I recommend to always generate L00 in order to have your structure generated correctly.
    This issue will be fixed in SP3.
    Regards,
    Didier

  • How to add a new Shared Variable programmatically to an existing and deployed library?

    Hi there!
    I am trying to accomplish this on both LabVIEW 8.6 and LabVIEW 2010 and seems like it's not any different in this situation.
    My case: A project has a library with 4 Shared Variables (SVs). The library and the variables are deployed (visible in Distributed System Manager 8.6/2010). I want to add 2 more variables into this library. It is possible to do this manually from Project Explorer window's options menu. But while running an application it has to be done programmatically. Can I provide the library reference to the one currently existing without creating a new one?
    "Create Or Add Library To Project" function in the Datalogging and Supervisory Control (DSC) toolkit does not help in this case. That function, as the name suggests, just tries to create a new library in the project.
    Two possible methods:
    The function "Add Shared Variable To Library" (DSC>EngineControl>Libraries & Processes) needs a library reference, which could be provided via "CreateOrAddLibraryToProject" function, but this function tries to create a new library, and if I provide the path of the existing library it throws an exception that the library already exists in the project (yes, as I wrote above, I need to add new variables to an existing and deployed library).
    OR
    The function "Create Shared Variable" (DSC>EngineControl>Variables & I/O Servers) will add Shared Variable in a process, and not physically in a library file, and the problem (limitation) with this approach is that it doesn't allow to add complex data type Shared Variables (for example in LabVIEW 8.6 it has only 4 datatype options in input parameter, and even in LV2010 it does not have "Image" datatype that I need).
    The scond method is my preferred method as it allows to work on Online Shared Variables and doesn't create them physically in libraries (and this is good as the variables' scope remains only till the Variable Engine is running). But it doesn't support advanced data types, and the first method is powerful in terms that it supports to virtually any datatype, it just seems tricky to get that reference to the library.
    Any tips?
    Thanks ahead!
    Vaibhav

       <<<<>>>>   
    As the above two images show, while a library does not exist, it is easy to use the "CreateOrAddLibraryToProject.vi" which will add a new library to the project (if it doesn't exist on file system, a new library will be created) and that way, using the reference (the green wire going out from the function and the Case Structure, can be used to add Shared Variables to the library. The problem was what to do when a library already exists in the project, how to add more variables to it. I was looking for a way to get a library reference, and somehow I could not see it inside a Project's property (VI Server functions). Hence I posted the question. And upon continuing my search, I found it on the Application's property list.
    I hope it was useful for someone else as well. And thanks for the replies. Please share a better idea if you have.
    Vaibhav

  • Copy existing structure in the query

    Hello,
    I have couple of existing structures in the query, my requirement is I need to create a new structure similar to the existing stricture.
    Is there anyway to copy the existing structure.
    Please help me.
    Thanks,
    John

    Hi Roberto
    I did like this,
    I have chosen save as option by right clicking the structure and provided tech name and descriptions. It created new structure with the existing fields.
    Thanks a a lot for your help.
    Regards,
    John

  • Is it possible to create table variable by copying structure of existing table?

    Greetings community,
    It’s a newbie question.
    I’m still learning T-SQL, and I’m not very familiar with its syntax, so I’m not sure if I’m asking something stupid. I’m creating a “stored function”. I need to create temporary table variable to do some “thinking” in it and spit out a
    scalar result. Actually, I have to create about ten similar functions to process ten tables in similar way, so I was searching is it possible to speed it up.
    I was wondering is there any way, instead of declaring table variable with list of gazillion columns (and having the possibility to mistype something), to declare table variable so it would inherit structure of existing table.
    Thanks for any help.

    Temp table variable can not be created on the fly, but temp table can be created.
    If you want just the structure, you can use the below.
    SELECT Top 0
    INTO #temp
    FROM
    Sales.SalesOrderHeader

  • Using 'variables.instance' structure and implicit getters/setters

    I am adopting the use of creating a variables.instance (I use 'variables.my') structure to separate instance data from the object, however I have a question when it comes to ColdFusion creating implicit getters and setters based on that object's defined properties.
    BEFORE, if I had a Name property, CF would create getName() and setName() for me, and it would update the variables.Name private variable accordingly in each.  But now that my variables are being stored in 'variables.my.Name', does this mean I can no longer use ColdFusion's implicit getters and setters? (because it would improperly be attempting to execute getName and be looking for variables.Name, when that data now exists in variables.my.Name?
    Are there any methodologies around that allow me to utilize CF's implicit getters/setters while using this 'my' instance variable and have them work with one another?

    Thanks for the confirmation Carl.
    How cool, then, would it be if ColdFusion 11 supported something like:
    <cfcomponent
         accessors="true"
         implicitpropertyprefix="my."
    That way I could specify "my." as the property prefix and when it goes to create those implicit getters and settings, it will concatenate that into 'variables.my.' as the prefix when it alters property values or returns them.

  • Can I put a SQL query into a bind variable and then use it to output report

    Hi,
    Can I put a SQL query into a bind variable and then use it to output report?
    I want to create a report and an item "text area" (say P1_TEXT) which can let user to input a SQL query(they are all technical users and knows SQL very well). Then, I use a bind variable (that text area) to store the SQL statement. Then, I add a submit button and I want to use the following to output the report:
    select * from (:P1_TEXT);
    Do you think it is possible to do that? Any known limitations for APEX in this area?
    Thanks a lot,
    Angela

    You can, but make sure it's what you really want to do. Make sure you are VERY familiar with SQL Injection. Most people who know what it is, go out of their way to prevent SQL Injection. You're going out of your way to allow it.
    You can try using &P1_TEXT. instead of bind variable syntax. Bind variables are one of the best ways to prevent SQL Injection, which is why it's not working for you.
    Once again, I strongly urge you to consider the implications of your app, but this suggestion should get it working.
    Tyler

  • How t orecuperate one variable and put it in an other variable in a query

    Hello !
    i am creating a query, i need to recuperate the agency selected by the user (Caractéristique 1) and in the same query, to insert it in an other Caracterisque wich is inside an ratio. ( for to filtre the ratio with this agency on an other Caractéristique 2.
    So Caractéristique 2 = Caractéristique 1.
    Thanks i hope it's clear !

    Thanks Arun and Mukesh ,
    why do you use it :
    data: yy(4). ???
    i put this code:
    WHEN 'ZP_AGCET'.
    IF i_step = 2.
    LOOP AT i_t_var_range INTO ls_var
    WHERE vnam = 'ZP_AGCET'.
    CLEAR ls_range.
    ls_range-low = ls_var-low.
    ls_range-high = ls_var-high.
    ls_range-sign = 'I'.
    ls_range-opt = 'EQ'.
    APPEND ls_range TO e_t_range.
    endloop.
    ENDIF.
      but the problem is when i enter in the first variable only one agency by launching the query , in the result, it returns in the seconde variable more than one agency, ( my agency and othors) why ??
    Thanks !

  • BW-Query with hierarchy variable and webi-prompt

    Hi,
    I think I've got a quite simple question.
    I've got a SAP-BW-Query and a hierarchy variable, and some none hierarchy variables.
    All Variables work in the webi-prompt.
    For the none hierarchy variables I've got the chance to search for values in the LOV, but I can't search for
    values in the hierarchies.Can I enable this function to search?
    Kind regards
    Lars

    Hi
    I post the error once again. I made an easier query and i saw that last time the forum did some strange things.
    A database error occured. The database error text is: Die MDX-Abfrage
    SELECT { [Measures].[DC59N8GR349ETCCV3ZHIFFWGC] } ON COLUMNS
    FROM [ZTESTM01/Z_ZTESTM01_TEST5_VARIABLE]
    SAP VARIABLES [!V000002] INCLUDING [0FISCPER].[V62009001]
    konnte nicht ausgeführt werden. Fehler Specify a value for variable
    MMEP_FISCPER. (WIS 10901)
    The query runs perfect in RSRT.
    When i put the statement
    SELECT
    { [Measures].[DC59N8GR349ETCCV3ZHIFFWGC] } ON COLUMNS
    FROM [ZTESTM01/Z_ZTESTM01_TEST5_VARIABLE]
    SAP VARIABLES [!V000002] INCLUDING [0FISCPER].[V62009001]
    in MDXTEST, it gives a result.
    Best regards,
    Florian

  • Declare, Set, and Use a variable in a SQL Developer Query

    I come from the SQL Server world and am trying to do something very simple: Declare, set, and use a variable in a query. For example:
    Declare @lastPeriod date;
    Set @lastPeriod = (select max(payperiod) from table 1 where payperiod < current_date);
    Select field 1,
    Field2
    From table2
    Where payperiod = @lastPeriod
    The variable is going to be used in more areas in the query which is why I am simply not using a Sub-query in the where clause. I appreciate any assistance.

    This forum is for issues with the SQL Developer tool. You'd get more response in the SQL And PL/SQL forum.
    That said, read up on bind variables and substitution variables.
    Whenever you can you should use Bind variables (e.g. *:lastPeriod* ), as they increase performance. In sqldev, there's no need to declare as you will be prompted to enter them on execution (F9), but you do if you execute as script (F5) (e.g. VARIABLE lastPeriod VARCHAR2(30);).
    Alternatively, Substitution variables (e.g. *&lastPeriod* ) will literally be substituted in your statement before the database parses it. In sqldev, there's no need to declare as you will be prompted to enter them on execution (either F9 or F5), but you can (DEF lastPeriod='TEST'; ).
    Have fun,
    K.

  • Query with tables of BKPF and BSEG and Structures COBL, RF05A

    hi experts,
              I want to create query with the tables of BKPF and BSEG and  Structures COBL, RF05A
    How can i proceed?
    Please give me complete points
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:52 PM

    check the common fields and required fields and the write SELECT query useing Inner Joins or For all entries
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 14, 2008 2:52 PM

  • Query about User Variables and Advanced Actions

    Hello,
    I am creating a clinical-based project using Captivate 5.I have to give you quite a bit of information before I can pose my questions so please bear with me.
    Users have to select multiple options from a checkbox widget (shown below).
    Each options, for example 'location' is associated with a variable for example 'hpi0' (See below):
    Each option has addtional data associated with it:
    Location = hpi0 (user variable)
    Location data = hpi0data (user variable)
    Please see the screenshot below:
    Notice in the image above that I have created a conditional advanced action - if the user selects Location (hpi0) on the checkbox widget, the data associated with that variable will be presented to them. That data (e.g. location data or hpi0data) is presented in a caption text box in the following slide. (see below)
    I hope I have given you enough information.This is a complex project and this is just one of my many problems.I have had to create over 200 hundred user variables and more than 6 Conditional Advanced Actions in one project. The project is becoming unstable. So here are my queries:
    1) Are there limits to the amount of user varables I can create in a project?
    2) If so, how can I re-use the user variables I have already created? Otherwise I will have to divide this project into 3 parts and I want to avoid doing that.
    3) Are there limits to the amount of Advanced actions I can create in a project?
    Again  I am using Captivate 5 for this project.
    Any assistance, tips or tricks would be greatly appreciated. I am learning captivate as I go so If there is away to streamline this process, I am open to any suggestions.
    Thanks
    Tinukwa

    Hello Tinukwa
    This is indeed a challenging project, and although I did create a lot of projects with advanced actions, they were never that size. You have to listen to Jim's words about using some widgets, he is a widget specialist which I'm not. I do not know if you are aware of the fact that the checkboxes widget coming with Cp was extended by Jim? He offers it on his website, I blogged about this extension and suppose you do know my blog. About the advanced actions, perhaps I could help but only screenshots are bit limited. So I wonder if either I could have access to the file and/or if we could have a Connect session eventually?
    First intuition tells me
    we should look to re-use variables, but I do need more information; do you need the vars XXXXdata somewhere else later? If not, perhaps only to display it you could use one variable; now you keep the information chosen by the user in 2 variables: hpi0 and hpi0data (isn't that redundancy?)
    and by choosing labels for variables, actions and objects in an intelligent way reduce the editing time because you'll need a lot of almost identical advanced actions. Usually I do a lot of reflection before starting to create labels, variables and actions.
    About re-using what you already constructed: as I explained once, a template is the only way to be able to re-use a script at the moment. And Kevin Siegel discovered (so gratefully for that) it is possible just to change the extension of a standard CP file to cptl to have a template.
    Lilybiri
    PS Jim suggest also to split up the project? Here I'm not sure if that is really needed.. should have been the case for previous versions.

  • Difference between sap query and sap ad hoc query

    Hello Experts-
    Is there any difference between sap query and sap ad hoc query. If yes, I will appreciate if you can provide some input.
    Thanks,

    Hi,
    SAP Query
    Purpose
    The SAP Query application is used to create reports not already contained in the default. It has been designed for users with little or no knowledge of the SAP programming language ABAP.
    SAP Query offers users a broad range of ways to define reports and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    Classic reporting- the creation of lists, statistics and ranked lists- are covered by the InfoSet Query and Queries components. Other components’ range of functions cover the maintenance of InfoSets, the administration of user groups and also the translation of texts created in the SAP Query.
    All data required by a user for a report can be read from various tables.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. In the WYSIWYG mode, you can edit the lists using Drag & Drop and various toolbars.
    AD Hoc Query
    Definition
    A Web item that enables you to create and change queries in a Web application on an ad-hoc basis.
    Use
    You can use the  Ad-hoc Query Designer Web item in the Web Application Designer to structure Web applications in which you create or change queries. The Web item is as a tool for designing ad-hoc queries in a Web environment.
    In particular it enables you to:
    ·        Create queries by assigning characteristics from an InfoProvider to rows, columns, filters, and free characteristics, and including key figures from the InfoProvider in the key figure structure of the query.
    ·        Restrict or filter key figures and characteristics
    ·        Use predefined key figure structures and restricted or calculated key figures in the query
    ·        Set or change query properties and key figure/characteristic properties in the query
    ·        Create or change conditions and exceptions
    When compared with the BEx Query Designer, the Ad-hoc Query Designer Web item has the following restrictions when creating or changing queries:
    ·        You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    ·        The query can contain only one structure. This structure has to be the key figure structure and be in the rows or columns of the query.
    -        You cannot use key figures or key figure structures in the filter.
    -        You cannot define exception cells, since this requires two structures.
    You cannot create the following objects using the Ad-hoc Query Designer Web item:
    -         Reusable structures
    -         Reusable restricted key figures
    -         Reusable calculated key figures
    -        Local calculated key figures
    You can create local, restricted key figures using the Ad-hoc Query Designer Web item.
    You can edit existing queries in the Ad-hoc Query Designer Web item, if the queries adhere to the restrictions laid out above The Ad-hoc Query Designer checks these requirements when loading a query. If the query is too complex, the query can be loaded into the Ad-hoc Query Designer but you cannot change it there. You then receive the appropriate message. You can still check and execute the query.
    "Ad Hoc" is a Latin phrase which means "for this purpose" and in today's parlance generally means "on the fly," or "spontaneously."
    An ad hoc query is a query that is run at the spur of the moment, and generally is never saved to run again. These queries are run using a SQL statement created by a tool or an administrator. So therefore, such a query is one that might suit a situation which is only there for the moment and later on will become irrelevant.
    As queries become more complex, it can be difficult to write them correctly ad-hoc. To help with this, one can instead write the knowledge needed for queries as business rules in English, and then use a system called "Internet Business Logic" to automatically generate and run the SQL queries. One can then get explanations of the results, in English, at the business level.
    Check these links....
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80bf2f79-021d-2a10-5082-dadc79aaa92c
    http://www50.sap.com/businessmaps/27FEEF3A12444F89A8524CCACAF4F5BF.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/15/00a042b443c56ae10000000a155106/content.htm
    Reward points if useful....
    Regards
    AK

Maybe you are looking for

  • My iMac wants to connect to another machine on startup

    Hi All, I purchased a new iMac a few weeks ago and went through the Migration Assistant to move stuff from my old G5. I did it via the ethernet method since I didn't have a fw800/400 cable to connect the 2 machines.  There was a slight hiccup in that

  • Header File Not Found

    I installed the TestU01 Suite for testing some random number generators I am working on, but when I use the #includes in my code, the systems says it can't find them at compile time. I followed the instructions for downloading and installing the libr

  • Why won't Premiere Elements 8 launch on windows 7?

    I have installed photoshop and premiere elements 8 onto my new computer from the original disks that I purchased a few years ago.  Photoshop launches fine.  Element, however, goes into the welcome screen and all looks well...that is until I try to la

  • Link software update problem

    I currently have Link 1.0.0.76 and it says that there is an update available. I am running Win 7 64-bit I select  to install it and part way thru the install I get the following error and the upgrade is backed-out. Any suggestions? Error 1723. there

  • Where can I find the phone menu icon used in the sample flyout menu tutorial?

    Where can I find the phone menu icon used in the Muse phone menu flyout tutorial? It is a .little box with an arrow on te left and three lines center/right.