HOW TO CREAT VARIANT IN QUERY

Hi,
its very simple question but i want the procdure for it.
how to creat variant in query &maintain?don't give URL's i try it already plzzz.any body have the steps regarding this topic..
plzzzzzzzz urgent ...
thanks,
goodyear..

Hi,
If you're using the BEx Analyzer, you can create a variant at the variable selection screen. There is a button "save as variant" and you can also maintain existing variants.
Best regards.
LauQ

Similar Messages

  • How to Create a Functiona Query

    Dear all,
    Could any body detail me how to create a functional query. Please give me step by step procedure to create a query.
    I would appreciate if you can give me a material with screen shots. Your help will be highly appreciated.
    Thank you
    Raghu Ram

    Hi Raghu,
               Go through this document it may help you,
    SAP Query
    Step 1: Create User Group – SQ03
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > User Groups
    a) In the User Group: Initial Screen -
    Enter User Group Code (self named)
    Click on “Create”
    b) In the User Group (Code): Create or Change pop-up window -
    Enter the User Group Description
    Click on “Save”
    c) In the Create Object Directory Entry pop-up window -
    Ö Click on “Local Object” button
    Ö The User Group Created is saved
    Step 2: Create User Group – SQ02
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > Infosets
    a) In the Infoset: Initial screen -
    Ö Enter Infoset Code (self named)
    Ö Click on “Create” button
    b) In the Infoset: Title & Database Screen -
    Ö Enter Description of Infoset in the “Name” field
    Ö In the Data Source selection: Select appropriate Data Source by clicking
    the radio button
    · Source the data can either be multiple tables OR single table. There are 4
    options for the user to select from
    Ö Click on “Continue” (Enter)
    Ö Selected Table gets displayed in the Infoset : Initial Screen
    c) In the Infoset: Initial Screen -
    Ö Click on “Insert Table” button
    d) In the Add Table Screen -
    Ö Enter the Table Name that is to be inserted
    Ö Click “Continue” (Enter)
    e) In the Infoset: Initial Screen -
    Ö Click on “Back” button
    f) In the Field Group Defaults pop-up Screen -
    Ö Select Appropriate Field Group Option by clicking on the radio button
    · there are 3 options to select from. User can select Empty Field Group
    option and then select the data fields in the steps explained further.
    Alternatively, User can select an option which clubs all the data fields
    From all the tables selected
    Ö Click “Continue” (Enter)
    g) In the Change Infoset Screen -
    · the left side lists the Tables that the user has selected in step b, c & d
    · In the right side, system creates field groups, one for each table listed in the
    left part. Initially, the Field Groups are empty
    Ö In the Left Side, Click on the arror next to the table name and expand and
    display all the data fields in the table
    Ö Select a Data Field from the expanded Table view, which is to be added to
    the Field Group on the right.
    Ö Select a Field Group on the right side, in which Data Field selected above
    has to be added
    Ö Right click on the Data Field selected and click on “Add Field to Field Group”
    Ö The selected Data Field gets added to the selected Field Group, which is
    indicated by an arrow next to the Field Group.
    Ö Carry out the steps above to add the required Data Fields to the respective
    Field Groups
    Ö After transferring Data Fields to Field Groups click on “Generate” button
    h) In the Create Object Directory Entry Screen -
    Ö Click on “Logical Object” button to generate the infoset
    i) In the Change Infoset Screen -
    Ö Click on the “Back” button
    j) User is taken back to the “Infoset: Initial Screen” which displays the
    created Infoset record.
    Step 3: Assigning User Group to Infoset – SQ03
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > User Groups
    a) In the User Groups: Initial screen -
    Ö Enter the User Group for which Infoset is to be assigned
    Ö Click on “Assign Users & Infosets” button
    b) In the User Group: Assign Users Screen -
    Ö Click on “Assign Infosets” button
    c) In the next screen, select the Infoset, which needs to be attached to the
    User Group selected
    d) Click on the “Back” button
    Step 4: Creating Query – SQ00 & SQ01
    Follow the menu path – SAP Menu > Tools > ABAP Workbench > Utilities > SAP Query > Queries
    a) In the “Query from User Group: Initial Screen -
    Ö Click on “Other User Groups” button
    Ö In the pop-up screen, User Groups, select the User Group for which the
    Query has to created. The pop-up screen closes.
    Ö Enter the Query Code in the “Query” field
    Ö Click on “Create” button
    b) A pop-up screen “Restrict Value Range” shows the list of Infosets assigned to
    the User Group
    Ö Select the Infoset for which Query has to be created
    c) In the new screen Create Query: Title, Format -
    Ö Enter the Description of the Query in the “Title” field
    Ö Click on the “Next Screen” button
    d) In the Select Field Group” screen
    Ö Select the Field Groups from which Data Fields have to be selected for the
    Output
    Ö Click on the “Next Screen” button
    e) In the “Select Field” screen -
    Ö Select the Data Fields, which should appear in the output
    Ö Click on the “Next Screen” button
    f) In the Screen “Selection” -
    Ö Select the Data Fields for the selection criteria
    Ö Enter the sequence in which the selected fields would appear in the input
    screen of the query.
    Ö Define if the selection criteria should be Single Value or Multiple Value Range
    by clicking in the appropriate check boxes
    Ö Click on the “Basic List’ button
    g) In the screen “Query Layout Design” -
    Ö Select the Output Fields from the Data Fields section by clicking the
    appropriate check box
    Ö Change the sequence of Data Field columns if required
    Ö Click on the “Test” button to test the query created
    h) On the “Test Query” screen click “Continue”
    i) In the “Query” screen -
    Ö Enter the selection criteria
    Ö Click on “Execute” button
    j) Save the Query created
    Step 5: Running the Query – SQ00
    a) In the Query From User Group: Initial screen –
    b) Click on “Other User Groups” button to select the User Group
    c) In the pop-up screen “User Groups” select the User Group
    d) System lists all the queries created for the User Group
    e) Select the appropriate Query
    f) Click on “Execute” button
    g) User is taken to the Selection screen
    h) Enter the selection criteria and click on “Execute” button
    i) System runs the query and gives the output
    Regards,
    Murali.

  • How to create variant for table/view ?

    Hi,
    When I go through SM30, I find a radio button called variant. I don't know the effect.
    Can anyone tell me how to create variant for table / view ?
    I want to know when we need to create variant for table/view.
    Best regards,
    Chris Gu

    hi ,
    Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
    For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
    If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant
    Procedure
    To create a new variant:
           1.      On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.
           2.      On the variant maintenance initial screen, enter the name of the variant to be created.
    Note the naming convention for variants (see below).
           3.      Choose Create.
    If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.
           4.      If there is more than one selection screen, select the screens for which you want to create the variant
    5.      Choose Continue.
    The (first) selection screen for the report appears.
    If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.
           6.      Enter the desired selection values, including multiple selection and dynamic selection.
           7.      Choose Continue.

  • HOW TO Create  variants for transaction MASS on LFA1 object?

    hOW TO Create  variants for transaction MASS on LFA1 object?
    Edited by: cheppalliakr on Nov 10, 2011 1:09 PM
    Moderator message: please do more research before asking, show what you have done yourself and provide more information when asking.
    Edited by: Thomas Zloch on Nov 10, 2011 3:10 PM

    Hi Oscar ,
    You need to create optional date prompt variable  in BW which fills your requirement .
    Ex : If you require report should always run for 1st of the month to last of month .Then create Optional date variable in BW with interval .write customer exit ,
    if from date is left blank it should take 1st of the month and if todate is left blank it should take last of the month .
    when creating webi schedules , leave prompts as blank.

  • How to create Variant Configuration Material Master in SAP PP

    Dear Friend's,
    Pl 's guide me for How to Create Variant Configuration Material Master.
    Give me step by step procedure for Creation of Variant Configuration.If some of you having screen shots for the same with one Example, that will be a very helpful to me for creating  VC.
    Thanks & Regards,
    Sandeep N.Theurkar

    Hi,
    Eg: Ford car.If a sale order is raised for fiesta lxi model the system should choose red colour & for vxi blue colour respectively.
    ie you need to define the characteristic and assign the values .
    This characteristic need to assigned to class.
    class need to be assigned to material master
    1. T.code : CT04(characteristic) FORD_MODEL, Choose single value & entry required tab & give the input as 01 - fiesta_lxi & 02 - fiesta_vxi.( characteristic values)
    2.Tcode: CT04, FORD_BODY( another characteristic)
    Choose single value , don't click entry required.
    01 - Red( characteristic values)
    02- Blue
    3. Create class T.code : CL02
    fiesta_class
    type : 300
    4. OBJECT DEPENDENCY:
    T.CODE : CT04
    FORD_MODEL
    CLICK VALUES TAB,
    IN FIESTA_LXI CLICK THE 'O' meant for Obj dependency, action & extra.
    Edit the dependecy,
    010 $Self.ford_body = '01'. & save
    Repeat the same for FIEST_VXI & instead of '01' give '02' for blue colour.
    , then create a ROH as ford_body. & a KMAT material for the car. .
    Then create a Super BOM with usage 3 & give component as ford_body
    Then use T.code cu41 (Create config profile)
    enter a profile name & class 300 & choose class assignment, choose fiest_class ,
    Use T.code cu50 to check the values.
    Then create a sale order.
    Pl. reward if helpful.
    Regards,
    nandha

  • How to create variant for selection screen which is in subscreen

    Hi,
    How to create variant for selection screen which is in subscreen in a module pool program?
    it is very urgent.
    Thanks in advance.

    Hi,
    You can create the 'Parameter Transaction' so that whenever you run the particular transaction it will run with the initial value given when the Tcode was created and hence you can skip the initial screen of the module pool program.
    To create Parameter transaction from SE93 you have to choose the last option i.e Parameter Transaction.
    Regards
    Sudheer

  • Reg: How to create Variants for program SAPF120

    Hi SAP gurus,
    How to create variants for programm SAPF 120.
    with regards
    JK rao

    Hi,
    I suppose you intend to include 22 more Recurring Documents in the F.14 screen in an existing variant. Please check if these 22 are Recurring Docs in FBD3. And make sure that all 48 are appearing in the Document Number (Multiple Selection) tab of F.14. You can test (in a test system) by executing after inclusion and not necessarily saving as variant to make sure that BI session includes all 48 docs.
    Rgds.

  • How to create Variant file for ECATT(MM01)?

    Any one know how to create variant file for ECATT (MM01)

    Hello TJK,
    What do you mean by variant file? Please give some more details.
    Meanwhile here is the link on how to use eCATT,
    New to Materials Management / Warehouse Management?
    Hope this helps.
    Regards
    Arif Mansuri

  • How to create an ABAP Query with OR logical expression in the select-where

    Hi,
    In trying to create an ABAP query with parameters. So it will select data where fields are equal to the parameters entered. The default logical expression is SELECT.. WHERE... AND.. However I want to have an OR logical expression instead of AND.. how can I attain this??
    Please help me on this.. Points will be rewarded.
    Thanks a lot.
    Regards,
    Question Man

    Hi Bhupal, Shanthi, and Saipriya,
    Thanks for your replies. But that didn't answer my question.
    Bhupal,
    You cannot just replace AND with OR in an ABAP QUERY. ABAP QUERY is a self generated SAP code. You'll just declare the tables, input parameters and output fields to be displayed and it will create a SAP standard code. If you'll try to change the code and replace the AND with OR in the SAP standard code, the system will require you to enter access key/object key for that particular query.
    Shanthi,
    Yes, that is exactly what need to have. I need to retireve DATA whenever one of the conditions was satisfied.
    Saipriya,
    Like what I have said, this is a standard SAP code so we can't do your suggestion.
    I have already tried to insert a code in the ABAP query (there's a part there wherein you can have extra code) but that didn't work. Can anybody help me on this.
    Thanks a lot.
    Points will be rewarded.
    Regards,
    Question Man

  • How to create a dyanamic query in PL/SQL from XML

    Hi Forum,
    I am having an XML file with tags. I am controlling my JSP page layout with these tags and it is working fine. But I need to send the Orange colour nodes to a pl/sql in the JSP page to construct the query as per the XML
    <?xml version="1.0"?>
    <Jobmanage>
    <Customer name="StGeorge">
    <Column>
    <Name>QM_NUMBER</Name>
    <Title>Job Number</Title>
    <Width>10</Width>
    <Font>Arial</Font>
    <Size>10</Size>
    <Align>center</Align>
    <Display>Yes</Display>
    <cloumn1> QM_NUMBER <column1>
    </Column>
    <Column>
    <Name>QM_JOB_STATUS</Name>
    <Title>Job Status</Title>
    <Width>10</Width>
    <Font>Arial</Font>
    <Size>105</Size>
    <Align>center</Align>
    <Display>Yes</Display>
    <column2>QM_JOB_STATUS</column2>
    </Column>
    <Column>
    <Name>QM_USER_STATUS</Name>
    <Title>User Status</Title>
    <Width>10</Width>
    <Font>Arial</Font>
    <Size>10</Size>
    <Align>center</Align>
    <Display>Yes</Display>
    <column3>QM_USER_STATUS</column3>
    </Column>
    </Customer>
    </Jobmanage>
    The select statement I am using n the JSP page is
    SELECT Q.QM_NUMBER, Q.QM_JOB_STATUS, Q.QM_USER_STATUS FROM QMI Q WHERE ((Q.QM_JOB_STATUS IN (5, 6, 7, 8, 9, 10)) OR (Q.QM_JOB_STATUS IN (12) AND Q.QM_CLOSE_DATE >= SYSDATE - INTERVAL '6' MONTH))
    Can you give me instructions how to create the above SQL statement dynamically as per the XML file. I want the select statement in a pl/sql
    BEGIN
    SELECT Q.QM_NUMBER, Q.QM_JOB_STATUS, Q.QM_USER_STATUS FROM QMI Q WHERE ((Q.QM_JOB_STATUS IN (5, 6, 7, 8, 9, 10)) OR (Q.QM_JOB_STATUS IN (12) AND Q.QM_CLOSE_DATE >= SYSDATE - INTERVAL '6' MONTH))
    END
    So, when ever the columns hirerachy changed in the XML file it should show theat effect in the PL/SQl. Thats hoe I am aiming to develop.
    Thankx for you time.
    Cheers,
    Krishna

    I want the select statement in a pl/sql BEGIN
    SELECT Q.QM_NUMBER, Q.QM_JOB_STATUS, Q.QM_USER_STATUS FROM QMI Q WHERE ((Q.QM_JOB_STATUS
    IN (5, 6, 7, 8, 9, 10)) OR (Q.QM_JOB_STATUS IN (12) AND Q.QM_CLOSE_DATE >=
    SYSDATE - INTERVAL '6' MONTH)) ENDThat doesn't make sense. Such a plsql block would not compile. What is your final goal you want to achieve with this?

  • How to create Variant for braodcasting in BI 7.0

    Hi,
    As we create variants in BW 3.x using table TVARVC and
    t-code STVARV to enter variable to be updated as per requirement and a code for the same.
    And we will get variant in selection screen of report with updated values.
    Can some one tell me how can we do the same in BI 7.0?
    Please reply soon.
    Thanks.
    Santosh

    In the old SAP BW 3.5 version, we used a program that runs everyday after midnite that sets date variables in TVARVC.  The end user could specify which variable from TVARVC to fill the data field in the variant.  We have the user save the workbook and then distribute it via the Web Broadcaster.
    The workbooks are sent via email if things work OK.
    Are you saying we can do something similar using RSRVARIANT?  If we insert a row into RSRVARIANT, will the user be able to replace a field in their variant with the value?
    Here are some of our variables in TVARVC:
    Table:          TVARVC                                                   
    Displayed Fields:   9 of   9  Fixed Columns:                 4  List Width
                                                                                    MANDT NAME                           TYPE NUMB SIGN OPTI LOW                                                                               
    010   Z_PRIOR_FISCAL_PERIOD          P    0000           10/2005      
       010   Z_PRIOR_FISCAL_PERIOD          S    0000 I    EQ   10/2005      
       010   Z_PRIOR_WEEKLY_PERIOD          P    0000           43/2005      
       010   Z_PRIOR_WEEKLY_PERIOD          S    0000 I    EQ   43/2005                                                                               
    This would be for the October 2005 time frame.  In November the Z_PRIOR_FISCAL_PERIOD
    would get bumped up to 11/2005 which would have been November 2005.
    We have a batch procedure that updates the values in TVARVC table.  The user
    can choose with date value to run with.  In the old version everytime the variant
    is accessed, the current value of the variable Z_PRIOR_FISCAL_PERIOD would be fetched,
    so this is the way we could have monthly and weekly batch jobs run for precalculation
    and not get the same date range over and over again.
    How can be give the user an option to choose a variable like the above?
    Do we need to use Microsoft Excel VBA to call SAP BW to call custom code?
    Yes, we can update rsvariant table contents with a program.  But how will we "know"
    which date range the user wants unless they can choose which variable they want to use?
    Has anyone been able to do this?
    Thanks,
    Chris

  • How to create a select query to compare a collection via jpa?

    I'm new to jpa (java persistence) and its query language.
    If I've an entity named "Person" with a collection of Addresses (a one-to-manay relationahip), how do I create a Select query to get a person by using a collection of Addresses as its input parameter?
    Would "SELECT p FROM Person p JOIN p.addresses = :addresses" work?

    Hi,
    You can try the below logic:
    STATISTICS.date_reg} >= '27-may-2011' and { STATISTICS.date_reg} < ' 27-June-2011'
    I guess you are trying to apply this condition.
    Here in selection formula you need not to give select and from.
    Cheers,
    Kiran

  • How to Create Specific SAP Query for Sales BOM

    Dear All Salute !!
    How I can create a SAP Query which provide information from the Sales Order-Line Item, this specific material is having any BOM or not?
    Suppose, user want Input,
    Sales Order No., Product Category, Duration of Sales Order Release.
    want Output,
    Sales Order No., Customer No., Customer Description, Sales Order Line Item, Material No., Material Description, Delivery Date, Quantity, Sales Order release Date
    Users requirement is, List of All Line Items for which BOM is yet to be Uploaded in the System.
    Please provide complete detail with Table & field by using SAP Query.
    Rgds
    Srivastav
    +91-9973504950

    If I am correct, in table KDST, you can see the details of Sales BOM with sale order.  Since right now, I dont have access to SAP, I am unable to confirm this.  You have to consider this table and develop on your own logic with the help of ABAPer.
    thanks
    G. Lakshmipathi

  • How to create Variants in Web Dynpro using ABAP

    Can anyone please tell how to create and save variants in a Web DynPro application using ABAP.
    Also state the steps involved in saving and loading the variants.

    hi,
    For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
    One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
    Regards,
    Jithin

  • How to create Ad Hoc Query

    Hi Experts,
    Can anyone explain me the configuration steps required to create Ad hoc Query. Please give me the step by step procedure to create Ad hoc Query, since i am new to this assignment.
    Regards,
    Shadeesh.G
    Please type Adhoc Query in search forum you will find lot of threads related to this issue
    Edited by: Sikindar on Oct 27, 2010 4:22 PM

    Shadeesh,
    We were all new at some time or the other.
    Please try some well established sources of help such as help.sap.com
    A quick hint is to use the transactions SQ03, SQ02 and SQ01. A better way would be to progress a certain distance yourself and then ask for help here when you get stuck.

Maybe you are looking for