Displaying selection criteria as part of query output

Hi Folks,
How do you add the selection criteria to the header of an SAP Query output?
Thanks,
Roy

hi,
for your own reports (beginning with z and y)and queries this should be no problem. Create a program, which makes your demanded heading,  and include it to your reports.
Andreas

Similar Messages

  • Cannot acces to the selection criteria of a local query in web browser

    We cannot access to the selection criteria of a local query in using the web browser
    It seems this issue is already known, a local query created with BW release 7 cannot be used with the web browser.
    But this is a blocking issue in our case because we cannot create another local query in using BW 3.X and if we are using the analyser with RRMX and Excel we cannot displayed more of 65000 rows due to Analyser R3.X or R7.
    That's why we want to use the web browser because we can export the extraction from the intranet in MS Excel 2007 without limitation of rows.
    Thanks in advance to find a solution asap

    Hi Mustafa,
    I checked your requirement but it is not possible to display first value as default value for a drop down list because the list will be generate when you click the drop down list. You can use a 'list box' instead of drop down list.
    Regards
    Basheer

  • Displaying selection criteria in ALV report output

    Hello,
    I’ve been using REUSE_ALV_GRID_DISPLAY function module to display my report content in ALV.
    My report’s selection criteria has parameters, select options, checkboxes and radio buttons.  As part of the ALV output, I want to display the criteria that the user had selected in the selection screen.  I was hoping to do that via parameter "i_callback_top_of_page" and fill the selection criteria in the header area.  I'm using REUSE_ALV_COMMENTARY_WRITE to fill the header area. 
    However, the header area takes too much of view space in the output if I put all the selection screen information in it.
    Is there a way to make the header area scrollable?  What is a good way of displaying the selection criteria information as part of the report output?
    Appreciate your help.
    ss

    Hi SS,
    1. The purpose of displaying / writring
       selection information
       in alv is
       for identifying what the user has seleccted,
       directly from the report (when its printed)
    2. So, the option of priting/writing
       it on the TOP of alv, is ok.
    3. However, U can also choose to WRITE
      it at the BOTTOM (instead of top)
    4. Try to utilise maximum spacing (horizontally)
       field1 : abcd      fidl2 = xyz  field3 = ppp
       field4 : mnc       etc.         etc.
    regards,
    amit m.

  • Can we use Selection Criteria Screen to tell Query which SQL script to run?

    Dear All,
    When I run this code, it gives me the screen below:
    declare @ScanOp4 nvarchar (30)
    set @ScanOp4=
    /*select T3.U_ScanOp4 from [dbo].[@SCANNING] T3 where T3.U_ScanOp4*/ '[%0]'
    I have used Tools -> Customization to define a UDT and UDF
    Query - Selection Criteria
    Invoice / Credit Note?            [----------------- ]
                                     (there's a drop-down arrow with 2 choices:
                                      Inv = Invoice
                                      CN  = Credit Note
    [OK]       [Cancel]
    Now, I have 2 very similar queries; the only difference is that they use different tables because one is for
    Purchases (OPCH/PCH1), and the other is for Credit Memos (ORPC/RPC1)
    I want to put the above declaration together with my 2 queries all in a single query so that:
    (a) If I select 'Invoice', the Invoice part is executed and only invoices are displayed,
    (b) If I select 'Credit Note', the Credit Note part is executed and only Credit Notes are displayed.
    Do you think such a Query is possible? If yes, please give me an idea how I can achieve it.
    I don't want to use UNION ALL because one of my fields is a LINK field to which I have linked all PDF Scanned documents.
    I want to preserve the links, since this is the reason I'm writing the query.
    Thanks
    Leon Lai
    Here are my skeleton codes
    1st Query: User selects 'Invoice' -
    SELECT
    T0.[TaxDate] AS 'Doc Dt',
    T5.[TransType] AS 'Txn Type',
    T0.[DocNum] AS 'Doc No.',
    T0.[DocTotal] AS 'Amount'
    FROM [dbo].[OPCH] T0
    INNER JOIN [dbo].[PCH1] T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN [dbo].[OJDT] T5 ON T0.[TransID]  = T5.[TransID]
    2nd Query: User selects 'Credit Note' -
    SELECT
    T0.[TaxDate] AS 'Doc Dt',
    T5.[TransType] AS 'Txn Type',
    T0.[DocNum] AS 'Doc No.',
    T0.[DocTotal] AS 'Amount'
    FROM [dbo].[ORPC] T0
    INNER JOIN [dbo].[RPC1] T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN [dbo].[OJDT] T5 ON T0.[TransID]  = T5.[TransID]

    Try this:
    declare @ScanOp4 nvarchar (30)
    set @ScanOp4=
    /*select T3.U_ScanOp4 from [dbo].[@SCANNING] T3 where T3.U_ScanOp4*/ '[%0]'
    If @ScanOp4='Inv'
    SELECT
    T0.[TaxDate] AS 'Doc Dt',
    T5.[TransType] AS 'Txn Type',
    T0.[DocNum] AS 'Doc No.',
    T0.[DocTotal] AS 'Amount'
    FROM [dbo].[OPCH] T0
    INNER JOIN [dbo].[PCH1] T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN [dbo].[OJDT] T5 ON T0.[TransID]  = T5.[TransID]
    If @ScanOp4='CN'
    SELECT
    T0.[TaxDate] AS 'Doc Dt',
    T5.[TransType] AS 'Txn Type',
    T0.[DocNum] AS 'Doc No.',
    T0.[DocTotal] AS 'Amount'
    FROM [dbo].[ORPC] T0
    INNER JOIN [dbo].[RPC1] T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN [dbo].[OJDT] T5 ON T0.[TransID]  = T5.[TransID]

  • Want to See Selected Input Variables in the query output

    Hi al
    My client gives a requirment like they want to see selected variables in the query output. Like suppose if i am  entering Profit center, controlling area, version, caldayas a input on the screen. Now they want to see only Profit center and version on the query result.
    Please let me know if any one has this solution.
    Regards,
    Amit Shetye

    Hi
    Can you please give us user requirement and according to ure requirement so we given replies . If ure requirement please explain detail
    But it is not neccessary that we can put something in free char and all. Inspite of that they wanted to select the input variable as per their requirement. They dont want to restrict them in Free char.

  • Display Selection Criteria - KSB1

    Hi All
    When using either transaction  KSB1 or report S_ALR_87013620 and drilling into KSB1 users are unable to display the selection criteria they have ran the report on when they select a 'user -specific' report layout variant. If they user a default SAP layout variant this displays the variant name, and selection criteria such as cost centre and currency above the main body of the report.
    Is anyone aware of this issue or if it is possible to display the selection criteria on user- specific reports also.
    Thanks
    Simon

    Hi All
    When using either transaction  KSB1 or report S_ALR_87013620 and drilling into KSB1 users are unable to display the selection criteria they have ran the report on when they select a 'user -specific' report layout variant. If they user a default SAP layout variant this displays the variant name, and selection criteria such as cost centre and currency above the main body of the report.
    Is anyone aware of this issue or if it is possible to display the selection criteria on user- specific reports also.
    Thanks
    Simon

  • Print Layout Designer (PLD) - Displaying Selection Criteria

    Does anyone know how to display the selection criteria on a pld form.  Specifically, I would like to display the selected 'Item Property' on the Inventory > Inventory Reports > Items List report.
    I noticed on the Inventory > Inventory Reports > Inactive Items report that it displays the Date From selection criteria and the document types selected, but I can't figure out how it is doing this. They are Text fields and I don't see any dependencies.
    Thank You

    Vaughn,
    The selection criteria are pre-build to be included on some of the reports and are not on others.  If they are not available on the PLD template you could not add them.
    Suda

  • Reports - adding selection criteria as part of output

    Hello,
    We are on ECC 5.0.
    My business users would like to have the following on all R/3 reports, extracts and printouts:
    The company code, the period selected, the filters or parameters selected, the title of the document/report/extract, the currency and type of currency of the document.
    Has anyone ever had such requirements?  Any idea on if this is possible?  Any workarounds would also be welcome.
    Thanks SAP gurus!
    Linda

    hi,
    for your own reports (beginning with z and y)and queries this should be no problem. Create a program, which makes your demanded heading,  and include it to your reports.
    Andreas

  • Displaying selection screen details in Alv Report  output display as Header

    Hi all,
    May be somebody knows how I can show selected values with select-options in top_of_page using REUSE_ALV_GRID_DISPLAY.
    This shoud work for all the reports and diff selection screens .
    I need one dynamic process which will for display any report selection screen selected details.(Basically varient information of report).
    Small example if possible, please.
    Thanks in advance,
    Rimas

    Hi Thiru,
    Thanks for the input.
    This is my exact requirement.
    Hi Experts,
    I would like to Display / Print  Select-options selected details in ALV Header.
    Ex: Say suppose here i enter kunnr as 1000
                                            lifnr as    2000 to 4000
                                            p_langu as  'EN'.
                                           p_dir  as 'C:\TEMP,
                                           p_upda as 'X'
    for selection screen below.                    
    SELECTION-SCREEN :BEGIN OF BLOCK blk1 WITH FRAME TITLE text-000.
    SELECT-OPTIONS : s_kunnr FOR kna1-kunnr.
    SELECT-OPTIONS : s_lifnr FOR lfa1-lifnr.
    PARAMETER      : p_lanuge LIKE t002-spras DEFAULT sy-langu.
    PARAMETER: p_dir  LIKE rlgrap-filename
               DEFAULT text-003 LOWER CASE.
    PARAMETERS: p_upd AS CHECKBOX DEFAULT 'X'.
    I dont want to Hard code selection screen values like
    DATA: header TYPE slis_t_listheader,
    wa TYPE slis_listheader,
    wa-typ = 'S'(093).
      wa-key = s_lifnr .
      wa-info = 'Vendor no".
      APPEND wa TO header.
    I want dynamic process for all of my selection screen values selected
    hard code may be it will be fine small selection screen it will work.
    Fur that i got one process to get dynamically through fm
    Ex: DATA: irsparams TYPE rsparams OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
    EXPORTING
    curr_report = program
    TABLES
    selection_table = irsparams
    EXCEPTIONS
    not_found = 1
    no_report = 2
    OTHERS = 3.
    loop at irsparams.
    write : / irsparams-SELNAME.
    write : / irsparams-SIGN.
    write : / irsparams-OPTION.
    write : / irsparams-LOW.
    write : / irsparams-HIGH.
    endloop.
    I have done my requirement partially but i am failed to achive my full  requirement.
    Because
    rsparams  strcture is diff from  slis_t_listheader.
    Can any one help me for further assistence to display irsparams strcture data in alv header.
    Thanks
    Nag

  • Not to display units for keyfigures in the query output

    Hi All,
    i have created a query and when i executed it displays all the key figure values with units.
    is there any way to restrict with only value.
    there are more than 20 to 25 keyfigures in query. i canot create formula keyfigure for these keyfigures and use NODIM().
    is there any way to restrict the units
    Thanks
    WHP

    Hi ,
    i think u will be require to create the formula with NODIM. check the below link :
    Material display key figure attributes units hide
    Thanks,
    Deepak

  • How to display selected options in lookup F4  query selection screen

    i have to provide selected options  infoprovider specific than all values from database.

    in our company let there is PMACTIVITY TYPE and there is 140 activities, for aspecific group of our manager /users reports designed
    they have specific list of activities ,can i restrict by some ways to show only those relevant options in F4 selection screen
    Regards
    satish

  • Using custom fields of Infoset as Selection Criteria in Query Reporting

    Hi Experts,
    I have created one Infoset based on LDB PNPCE and added some custom fields to it. Coding has been done for the custom fields.
    But these additional custom fields are not available as selection criteria while creating the query.
    Can you please tell me how to use the custom fields as selection criteria?
    Reply soon
    Thanks in Advance.
    Raveesh

    Hello Guys,
    I just noticed that it is possible to select custom fields as selection criteria in case of SAP Query,
    but NOT is case of Infoset(Adhoc) query.
    Can anyone tell me the whether it is possible to select the custom fields as Selection Criteria in case of Infoset Query?
    Thanks in Advance,
    Raveesh

  • ABAP QUERY HEADER from "selection criteria"

    Dear Expert,
               I would like to add coding for showing "billing date from - to" (selection criteria) to my ABAP QUERY Header. I used "SAP List Viewer" as my reports.
    Can anyone sharing idea and how to code it?
    Greate Thank,
    Prach

    Hi Andrzej,
    The answer is correct - you have to do it in user-exit. You have to learn it becouse its a very powerfull solution and is very ofen used in reporting.
    See help ... http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm
    In the interface of this exit you will find all query selections + sy-datum = what you need.
    Pozdrowka
    Wojtek

  • Inserting Selection Criteria in Query Output

    Hello guys
    How can I insert a "Selection Criteria" for a query in its output. The final outcome should be:
    1. The user runs the query.
    2.The Selection Criteria pops up. The user enter the values. Then executes the query.
    3. The query is displayed:
    a. It has the Free Charcteristics in the left hand side top corner.
    b. The query results below it.
    c. And on the top, in the middleof the query, over the results area, the selction criteria should be displayed like:
          <b>                          Plant : 0353
         Free                     Material : Empty Demarcation
    Characteristics          Fiscal year / Period : 001/2007
                         Query Output</b>
    Can this be done in BEx? Do i need a create a workbook? how do i do this?
    Thanks.

    Hi Prasad,
       Create a workbook so that you will be able to  place  results at defined locations.
    For displaying  all selection criteria in the workbook  choose layout >  Display Text Elements . Delete the text elements that you do not wish to display.
    Jaya

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

Maybe you are looking for