New Selection Parameter in existing query

Dear All,
Can anyone tell how to add additional selection parameters to an existing query ?
Regards

Mahesh,
  Query means Is it ABAP Query.
If it is ABAP query there are 2 ways.
You can create at infoset level :  In sq02 enter your infoset name press change button.press shift+ F8  there you can find the "Selections"   tab ,press.In that you can find creat button press.
Enter name of the parameter name .Here you will find 2 radio buttons
1. Select-options 2. parameters
select the radio button whichever you want  press enter.
In net screen give "Description"  "Selection text"   and there you will find 3 formats for parameters.
1. Type   --if your parameter is your own defined ex : type c  length 12
2.  like --if it is database field structure Ex: mara-matnr. 
enter any one.enter & save.
Pls. reward points for if it is useful.

Similar Messages

  • Attribute as Selection parameter in a Query?

    Hi,
    Can we add an Attribute of MAT_SALES as a Selection parameter in a Query.
    MAT_SALES is already available in Free characteristics in the query along with its attributes, it is not allowing me to make any changes to the existing one.
    I assume, we need to change the Attribute as a Navigational one and then add in Selection criteria.
    Can someone suggest on the same.
    Thanks
    Bhanu

    You have to make the attribute navigational in 0MAT_SALES and then go into your cube/ods/data target and make it a navigational attribute there as well.  If you are using a multiprovider on top of your data target, then you also need to make it navigational there as well.
    Brian

  • How to make new scop of list and selection parameter in ME2L or ME2M

    Hi,
      As there are many reports avaliable ,  in ME2L and ME2M  there is scope of list and selection parameter on the selection screen,  i want to know how we can create new scope of list and new selection parameter.
    regards,
    zafar

    IMG ---> Material Management ---> Purchasing ---> Reporting ---> Maintain Purchasing Lists ---> Scope of List ---> Define Scope of List

  • Select count(*) where exists (takes 5 hours).

    Hello Gurus,
    I have two databases on two servers, I am counting how many rows are similiar on two tables that are identical, and the rows should be identical as well. I am running a select count(*) where exists query and it takes 5 hours to complete.
    Each table only has two million rows.
    What can I do to speed it up?

    5 hours to process 2M rows does sound a bit long :(
    I didn't see this mentioned explicitly, but I thought the idea of comparing data on 2 servers implied a database link. Tuning distributed queries can be nasty.
    Start by getting an execution plan of the query to figure out what it is doing. Compare that to the plan generated by the already suggested MINUS operator. You'll need to do MINUS twice with each query in the other's position the second time. Alternately, check the indexing on the subqueries; EXISTS tends to work best with fast indexed lookups. FTS on an EXISTS subquery is not good :(
    Think about copying the data locally to one system or the other first, maybe in a materialized view or even global temporary table.
    Finally, think about tuning the transfer. There are articles on Metalink on tuning the transfer packet sizes (SDU/TDU) which might help IF YOU ARE ON UNIX; I haven't had any luck changing these values on Windows. You can also look into setting tcp.nodelay which can affect when packets get sent (another Metalink article should cover this).

  • How to copy existing query report into new query report in SQ00

    Hi Experts,
    Hi Experts,
    I want to add fields "company code" "'region" to existing  query report AQZZ/SAPQUERY/FKF1============
    (list of vendor address) for this i done as following:
    1.In SQ01  go to "EDIT->other user group" and i selected user group as /SAPQUERY/FK
    2.I typed F1 in query field and click change button
    3.I clicked next screen button and entered into "change query f1: select fields screen".here i clicked "basic list" button and searched company code checkbox and saved it as result company code is appearing in the standard report"AQZZ/SAPQUERY/FKF1============"
    but unfortunately there is no region field(LFA1-REGIO) for this i think i should copy the existing  query report  into new query report(Ex:Z_LIST_OF_VEND) which should be 14 characters.please tell me briefly how to do this because this is first time i am using SQ00.
    one more issue is when i selected "edit-otheruser group" and choosing /SAPQUERY/FK  i  am getting only infoset "/SAPQUERY/FIKD" but i should need Info set: "/SAPQUERY/FIDD" please tell me how to add the previous one into user group.i think if i got /SAPQUERY/FIDD into usergroup  /SAPQUERY/FK i can add region also into Query report as i mentioned above by going SQ01 ...............................
    please help regarding this which should be very beneficiary to my carrier.
    Regards,
    naresh

    Hi Experts ,
    I solved issue by changing infoset in SQ02 by means of assigning field to field group and changed the query in SQ00.
    Regards,
    naresh.

  • Enhancements in ASN Search Query - additional selection parameter

    Hi,
    I am working on adding an additional search parameter in ASN Overview screen in supplier view. The search is POWL based and in the "Maintain Search Criteria" screen I have been able to add a custom field named "ZTEST_DATE" of type DATS.
    To get the above work done I have followed the following steps
    1. Enhanced the method IF_POWL_FEEDER~GET_SEL_CRITERIA of class /SCF/CL_FEEDER_ASN_OV.
    2. Enhanced the method PREPARE_LOAD_ASN_FROM_DB  of class /SCF/CL_WD_APPL_MODEL_ASN_OV in order to make the additional field as part of ODM parameter.
    Now on running the query I get an error mesage sayng "Access Path for the parameter selection couldnt be found".
    This error message can be traced to an exception which was raised in GET_ACCID_FOR_READ method of class /SCMB/CL_ODM.
    To get rid of this issue I have added additional entry in two Tables /SCMB/ORCPRM (for defining new parameter ZTEST_DATE and linking it to the ODM component DLH1) and another entry in table /SCMB/ORDTPACCSQ to link the previously defined selection parameter to the access Path ORDN for Order Data Type DELV with a sequence no 24 (all the access sequence till 23 had already been taken up for the other selection parameters). Now I am facing trouble to create an active version of this entry. It should be noted that each entry in the table /SCMB/ORDTPACCSQ has two entries one active and one inactive for each Access Path linked to Order Data Type. At this moment only inactive access path could be created.
    Is there any additional config step required to get an active version of the newly added access Path?
    Thanks and Regards,
    Rohit
    Edited by: rkb_1984 on Dec 22, 2011 1:25 PM

    Hello Rohit,
       My understanding of your question is that, you are not able to create the ACTIVE access sequence with all those details what you've provided in your query.  I am sure you might have used the Standard SPRO path for ODM configs.
    You need to check whether you are creating the access sequence for the correct 'Access Path' or not (i.e. field ACCID in table /SCMB/ORDTPACCSQ). Also, you need to use the access sequence number beyond 90. Might be this would resolve your problem.
    Regards,
    Rohan Arvindrao

  • Add 2 new fields to an existing ABAP query in a particular position

    Hello,
    I have added 2 new fields to an existing ABAP query. These have been successfully added and the query is also executing.
    But these 2 new fields are displaying at last. I need to add these fields in a particular column position.
    Also I need to change the heading of these 2 new fields.
    I tried to do so from the basic list, layout design from SQ01.
    But I could not.... whatever I do.. the 2 new fields are displayed at the end of the list...
    Please help me

    Hi Andreas,
    Do you mean that I should create a complete new abap query?
    Is there no way to add some new fields at a particular position to an existing abap query?

  • Disable selection parameter in Query

    Hi,
    I would like to disable selection parameter in query.
    I add below coding in SQ02 "at selection-screen output" but it cannot work. Any solution besides use variant to disable it?
    loop at screen.
      if screen-name = 'pa_date'.
        screen-input = '0'.
        modify screen.
      endif.
    endloop.
    Thanks.

    Hello Winnie,
       Yes you can. Try this one:
    <><><><><><><><><><><><><><><><><><><><><><><><><><><>
    Parameters: aram1  like mara-matnr.
    AT SELECTION-SCREEN OUTPUT.
      loop at screen.
        if screen-name eq 'PARAM1'.
          screen-input = 0.
          modify screen.
        endif.
      endloop.
    <><><><><><><><><><><><><><><><><><><><><><><><><><><>
    Happy coding!

  • New query copying from existing query

    Hi,
       I want to create a new query through query designer. New query should be same as existing one query.
    That is i want my new query will be a copy of existing query. let me guide how to make a new query which is copy of existing one.
    Regards
    Deep

    Hi,
    As told above you can copy Queries from one Target to another Target by RSZC, if the fields are same in both the Info Providers.
    Or else open your existing Query and slect Save as give new Technical name.
    Reg
    Pra

  • Add new field as selection parameter in HUMO report

    Dear Experts,
    We have arequirement to add a new selection criteria in a standard report HUMO.
    We need to add a new filtering field from VEPO table.
    How can we do this without going for development.
    Please suggest
    Regards,
    Shashidhar

    Hi Sashidhar,
      First go to the program RHU_HELP and you need to enhance the code using the enhancement technique using implicit enhancement.  You can add your new selection criteria at line no 257( need to create an new implicit enhancement).
    Hope this is helpful for you.
    Regards,
    Ramesh.

  • Multiple select parameter with each selected value covering multiple sub values

    Hello, everyone,
    In my SSRS report, I need to set a multiple select parameter called Group, with values: group1 group2, etc....
    When group1 is selected, it needs to apply to data of certain sub groups: sub-group1, sub-group2;
    When group2 is selected, it needs to apply to data of different sub groups: sub-group3, sub-group4 and sub-group5;
    when both group1 and group2 are selected, then, it needs to apply to data of sub-group1 to sub-group5.
    I know how to do it when only one group is selected: simply use a case statement in the query to select the right sub groups based on the group selected.
    But I don't know a good way to do it when multiple groups are selected.
    Any help, pointers are much appreciated. Thanks in advance!
    Regards

    Hi QQFA,
    If I understand correctly, there are two parameters (Group and Sub_group) in the report. When we select group1 in Group parameter, it will auto select sub-group1, sub-group2 in the Sub_group parameter; when we select group2 in Group parameter, it will auto
    select sub-group3, sub-group4 and sub_group5 in the Sub_group parameter; when we select both all, it will auto select all sub_group values. If I have misunderstood, please don't hesitate to let me know.
    In this scenario, we can create a temporary table with Group and Sub_group columns, then select Sub_group column values based on the Group field. For more details, please see:
    Create a dataset with the query below:
    CREATE TABLE #temp([group] nvarchar(50),sub_group nvarchar(50))
    INSERT INTO #temp VALUES     ('group1','sub-group1'),('group1','sub-group2'),('group2','sub-group3'),('group2','sub-group4'),('group2','sub-group5')
    SELECT * FROM  #temp
    where [group]  in (@Group)
    Set available values and default values of Sub_group parameter with get values from the sub_group field in the new dataset.
    Note that the two parameters are all multiple parameters.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Reg creation of  new Tcode for d existing Tcode

    Hi ,
    i need to create new Tcode for d existing Tcode. For Ex. for abap editor Tcode is SE38.for dis i want to create a new Tcode like Z_se38.how can i do it.Plz explain me clearly.very urgent
    Thanks in Advance

    hi,
    how to create a a T-code of that
    Go to se93.
    Then create the new T.code.
    Under that select parameter Transaction.
    Then give the sm38 in the t.code in default values tab.
    check the checkbox skip initial screen.
    in classification tab.
    click checkbox inherit gui attributes..
    Rgds
    Anversha

  • New import parameter ATPCHECK to be added in func module - IMPACT?

    Hi !
    We are in the Realization phase of implementing SAP CRM, and also undercone a ECC 6.0 migration 3 months back. We are faced with the foll problem....
    Whenever a reservation is to be created from the CRM system a functional module u2018'CRM_SRV_LOG_PROCESS_RSRV' is called in the ERP system. Within this functional module, another functional module u2018MB_RESERVATION_CREATE_INTERNALu2019 is called. It is this functional module which actually creates a reservation and performs ATP check.
    In the ECC system a new import parameter ATPCHECK has been added in u2018MB_RESERVATION_CREATE_INTERNALu2019 functional module and this is not filled whereas in R/3 this parameter does not exist at all.
    This parameter needs to hold a value X for ATP to happen in THE ECC system.
    It is proposed to fix this problem by adding the parameter ATPCHECK with value X in the functional module 'CRM_SRV_LOG_PROCESS_RSRV' when 'MB_RESERVATION_CREATE_INTERNALu2019 is called.
    We have not modified any function modules so far, hence would like to know...
    1. Whether the proposed solution is correct?
    2. What would be the imact (things to watch out for) while carrying out changes in the function module?
    Would be grateful to get a reply.
    Thanks & Regards,
    Ajeetha.

    Hello
    I have referred to the systems ECC 6.0 and SAP 4.7. In SAP 4.7, function module MB_RESERVATION_CREATE_INTERNAL never had ATP check inbuilt. See below:
    ***************Start if Snap from 4.7*********************
    FUNCTION mb_reservation_create_internal.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(I_RKPF) LIKE  RKPF STRUCTURE  RKPF
    *"     REFERENCE(TESTRUN) TYPE  BAPI2093_TEST OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(RESERVATION) TYPE  BAPI2093_RES_KEY-RESERV_NO
    *"  TABLES
    *"      IT_RESB STRUCTURE  RESB
    *"      PROFITABILITYSEGMENT STRUCTURE  BAPI_PROFITABILITY_SEGMENT
    *"      RETURN STRUCTURE  BAPIRET2
    comments:
    - no availibility check*
    - no field selection*
    - no calender check*
    ***************End of Snap from 4.7*********************
    This is additional functionality provided in ECC 6.0 by giving additional parameters:
    ***************Start if Snap from ECC6*********************
    FUNCTION MB_RESERVATION_CREATE_INTERNAL.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(I_RKPF) LIKE  RKPF STRUCTURE  RKPF
    *"     REFERENCE(TESTRUN) TYPE  BAPI2093_TEST OPTIONAL
    *"     REFERENCE(ATPCHECK) TYPE  BAPI2093_ATPCHECK OPTIONAL
    *"     REFERENCE(CALCHECK) TYPE  BAPI2093_CALCHECK OPTIONAL
    *"     REFERENCE(RESERVATION_EXTERNAL) TYPE  BAPI2093_RES_KEY-RESERV_NO
    *"       OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(RESERVATION) TYPE  BAPI2093_RES_KEY-RESERV_NO
    *"  TABLES
    *"      IT_RESB STRUCTURE  RESB
    *"      PROFITABILITYSEGMENT STRUCTURE  BAPI_PROFITABILITY_SEGMENT
    *"      RETURN STRUCTURE  BAPIRET2
    ***************End of Snap from ECC6*********************
    So, I think there should not be any change which need to be made to these function modules.
    Thanks
    Amol Lohade

  • GR55 Report - Need to add Document type in selection parameter

    Hi Friends,
    Our client needs to have document type in selection parameter for one report group which has 4 reports attached.
    Changes have been made and now document type is already there in selection parameter. But irrespective of document type Output is same.
    That is if i Give docuement type or not it gives me same output.
    This report is bein copies n new report is made.
    Can any one help me out with how go proceed further.

    Hi,
    This report is bein copies n new report is made.
    You just copied the output from an existing one right....
    Inorder to get the report documenmt type wise you also need to change the output format of the report.
    Ask your ABAPer to get this tobe done...

  • Adding parameter to existing CR report

    Hi everybody,
    I created a CR report based on a SAP query. Then I changed this query by adding a variable. This variable appeared as a new parameter in Crystal but I can't get values from the master data for this parameter. When I select the InfoObject in the Value Field and try to append database values I get the screen Enter Values where I should enter values not only for the parameter I need but also other parameters. Based on the value entry I'm getting an "Error in file UNKNOWN.RPT; Failed to logon to CR Object Repository; (rptcontrollers.dll)" or sometimes another error "(datadefmodel.dll)".
    On the other side, if I try to create new report based on this query everything works fine, values for all parameters are loaded automatically but I don't want to do that if it's not necessary.
    I'm using CR 2008 with SP2, Query Designer 7.0.
    Thanks,
    Ivan

    Infact, The LOV's in the parameters in CR is from infoprovider level , not directly from master data.
    what is that you are expecting now?

Maybe you are looking for