Querying a table based on a selection criteria

Hi Gurus,
Could you please help me in creating a function module that picks records from the table based on certain selection criteria.For eg, If contract number(a primary field) is an import parameter and I want the Function module to export all the records with contract number starting with 1 or may be ending with 303.How could I query this??
Thanks,
Ashwini

Hello,
Creation of Function Module
Goto TCode SE37
Click on the Menu Goto->Create Function Group
Create Z (ZPTP) function group and Activate Function Group even if the error occurs
Create Function module Namely Z (ZTEST) assign to the function group (ZPTP)
Go to the Import parameters (EBLEN TYPE EKKO-EBELN)
Go to the Tables ( itab type ekpo)
Goto the Source code
tables ekpo.
Select * from ekpo into table itab
where ebeln eq ebeln.
Activate the function module and run the function
regards
suresh nair

Similar Messages

  • Webtemplates - Disply Group Of Key Figures based on the selection criteria

    Hello,
    I have a requirement of displaying Kefigures based on the selection criteria in the browser.
    Assume that I have Query with the following set of key figures.
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    Plan_KF in units T3
    Actual_KF in units T3
    Difference in units T3
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    1) I should have drop down box with values
    CSE
    T3
    PAK
    2) If user selects PAK then query should display only the key figures with units in PAK
    i.e.
    Plan_KF in units PAK
    Actual_KF in units PAK
    Difference in units PAK
    If user selects CSE the query should display only key figures
    Plan_KF in units CSE
    Actual_KF in units  CSE
    Difference in units CSE
    I tried using the DropDown Box - (not much usefull to select more than one Key Figure)
    and CheckBox web items - I have to do multiple selections (Not very much suitable if the Key figures are too many).
    I appreciate your timely help.
    system specifications:
    SAP_BW - 310
    Front-End - 6.20
    Advanced Thanks,
    Ramana

    Hi,
    One alternative would be to save two additional copies of the query (each with different units) and code your dropdown box with the RESET_DATA_PROVIDER command.
    So if your queries were:
    Z_QUERY_CSE
    Z_QUERY_T3
    Z_QUERY_PAK
    You would define the default unit (I'll assume CSE) in yoru web template, and code your dropdown box entries to switch the Data Provider (I'll asume DP1) to the appropriate query.
    The code behind "T3" in your dropdown box would be:
    <SAP_BW_URL DATA_PROVIDER='DP1' CMD='RESET_DATA_PROVIDER' INFOCUBE='Z_CUBE1' QUERY='Z_QUERY_T3'>
    http://help.sap.com/saphelp_nw04/helpdata/en/bd/43143c1ab8ff1ae10000000a11405a/frameset.htm
    Two things to look out for in this work-around:
    1) Number of queries increases by a factor of 3
    2) Performance implication in replacing the data provider with a new query.

  • Pl/sql function querying 2 tables based on bind variable

    hey guys, I'm pretty new to pl/sql, but basically I just want to use a select statement based on a searchfield that pulls from 1 of 2 tables based on a bind variable. Here's what I've got so far, but I'm gettting an error message:
    declare
    q1 varchar2(32767); -- query
    q2 varchar2(32767); -- query
    begin
    q1 := 'select distinct(CBP_CONTENT_CATEGORY) CATEGORY, ' ||
    ' CBP_FIELDNAME FIELDNAME, ' ||
    ' CBP_CONTENT_DESC DESCRIPTION ' ||
    ' from CBP_METADATA_2005 ' ||
    ' WHERE UPPER(CBP_CONTENT_CATEGORY) LIKE '%' || UPPER(:CBP_SEARCHFIELD) || '%'
    ' or UPPER(CBP_CONTENT_DESC) LIKE '%' || UPPER(:CBP_SEARCHFIELD) || '%';
    q2 := 'select distinct(CBP_CONTENT_CATEGORY) CATEGORY, ' ||
    ' CBP_FIELDNAME FIELDNAME, ' ||
    ' CBP_CONTENT_DESC DESCRIPTION ' ||
    ' from CBP_METADATA_2004 ' ||
    ' WHERE UPPER(CBP_CONTENT_CATEGORY) LIKE '%' || UPPER(:CBP_SEARCHFIELD) || '%'
    ' or UPPER(CBP_CONTENT_DESC) LIKE '%' || UPPER(:CBP_SEARCHFIELD) || '%';
    if :CBP_YEAR = '1' THEN
    q1=q1
    RETURN q1
    ELSIF :CBP_YEAR = '0' THEN
    q2=q2
    end if;
    RETURN q1;
    end;
    and here's the error:
    failed to parse SQL query:
    ORA-06550: line 1, column 8:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    begin function package pragma procedure subtype type use
    form
    current cursor
    The symbol "" was ignored.
    ORA-06550: line 4, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with

    LDub,
    Your function is full of errors. First of all you didn't escape quotes and second, you didn't use the concatination operator properly. Beside that, there was a bit too much of code there. Here is the modified code that will work for you:
    DECLARE
    q1 VARCHAR2 (32767); -- query
    q2 VARCHAR2 (32767); -- query
    BEGIN
    q1 :=
    'select distinct(CBP_CONTENT_CATEGORY) CATEGORY, '
    || ' CBP_FIELDNAME FIELDNAME, '
    || ' CBP_CONTENT_DESC DESCRIPTION '
    || ' from CBP_METADATA_2005 '
    || ' WHERE UPPER(CBP_CONTENT_CATEGORY) LIKE ''%'' || UPPER(:CBP_SEARCHFIELD) || ''%'''
    || ' or UPPER(CBP_CONTENT_DESC) LIKE ''%'' || UPPER(:CBP_SEARCHFIELD) || ''%''';
    q2 :=
    'select distinct(CBP_CONTENT_CATEGORY) CATEGORY, '
    || ' CBP_FIELDNAME FIELDNAME, '
    || ' CBP_CONTENT_DESC DESCRIPTION '
    || ' from CBP_METADATA_2004 '
    || ' WHERE UPPER(CBP_CONTENT_CATEGORY) LIKE ''%''|| UPPER(:CBP_SEARCHFIELD) || ''%'''
    || ' or UPPER(CBP_CONTENT_DESC) LIKE ''%'' || UPPER(:CBP_SEARCHFIELD) || ''%''';
    IF :cbp_year = '1'
    THEN
    RETURN q1;
    ELSIF :cbp_year = '0'
    THEN
    RETURN q2;
    END IF;
    END;
    Denes Kubicek

  • How to call the same query more than once with different selection criteria

    Hi,
    Please do anybody know how to solve this issue? I need to call one query with the fixed structure more than once with different selection criteria. For example. I have following data
    Sales organization XX
                         Income 2008  Income 2009
    Customer A       10                 20
    Customer B        30                  0
    Sales organization YY
                         Income 2008  Income 2009
    Customer A        20                5
    Customer B        50                10
    Now, I need this. At the selection screen of query, user fill variable  charakteristic "Sales organization" with interval  XX - YY, than I need to generate two separate results per sales organization, one for Sales Organization XX and the second for SO YYwhich will be displayed each on separate page, where result for SO YY will be dispayed under result for SO YY. Are there some options how to do it for example in Report Designer or WAD or with programming? In Report Designer is possible to use one query more than once, but I dont know how to force each query in RD to display result only for one Sales Organization, which will be defined in selection screen.
    Thank you very much
    J.

    Hello,
    thanks to all for cooperation. Finally we solved this issue with the following way..
    User fill appropriate SO on the selection screen, which is defined as range. This will resulte, that selected SO are listed in report below each othe (standard behavior). Required solution we achieved with the Report Designer, we set page break under each Result row of RD. This caused, that report is divided into required part per SO, which are stated each on separate page.
    J.

  • Filter one table based on user selection

    Hi all ,
              I am creating simple employee data application in VC. It consists of roadmap. On first step user searches for employee by giving first name , last name then he searches for employee and all the data related to employee's is fetched out at one shot through BAPI_EMPLOYEE_GETDATA. Now after step one no of employee comes.
    When I select one record I want that for the selected rows employee's personal data should be fetched out from another table (which is populated during first BAPI call). so I want to pass the selected key value and filter that table based on passed value to table and filter the table .
    Kindly give a solution as to implement filter on a table without making another BAPI call .
    Thanks in advance
    Abhay

    Hi Abhay,
    There's a trick to get a 'dynamic' filter (i.e. a filter that filters on a value that can change) out of the normal static filters:
    Just click on the output of your data source, then 'configure' and on the '+'  - sign in the lower right corner. Add a boolean field called 'condition', for example. Then, you write the condition that filters out the row(s) that you need. In the filter that comes next in the dataflow you just filter on this 'condition' - field being true.
    Hope that helps,
    Sincerely,
    Florian

  • Calling table maintainance based on particular selection criteria

    Hi All,
    I have created a transaction code for a table. I want to call this table using the transaction from a module pool. I also created the table maintainance genereator for the table.
    Here the requirement is I want to display the table details based on the plant. (My table contains plant as one of the field.and entries will be maintained for each plant).
    My module pool screen contains few pushbuttons. If I press one of the push button it should take me to the maintainance screen of the table for that particular plant.
    Regards,
    Kishore.

    Hi,
          Use the FM VIEW_MAINTENANCE_CALL as shown below.
    action = 'U'.
    CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
         EXPORTING
              action                         = action       "'U'
    *         CORR_NUMBER                    = '          '
    *         GENERATE_MAINT_TOOL_IF_MISSING = ' '
    *         SHOW_SELECTION_POPUP           = ' '
              view_name                      = <UR Z TABLE NAME>
    *         NO_WARNING_FOR_CLIENTINDEP     = ' '
    *         RFC_DESTINATION_FOR_UPGRADE    = ' '
    *         CLIENT_FOR_UPGRADE             = ' '
    *         VARIANT_FOR_SELECTION          = ' '
         EXCEPTIONS
              client_reference               = 1
              foreign_lock                   = 2
              invalid_action                 = 3
              no_clientindependent_auth      = 4
              no_database_function           = 5
              no_editor_function             = 6
              no_show_auth                   = 7
              no_tvdir_entry                 = 8
              no_upd_auth                    = 9
              only_show_allowed              = 10
              system_failure                 = 11
              unknown_field_in_dba_sellist   = 12
              view_not_found                 = 13
              OTHERS                         = 14.
    Thanks
    Nayan

  • Sum the value of look up table based on two filter criteria

    Hello Everyone
    I am new to Powerpivot and would appreciate if someone could help me on the following problem.
    You can download the example of this excel file form the following DropBox link:
    Dropbox Link
    The first table is tOrders
    Week number
    Work center
    order number
    Production time in minutes
    2
    a
    111
    60
    2
    a
    112
    70
    2
    b
    113
    60
    3
    b
    114
    50
    3
    a
    115
    40
    3
    b
    116
    60
    4
    a
    117
    90
    4
    b
    118
    40
    The second is dLookupList
    Week number
    Work center
    mantenace in minutes per week
    Break dows in minutes per week
    2
    a
    10
    10
    2
    b
    20
    5
    3
    a
    15
    12
    3
    b
    30
    10
    4
    a
    20
    10
    4
    b
    10
    10
    I’m trying to create Pivot that has filter on Week number to show the number of orders, Sum of Production time in minutes and the total of the values form the lookup table dLookupList that matches the work center and the selected week
    numbers. So that I can calculate the total time for each work center.  Filter criteria is Week number and Work center.  
    For example if someone select all weeks numbers the result sould look like this
    Week number
    (All)
    Work center
    Count of order number
    Sum of Production time in minutes
    mantenace in minutes per week
    Break dows in minutes per week
    Total time
    a
    4
    260
    45
    32
    337
    b
    4
    210
    60
    25
    295
    Grand Total
    8
    470
    Result for week 2
    Week number
    2
    Work center
    Count of order number
    Sum of Production time in minutes
    mantenace in minutes per week
    Break dows in minutes per week
    Total time
    a
    2
    130
    10
    10
    150
    b
    1
    60
    20
    5
    85
    Grand Total
    3
    190
    How can I relate these two tables to get the above result?
    Any help is highly appreciated.
    Regards
    Priyan

    Hi Recio
    Thank you very much for the swift response. I was able to get it work.
    I got two questions:
    How do you add a total time column to the pivot table like you did? Because there are no calculated field in power pivot.
    I prefer that the filter is based on the Orders table. So that if you select all Week numbers in the filter, that pivot will show result for all orders and relevant sums from the lookup list.
    Link download the example file
    For example: I add Week number 5 to the work center “a”
    Week number
    Work center
    WNandWC
    mantenace in minutes per week
    Break dows in minutes per week
    2
    a
    WN2WCa
    10
    10
    2
    b
    WN2WCb
    20
    5
    3
    a
    WN3WCa
    15
    12
    3
    b
    WN3WCb
    30
    10
    4
    a
    WN4WCa
    20
    10
    4
    b
    WN4WCb
    10
    10
    5
    a
    WN5WCa
    1
    1
    In the orders table there are no records for week number 5
    Week number
    Work center
    WNandWC
    order number
    Production time in minutes
    2
    a
    WN2WCa
    111
    60
    2
    a
    WN2WCa
    112
    70
    2
    b
    WN2WCb
    113
    60
    3
    b
    WN3WCb
    114
    50
    3
    a
    WN3WCa
    115
    40
    3
    b
    WN3WCb
    116
    60
    4
    a
    WN4WCa
    117
    90
    4
    b
    WN4WCb
    118
    40
    4
    a
    WN4WCa
    119
    50
    But the pivot sums up the week number 5 also.
    Do you have any idea how to solve it?
    Thank you very much.
    Regards
    Priyan

  • How to update records in a table based on user selection..

    Hi all,
    This time the above doubt is totally based on the logic of coding which I tried a lot but didn't get any solution. so atlast I come to sdn site.
    please help..
    The requirement is like that I have a table with 6 fields (1 primary key and other are nonkeys). If the user inputs some values in the fields on the screen, then a row will be added in the table. Upto this i have done well. but when the user want to change some value  in the existing row of the table my program unable to do so. Because I couldn't get any logic to do that as there are 5 nonkey fields, so if any one field is modified then the respective row should be selected first based on the user selection and then it should be updated.
    At this point I could not get any idea as it may take a lots of if conditions (I guess) to reach to that particular row.
    Please help..
    thanks ,
    sekhar

    Hi Sekhar,
    I am afraid, the whole design of your program is wrong, let me explain
    Let us say you have two rows(5 non key fields) that the user wants to update and the data in these five non key fields are identical and in your program you are getting a number(which is the key) using a number range object. So you will have two entries in the table for the same data.
    And on the update page when the user enters the non key fields, how will the program know(or for that matter any one of us) which record to pick, if you have two identical books and if asked for a book wouldn't you ask which one among these two do you want?
    Possible Solution: Identify a possible key maintaining the integrity of the data, that is a combination of the non key fields which will help you identify a unique row and make these fields as key fields in the table.
    A more costly solution(if you do not want to change the non key field keys to key fields) would be to, adding a check(using select statement) to see if the non key fields combination already exists in the Z table before inserting a record into the table.
    If yes, throw a message to the user and just update the values in the table, else insert the record.
    Another solution would be to, use the non key fields to generate a key(using some logic) and using this instead of the number range object.
    regards,
    Chen

  • Update table based on a select with a where clause

    I am trying to update a table only for records where i have a status of changed.
    Using the following code the update changes all the records putting in blank data if it is outwith the where clause.
    ideas?
    -- Update changed records
    UPDATE IP_SURVEY_ACTIVITY_REG_NO old
    SET (
    old.SLPN,
    old.SURVEY_DATE,
    old.SEQUENTIAL_REF_NUMBER,
    old.TOTAL_NUM_OF_SAMPLES,
    old.TOTAL_NUM_OF_ASSOC_SAMPLES,
    old.AIR_TESTS,
    old.REMARKS,
    old.SURVEY_DETAILS,
    old.FURTHER_SURVEY_DETAILS,
    old.GENERAL_COMMENTS) =
    (SELECT
    new.SLPN,
    new.SURVEY_DATE,
    new.SEQUENTIAL_REF_NUMBER,
    new.TOTAL_NUM_OF_SAMPLES,
    new.TOTAL_NUM_OF_ASSOC_SAMPLES,
    new.AIR_TESTS,
    new.REMARKS,
    new.SURVEY_DETAILS,
    new.FURTHER_SURVEY_DETAILS,
    new.GENERAL_COMMENTS
    FROM IP_SURVEY_ACTIVITY_REG_NO_INT new
    WHERE new.load_id = v_load_id
    AND new.status = 'CHANGED'
    AND new.sarn = old.sarn);
    cheers bjorn

    The EXISTS claue just needs to be added to your original query as a predicate on the ip_survey_activity_reg_no table. somethign like:
    UPDATE ip_survey_activity_reg_no old
    SET (old.slpn, old.survey_date, old.sequential_ref_number,
         old.total_num_of_samples, old.total_num_of_assoc_samples,
         old.air_tests, old.remarks, old.survey_details,
         old.further_survey_details, old.general_comments) =
                         (SELECT new.slpn, new.survey_date,
                                 new.sequential_ref_number,
                                 new.total_num_of_samples,
                                 new.total_num_of_assoc_samples, new.air_tests,
                                 new.remarks, new.survey_details,
                                 new.further_survey_details,new.general_comments
                          FROM ip_survey_activity_reg_no_int new
                          WHERE new.load_id = v_load_id and
                                new.status = 'CHANGED' and
                                new.sarn = old.sarn)
    WHERE EXISTS (SELECT 1 FROM ip_survey_activity_reg_no_int new
                  WHERE new.load_id = v_load_id and
                        new.status = 'CHANGED' and
                        new.sarn = old.sarn)An updateable join view is similar, except you just join the two tables. Assuming that sarn is the primary key of ip_survey_activity_reg_no_int, or is at least declared as unique in that table, then the update of the join would look something like:
    UPDATE (SELECT old.slpn oslpn, old.survey_date osurvey_date,
                   old.sequential_ref_number osequential_ref_number,
                   old.total_num_of_samples ototal_num_of_samples,
                   old.total_num_of_assoc_samples ototal_num_of_assoc_samples,
                   old.air_tests oair_tests, old.remarks oremarks,
                   old.survey_details osurvey_details,
                   old.further_survey_details ofurther_survey_details,
                   old.general_comments ogeneral_comments,
                   new.slpn nslpn, new.survey_date nsurvey_date,
                   new.sequential_ref_number nsequential_ref_number,
                   new.total_num_of_samples ntotal_num_of_samples,
                   new.total_num_of_assoc_samples ntotal_num_of_assoc_samples,
                   new.air_tests nair_tests, new.remarks nremarks,
                   new.survey_details nsurvey_details,
                   new.further_survey_details nfurther_survey_details,
                   new.general_comments ngeneral_comments
            FROM ip_survey_activity_reg_no old, ip_survey_activity_reg_no_int new
            WHERE new.sarn = old.sarn and
                  new.status = 'CHANGED' and
                  new.load_id = v_load_id)
    SET oslpn = nslpn,
        osurvey_date = nsurvey_date,
        osequential_ref_number = nsequential_ref_number,
        ototal_num_of_samples = ntotal_num_of_samples,
        ototal_num_of_assoc_samples = ntotal_num_of_assoc_samples,
        oair_tests = nair_tests,
        oremarks = nremarks,
        osurvey_details = nsurvey_details,
        ofurther_survey_details = nfurther_survey_details,
        ogeneral_comments = ngeneral_commentsHTH
    John
    Message was edited by:
    John Spencer
    Honest, Eric wasn't there when I posted :-)

  • ABAP Webdynpro - Populating second table based on data selected on first

    Hi Experts,
      I am new to ABAP Webdynpro. I have a requirement to show a search area, one table for header info, and second table for populating item level information.
      I was successful building a search area and populating first table when the 'Search' button is pressed.
      Now, I like to populate the second table with item details if a row on first table is selected. I tried to bind the OnSelect Event of first table to a method and try to get the results and bind to second table.. However, I am unsuccessful in this attempt.
      Here are my questions/challenges.
      1. When I select a row on first table, how can I extract the key information?
      2. Is it sufficient to create a context attribute and populate it with FM and bind that with second table? 
    I appreciate your help in answering this question.
    Thanks,
    SG

    Hi,
    Regarding...
    1. When I select a row on first table, how can I extract the key information?
    When you select any row in table, a lead selection will be set in the node which bound to the table.
    To read this selected record you need to use the following code. Here the name of context node is "FLAGS". And the structure ls_flags contains all the attributes defined in the node.
    DATA lo_nd_flags TYPE REF TO if_wd_context_node.
      DATA ls_flags TYPE wd_this->element_flags.
      lo_nd_flags = wd_context->get_child_node( name = wd_this->wdctx_flags ).
      CALL METHOD lo_nd_flags->get_static_attributes
        IMPORTING
          static_attributes = ls_flags.
    Regarding....
    2. Is it sufficient to create a context attribute and populate it with FM and bind that with second table?
    Based on the data that you got in the first step, you can fill an internal table with data that needs to be displayed in 2nd table.
    To bind the internal table you need to define the internal table of type context node. Use the following code to bind the internal table to context node which bound to 2nd table. Here name of  the context node is "OVERVIEW".
    DATA: lo_nd_overview TYPE REF TO if_wd_context_node,
                lt_overview TYPE wd_this->elements_overview.
    <<<< Fill lt_overview with data >>>>>
            lo_nd_overview = wd_context->get_child_node( name = wd_this->wdctx_overview ).
            CALL METHOD lo_nd_overview->bind_table
              EXPORTING
                new_items            = lt_overview.
    Alternatively you can use the Supply Function Method.
    Vikrant Trivedi

  • How to update a bc4j detail table based on master selection

    I have a bc4j table with single selection set.
    When I retrieve the index of the single selection and set the current row in my view object based on that index my detail view object does not update its record.
    Only when I am first populating my master view object does the detail view object update or if I set a small range and change between index ranges.
    I thought by changing the current row in the master view object the detail view object listener would handle cause the detail view to update.
    Please Help.

    This looks like a question better suited for the JDeveloper forum. I'd venture a guess that it's a problem with the setup of your associations.

  • How can I query a table based on row numbers?

    select numberofmonths  from traveldays_president where row_number= 55;
    How can I go about filtering records based on row number?

    Use a query like
    select numberofmonths from traveldays_president where row_number=@rownumber
    Create a dataset with above query in SSRS and on refreshing it after execution SSRS will add field information and parameter information for you. Then when you try to run report it will ask you for value of rownumber and based on value you pass it will give
    you corresponding row(s) in output
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • RFC data  into WebDynpro Table based on Page selected by user in Portal

    Hi All
    I am new to webdynpro. we are developing an application in which we are supposed sent two parameters to RFC to retrive data. Two parameters are Role (plant) and page names(Sub - plant).
    Finally there should only one RFC for whole application which takes parameters when user selects a role and page inside a role.
    How can I do this. Please help me.

    Hi,
    1. Develop an RFC at the backend SAP system, which takes in 2 input ( plant and sub-plant) and gives the list of results as a table.
    2. Create a model in the WD Java application to call the RFC.
    3. call the rfc, get the output and print the result in a table designed in the view.
    There is a sample application which can be found here
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf
    This does a similar application which you are trying to do. This takes in 2 input parameters from the user 'Departure city' and 'Arrival city' and prints the list if flights. If you go thru this sample application, you can develop urs very easily.
    You can even get the source code of this project in the following link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
    Click 'download from SDN' in the link above.
    Hope this helps you
    Regards,
    Sharadha

  • InfoSet - Z tables need to be appeared on the selection criteria

    Hi ,
    My requirement is to have Z table fields in the selection criteria in an info set.
    Currently i have an info set which has only standard SAP fields for selection. I have couple of Z tables whose fields need to be included in the selection criteria. Based on the values selected, report has to be displayed. So i believe some code has to be added for it.
    Can you please tell me how to add Z Fields in the query.
    Thanks,
    Sarika.

    Hi Sarika,
    Again refer to the above link http://shafiq.us/sap/index.php?option=com_content&view=article&id=54:adhoc-query&catid=41:adhocquery&Itemid=61
    Then go to heading "Ad-hoc Queries (Tcode: SQ01)"
    Then see Step 6-b, this is where you specify which field will be displayed on selection screen. Follow the steps and I am sure you will be able to complete your requirement.

  • Key Figure based on selection criteria

    Hi SDNers,
    I have Key figures which  i would like to display based on multiple selection criteria... for this we donot have master data data restricted at the query level it should be at the key figure leve...
    Eg:
    Sales which i would like to display based on SORG,DIV,MATERIal Etc.. Kindly can anyone will help...
    Thanks
    Sonu

    You can create restricted key figures if you want to use the same selection criteria in multiple queries.  In which you can get value for key figure for selcted filters on that perticular key figure.
    If you need it for just one query  you can create a structure and in that structure you can create a new selection which has your restrictions on that key figures.
    Search on help you will get to know hot to create structures and restricted key figures.

