SAP Query vs. Ad-Hoc Query

Hi guys,
Can anyone explain to a newbie like me
1. what's the difference between SAP query and Ad-hoc query?
2. Can we link all SAP Queries to tcode and thus access SAP QUeries via Tcode?
3. Ad-hoc query is unlike SAP query as in it cannot be accessed via Tcode, correct?
4. Seems to me SAP query works similarly to custom abap queries. Thus, y don't we just used custom abap queries instead?
5. Are the selection screens for all SAP queries the same? Cause I accessed 3 SAP Queries, and all their selection screen are exactly the same with fields like Object ID, Evaluation Path...
Message was edited by:
        zhenmin wang

https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=30083
Please give me reward points...

Similar Messages

  • Change query in Ad-hoc Query Designer

    Hello All,
    We are using Ad-hoc Query Designer for users to run their reports. now we want them to do their modifications there itself and save as the query. But SAVE and SAVE AS buttons are Inactive. 
    One more problem with using Ad-hoc Query Designer is when we run reports and want to save the Bookmark, this function is not working (though the Bookmark button is Active).
    It would be helpful if you could pinpoint the settings/configurations that I would need to check to get above two things working.
    Thanks and Best regards
    Pratap Sone

    If you want users to enter the data , you can create a transactional cube andmake the query input ready .

  • Ad-hoc Query & Ad-hoc Query Designer

    Hi Experts,
                   Please present some information about following question:
    1) Ad-hoc Query and Ad-hoc Query Designer.
    2) Under which senario we go for Ad-hoc Query instead of normal query.
    3) How it will be effective in reporting.
    4) How to get into Ad-hoc Query Designer, coz i couldn't  find anything in the Bex
    points vl be rewarded.thank you.
    Regards,
    Vasanth.D

    Hi,
    Check out the following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/08/965b423be8de54e10000000a155106/frameset.htm
    Regards,
    Kishore

  • Ad-hoc query designer support end?

    Hi Colleagues,
    We need use Web Query Designer (Ad-hoc Query Designer) tool at BI 7.0 version.
    So, we've heard that SAP leaves mantain Web Query Designer tool, could you confirm us it? If it's true which other choice you offer us?
    Regards
    Raul.

    Hi Sabine,
    I think I did not fully get what your requirement is, please elaborate on what you want to be displayed. Something general
    1. in tab "exception values" you can specify the key figures on which the exceptions are to be applied and assign value ranges to different colors / levels
    2. in tab "validity area of exception" you can specify
    a) to apply the exception on all or totals only (choicebox), this setting is valid for all characteristics not mentioned in the field below
    b) to apply the exception on everything, totals, everything but totals, fixed value, hierarchy level corresponding to a certain characteristic
    Best regards,
    Björn

  • Wat is ad-hoc query designer

    wat is adhoc query and how to make adhoc query.

    Hi Viswanath,
    Ad hoc query means dynamic query ( on demand basis)where your reporting needs are dynamic.
    Check this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/08/965b423be8de54e10000000a155106/frameset.htm
    Also check:
    Ad hoc Query Designer
    Ad-Hoc Query Designer
    Ad-hoc Query's
    assign points if useful ***
    Thanks,
    Raj

  • Validation of EEO code using ad hoc query

    Hi,
    I just want to ask for a help or any ideas with regards to the case below.
    The EEO job categories have been revised and I've already map the existing job codes to the correct EEO job category in table T5U13. But when I try to run a query for a specific job to check and verify if the mapping of the new EEO job category to the existing job code is correct, the EEO code field is left blank. Meaning that there is no EEO job category attached to the job code. But I've maintain the mapping already and when I double check table T5U13, the job code is map to the new EEO job category. I just want to ask for help that if I run the query, the EEO code field would have an entry based on the mapping I've done.
    Thanks in advance for your help!

    Hi Sanghmitra,
    I have got a query  in AD-HOC query.
    After creating the Adhoc query using the join table functionality the resulting adhoc query does not results any out put.
    What I have done is :
    1.Created a user group through SQ03
    2.Attched user to My user group
    3.Created an infoset using join table functionality(SQ02).
    4.Saved and generated the infoset
    5.Added the user group to the infoset and than run the ADHOC query.
    The table I have used to join is all PA table (For test pupose)
    Though the purpose of the custom infoset is to join PA,OM and E rec infotypes, for testing purpose I have joined only PA infotypes.
    Result:The adhoc query does not gives any out put instead it says no data could be read.
    Could you please tell what else I need to do so that the custom infosets gives an out put.
    Will greatly appreciate your help.
    Thanks and best regards
    Rajeev

  • Ad-hoc query - excel problem

    Hi,
    I am trying to run an ad-hoc query to generate previous employer's report.When I click on Hit - list, it shows me 2,195 persons listed.However, when I click on output, it generates only 234 employees in the excel sheet.
    Could anyone please help me as to why this is happening??
    Priority:HIGH
    Thanks in advance.
    Regards,
    Angel

    Hi,
    I am trying to run an ad-hoc query to generate previous employer's report.When I click on Hit - list, it shows me 2,195 persons listed.However, when I click on output, it generates only 234 employees in the excel sheet.
    Could anyone please help me as to why this is happening??
    Priority:HIGH
    Thanks in advance.
    Regards,
    Angel
    Hi Angel,
    Check what Kumarpal has said, he may be correct.
    What I would ask u to do is, ask your ABAP-er to pull a report from the table level using SE11. See what is the number of hits.If there is a difference then the Query behind Ad-Hoc query is not working properly.
    The reason for your problem could be many if not one.
    Regards,
    ARNAV...

  • How to delete query in Ad-hoc QD

    Hey
    It's strange but I don't find out how I can delete a query in Ad-hoc Query Designer.
    Can you please help me?
    thanks a lot!
    SAbine

    Actually, I am looking for a way to delete the query with the tool Ad-hoc QD itself. You know - I can also delete queries when I am in BEx QD, how can I delete queries in Ad-hoc QD?
    Thanks
    Sabine

  • Ad-hoc query's program lost in SAP 4.7 upgraded box.

    Hello,
    Does anybody know what happen to the ad-hoc query programs
    after upgrading the box of SAP 4.6c to the SAP 4.7 ?
    What happen is that I had a transaction that would exec  the program created based on an ad-hoc query and now, after the box was upgraded to 4.7 the program doesn't exist.
    Can anybody give me an answer, please?
    Regards,
    Oli

    Hi Oli,
    Depending on how AD-HOC it was created.
    - If created within DEVELOPMENT CLASS $TMP, sorry mate, but this cannot be upgraded with the system.
    - If ad-hoc created as personalized to one user, sorry mate, no automated upgrade possible.
    Other causes might be, that your query uses data objects that no longer are available on the system (likely customer developed structures).
    Hope this gives you some hints.
    Regards,
    Rob.

  • Capture SAP Ad-Hoc query output in report

    Hi All,
    I have to run an Ad-hoc query from report (se38 program) and after execution of that Ad-hoc query I have to capture the output of that query and use in Report.
    I am trying the follwing approach but getting Run time error (internal Error)
    SUBMIT XXXXX EXPORTING LIST TO MEMORY
    Data:
    v_spool like pri_params-plist,
    v_text like pri_params-prtxt,
    v_print_parms type PRI_PARAMS,
    V_valid       TYPE c LENGTH 1,
    v_spool = sy-uzeit.
    v_text = sy-uname.
    call function 'GET_PRINT_PARAMETERS'
    exporting
    destination = 'locl'
    list_name = v_spool
    list_text = v_text
    user = sy-uname
    importing
    out_parameters = v_print_parms
    valid = v_valid
    exceptions
    archive_info_not_found = 1
    invalid_print_params = 2
    invalid_archive_params = 3
    others = 4.
    IF V_valid = 'X' AND sy-subrc = 0.
      SUBMIT SAP_QUERY_AD_HOC
                        TO SAP-SPOOL
                        SPOOL PARAMETERS v_print_parms
                       ARCHIVE PARAMETERS archi_parameters
                        WITHOUT SPOOL DYNPRO
                        WITH p_wsid = 'X'
                        WITH p_bgname = 'ZHR_OM_PA'
                        WITH p_sgname = 'ZHR_PA_PERSONNELADMIN'
                        WITH  p_quname = 'Z_HRDATA' AND RETURN.
    ENDIF.
    Thanks in Advance

    My friend. Runtime error is like saying "it doesn't work please help me". You need to give more details if you want someone give detailed anwser. It's technical forum so please try to explain technical nature of your problem. In other words, what is the dump saying?
    Regards
    Marcin

  • 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

  • Is it too much to ask MS for a simple ad-hoc query tool for end users?

    Hello
    This is a general MS BI topic and not specific to Power Query, but I couldn't find a more suitable general forum for it.
    This posting is the result of the frustration I have with MS BI stack, whereby a simple ad-hoc drag and drop query tool to get the data in a table format (preferably from a relational
    data source) is missing, something that other big vendors have, such as SAP Business Objects Universe and the associated tools. The deprecated SSRS Report model and SMDL was the closest MS ever got to this functionality (although that had some limitations
    too), which unfortunately is dead now in favour of all sort of "Power" tools that basically can’t deliver the same functionality.
    The requirement is pretty simple: provide users with a tool that they can drag and drop fields from different entities in a data model without having to worry about entity relationships and
    apply necessary filters and get the data out in Excel or CSV, no fancy (or even simple) aggregation or formatting is required, and users should only see the rows they are authorized to see, i.e. row level security (RLS) of data.
    Let’s see what we have at our disposal from MS BI:
    From the modeling perspective, we have relational models in the database that support RLS with views, but obviously cannot maintain PK-FK relationships in the database model between views. Other
    models are .Net Entity Data model Framework model exposed as OData, and SSAS tabular, SSAS PowerPivot, SSAS multidimensional, which you can find a good comparison of their features here:
    http://www.sqlchick.com/entries/2012/3/4/decisions-powerpivot-ssas-tabular -or-ssas-multidimensional-m.html
    From the tools perspective we have:
    Power Query on top of a relational database (SQL Server): Can connect to relational databases easily, generated queries are optimal, detects relationships with entities, but only when entities
    are tables and have PK-FK relationships enforced in the database. So can’t detect relationships with views and hence can’t enforce RLS, so this is not an option unless users keep joining entities, which is not a desirable option either.
    Power Query on top of an OData: Works well except that queries generated for multiple entity expansion are terrible (look here for more details:
    http://social.technet.microsoft.com/Forums/en-US/7a8b8e52-d3a9-42af-bc52-9d5459c00529/odata-multilevel-expand-query-issue?forum=powerquery). In addition all filtering and projections are done at client side, so even if you want 1 row out of 1 million, all
    rows are brought over to Excel before filtered. Overall this results in unacceptable performance even for small sized data.
    Power Query on top of a tabular model: Doesn’t support that type of data source yet (http://social.technet.microsoft.com/Forums/en-US/ebcccb5e-7058-4046-917d-3d7fcf60cbdc/tabular-model-as-data-source-for-power-query?forum=powerquery).
    Even if it did, tabular models don’t support Many-to-Many relationships out of the box and not sure if there are plans to support tabular models in Direct Query mode in Power Query to take care of RLS.
    Excel on top of tabular models or multidimensional models: The tabular model should not be in Direct Query mode and you only get to use PivotTable to query the model. PivotTables are not famous
    for generating optimal MDX queries, so performance is not going to be acceptable if you are dealing with large dimensions, especially large junk and degenerate dimensions. You can use drilltrough to get details of a measure, but you have to specify the columns
    for a drilltrough action upfront, no flexibility for users to select what they want to see.
    PowerPivot on top of relational databases: The query designer cannot detect relationships between views, so users have to perform manual joins, not an option.
    PowerPivot on top of a multidimensional or tabular model: The query designer doesn’t generate optimal MDX queries by drag and drop. Especially there doesn’t seem to be a way to add related
    attributes of a dimension attribute to the query without cross joins which results in poor performance on large dimensions. Other issues found here
    http://sqlblog.com/blogs/marco_russo/archive/2010/08/24/using-ssas-2005-2008-as-powerpivot-data-source-query-designer.aspx. In addition the result set has ugly column names and issues with data types, such as interpreting numeric data types as Text, and
    there’s no straight forward way of getting the data from PowerPivot directly to Excel. The user either has to do a copy/paste (which doesn’t work on large datasets) or create a pivot table, bring the measure, and drillthrough the measure to get the details
    in table format.
    PowerPivot with OData: Treats every entity as a separate table to import, not suitable for our use case.
    Report Builder and SSRS on top of relational, multidimensional or tabular model: Given the query designer is the same as PowerPivot, it has similar issues. In addition, there are 4 more steps
    from designing a query to generating an Excel or CSV output, not an option.
    PowerView: Works against tabular and multidimensional models, but there’s no way of exporting data to Excel sheet. Besides the add-in is not available for Excel 2010.
    Good old MS-Access: Link to tables and views through ODBC, create relationships between entities and give each user a copy of that Access database to create their queries, and deal with the
    nightmares of updates to the model and distribution of new models to the users! Did I mention Access as an option?
    So there you go, 10 options, none of which can deal with a seemingly simple use case sufficiently. At the moment, the best among them appears to be option 6 against a heavily optimized OLAP
    cube, and perhaps #3 when/if Power Query support for tabular models in direct query mode arrives. Perhaps I am missing something very obvious, and would like someone to enlighten me here.
    Thanks
    MR

    Hi, as far as I can infer, that term means it's not loading any resources until needed, opposite of this...
    -bind_at_load
                     Sets a bit in the mach header of the resulting binary which tells dyld to bind all symbols                when the binary is loaded, rather than lazily.
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ld.1.html
    Load resources lazily.
    You should never load a resource file until it is actually needed. Prefetching resource files may seem like a way to save time, but this practice actually slows down your app right away. In addition, if you end up not using the resource, loading it wastes memory for no good purpose.
    http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneos programmingguide/PerformanceTuning/PerformanceTuning.html
    And, higher OS versionsare even worse with Bonjour/mDNSResponder, but might see this...
    http://support.apple.com/kb/ht3789

  • Out put problem in Ad hoc query reports

    Hi Gurus,
    I am tryting to generate a report through Ad hoc query in S_PH0_48000510 - Ad Hoc Query SAP/Query/HR_ADM - > Selected several options like personnel number / employee name / entry date / leaving date.
    But when we select it shows the input details but when i try for output the entry date / leaving date even the names of the employees are not reflecting.
    But the age/date of birth other fields are coming in output.
    Kindly let me know the solution to get a out put. If there is any changes need to be done in the back end. Pls advice with the path details.
    Thanks & Regards,
    Pradeep Krishnamurthy

    Hi Madhu,
    Yes, I did but out put is not coming.
    Regards,
    Pradeep Krishnamurthy

  • How to add an Infotype to an exsting Infoset (ad hoc query)

    Hi,
    How to add an Infotype (Ex. 0025) to an exsting Infoset (ad hoc query)?
    I was trying by clicking on 'Extras' tab & create...I get three options, create field, create table or create structure.
    I am not sure which to use or is there any other way? Pls. let me know the steps...
    Also what is this 'Package', which is aked whenever you create or change an Infoset.
    Pls. suggest.
    Tnx
    SKR

    I was able to add the infotype by adding the table as PA0025 & include all the fields in the field group.
    When I check, I get the following error:
    "Access to PA0025 with sequence no. 01"
    Message Text
       Access to PA0025 with sequence number 01
    Technical data
    Message type__________ W (Warning)
    Message class_________ AQ (Message texts for SAP Query)
    Message number________ 006
    Message variable 1____    Access to PA0025 with sequence number 01
    Message variable 2____ 
    Message variable 3____ 
    Message variable 4____ 
    Message attributes
    Level of detail_______ 4 (Level of detail 4)
    Problem class_________ 3 (medium)
    Sort criterion________ 
    Number________________ 1
    Do we need to input the sequence no. as 00? or is their anything else that I have to maintain?
    Tnx
    SKR

  • Help in Ad-hoc query and Hr form editor

    any body have material links of Ad-hoc query(it means how the reports are generated with Ad-hoc query) and Hr form editor(with examples) plz forward it to me???????????

    Hi,
    HR Ad Hoc Query is the special version of InfoSet Query with the HR object selection.
    You can find the system documentation here:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/f9/cc9138e4a0341fe10000009b38f8cf/frameset.htm
    However I doubt the use of documentation of the query generator. So what is your concrete question?
    Or in any R/3 via application help of transaction SQ01.
    Also HR580 is a good course.
    Regards,
    Michael

Maybe you are looking for

  • Lightroom 4 issues to where I could not view any images or import.

    I was having major issues with lr 4 and not being able to view any images. All I would see is grey squares where the images should've been and they still had the image data when you hovered over them. I could view the images in every other program th

  • What is in the T400 box?

    Hi there, Can someone please let me know what is inside a T400 box? (bought from Lenovo site in the US) . Does it have a set of 3 track point caps? Thanks. 

  • Disable right click on pictures

    Hi, I've been asked to disable the 'right mouse click' on pictures so that they can't be downloaded. Personally I see little point in doing this as some one can easily print the screen and get the images that way but hey if that's what someone wants,

  • KIT Item Warehouse Info

    Hi All, We are importing Orders in ENTERED status, when we book the orders, it populates WAREHOUSE Information in SHIPPING TAB automatically for normal items. But when we book the order for KIT item, warehouse information is not brought up. Can you p

  • How to change loacalization of time capsule and other wifi hardware

    I have several apple machines like, time capsule and airport extreme from different countries around the world. In a globalized world I move every 3-4 years to a new country/region. In the wifi setup of the time capsule and the airport extreme you'll