Maybe you are looking for

  • Not correct Network schema status [Tcode CN21]

    Hi experts, I am having a problem with transaction CN21: I have to create a network with custom profile, so i follow these steps: 1. lanch Tcode CN21 2. set details of network and WBS 3. Clicking on the green symbol with wich I can select tasks I ins

  • Select query based LOV for tabular form attributes

    Hi HTMLDB Team, Congrats u all for the new release of HTMLDB in htmldb.oracle.com. I badly need a solution of the below problem. Say , i have table called user_col_comments now i want to display the table_name ,column_name and comments in a tabular f

  • Hash join, how to know how much of pga is using?

    Good Day everybody... Is there a way to know if i have enough pga for a given hash join??' so far i have PGA_AGGREGATE_TARGET = 200MB WORK AREA SIZE POLICY = AUTO The advisor from EM looks good, but i know that the query im interested on its expensiv

  • Maximum Dialog Processes for BEx Analyzer

    Dear all, Does anybody happen to know if it possible to restrict the number of dialog processes for one BEx Session and if so where it can be maintained. We currently have the problem that one user executing a workbook almost uses all dialog processe

  • Hands off my browser window

    How can I prevent web pages from resizing and/or repositioning (hard to decide, which of these is a greater nuisance) my browser window with javascript in Safari 2.0.3? Thanks