Adhoc Query Vs SAP query

Hi friends,
Is there any difference between Adhoc query and SAP query.

ADHOC QUERY:-
Web item that enables you to create and change ad hoc queries in a Web application. You can use the Web item Ad-hoc Query Designer in the Web Application Designer to design Web applications in which you can create or change queries.
SAP QUERY:-
A tool that allows users who have no knowledge of the ABAP programming language to define and execute their own reports.
To determine the structure of reports in SAP Query, you just have to enter texts, and select fields and options. If necessary, you can edit lists using Drag&Drop and the functions in the available toolbars.
bye
Naveen

Similar Messages

  • Ad hoc query and Sap query

    Hi all
    What are Ad hod query and sap query? Why we use these two?
    thanks and regards
    Seenu

    in order to get the reports as per the client requiremnt
    we use the queries
    and the the data from these queries will be taken form PNP logical data based tables
    EX: in the standrad report for Absences
    the client may ask for
    PERNR   NAME    position   Department  Absence type start date Endate
    in the standrad report u can get the PERNR and Absence type and start date and end date
    but u cannot get position and department
    so we use  Queries we select the feidls from various reports and get a farmot as per the client reqiremnt
    Check SQ01  02  03 tcoeds
    u can alsoc check SQVI

  • What is Abap Query and SAP query

    hi
    i don;t know about ABAP and SAP query . what is the different between ABAP and SAP query.. if any example is there please tell me
    thanks
    pauldharma

    Hi Dharma,
    chk these links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c
    http://jelajahsap.wordpress.com/2008/01/07/an-example-of-abap-query/
    Thanks,
    Keerthi

  • Defining Query with SAP Query

    HI All,
    1..While creating an SAP Query, I have selected the field groups, then fields, selected basic list, entered the sequence, etc and then also enetered alternate text for control level. When i execute the report, the error message displayed is 'no data selected'. How can i rectify this issue?
    2. I would also like to add the field 'Deductions' under field group 'Payroll Results'.
    Thanks and Regards,
    AM_BLR

    Using the messaging service in the b1 i achieve this
    SAPbobsCOM.CompanyService oCmpSrv;
    MessagesService oMessageService;
    Message oMessage;
    MessageDataColumns pMessageDataColumns;
    MessageDataColumn pMessageDataColumn;
    MessageDataLines oLines;
    MessageDataLine oLine;
    RecipientCollection oRecipientCollection;
    oCmpSrv = (SAPbobsCOM.CompanyService)oCompany.GetCompanyService();
    oMessageService = (MessagesService)oCmpSrv.GetBusinessService(ServiceTypes.MessagesService);
    oMessage = (Message)oMessageService.GetDataInterface(MessagesServiceDataInterfaces.msdiMessage);
    oMessage.Subject = "My Subject";
    oMessage.Text = "My Text";
    oRecipientCollection = oMessage.RecipientCollection;
    oRecipientCollection.Add();
    oRecipientCollection.Item(0).SendInternal = BoYesNoEnum.tYES;
    oRecipientCollection.Item(0).UserCode = "test";
    pMessageDataColumns = oMessage.MessageDataColumns;
    pMessageDataColumn = pMessageDataColumns.Add();
    pMessageDataColumn.ColumnName = "My Column Name";
    oLines = pMessageDataColumn.MessageDataLines;
    oLine = oLines.Add();
    oLine.Value = "My Value";
    oMessageService.SendMessage(oMessage);

  • RSBBS: Jump From BW Query to SAP Query

    Hi
    I have a cost center analysis report in BW which has an option to jump to R/3. When I type the transaction RSBBS and give the name of the query, the Receiver application is 'QU' (Sap Query) and the receiver object is 'GZ_BW_INTGRTYZISQ_CCA_Q01' which I am presuming is the query to which the Cost Center analysis report in BW is jumping to.
    How do I view this SAP query and if necessary change it. I have tried tcodes SQ01, SQ02, SQ03 and none of these recognise the above mentioned receiver object
    Kindly advise.
    Regards
    Sheily

    the best way to figure out is to ask ur functional guy the Tcode to get there. it could be anything.

  • Query in SAP don't shows more than 2 decimals

    Hi!
    I'm trying to create a query that shows the Currency for each operation by day, in this case are the payments, the operations. But the problem is that my query get all the payments when the paymeny is by local currency and foreign currency, i mean when is dollars and when is pesos, so even when the payments are in pesos whe need to get the currency of the dollar at these day, so my query get the currency from the table of the currencies when is in pesos and when is in dollars it get the currency from the payments table, so this is my query.
    Reporte de Pagos
    /SELECT FROM OINV T1/
    DECLARE @FECHA AS DATETIME
    /* WHERE */
    SET @FECHA = /* T1.DocDate */ [%0]
    /SELECT FROM OINV T2/
    DECLARE @FECHA2 AS DATETIME
    /* WHERE */
    SET @FECHA2 = /* T2.DocDate */ [%1]
    SELECT DISTINCT T0.[DocNum],T1.[DocEntry],T2.[NumAtCard],T0.[CheckAcct],T0.[DocType],T0.[Canceled],T0.[CardName],T0.[DocDate],
    CASE
    WHEN T0.[DocCurr] = 'USD' THEN T0.[DocTotalFC]
    WHEN T0.[DocCurr] = 'MXP' THEN T0.[DocTotal]
    END AS 'Total'
    CASE
    WHEN T0.[DocRate] = 0 THEN (SELECT CAST(T3.[Rate] AS float) FROM ORTT T3 WHERE T3.[RateDate] = T0.[DocDate])
    WHEN T0.[DocRate] <> 0 THEN CAST(T0.[DocRate] AS float)
    END AS 'T.C.'
    ,T0.[DocCurr],
    (SELECT T4.[SlpName] FROM  OSLP T4 WHERE T4.[SlpCode] = T2.[SlpCode]) AS 'Vendedor'
    FROM ORCT T0 
    INNER JOIN RCT2 T1 ON T0.DocNum = T1.DocNum
    INNER JOIN OINV T2 ON T1.[DocEntry] = T2.[DocEntry]
    WHERE T0.[DocDate] >= @FECHA
    AND T0.[DocDate] <= @FECHA2
    The real problem is that with this, the query just bring me 2 decimals in the currency and i need at least 4 decimal, i don't know what happen because if i run the query in the SQL Management Studio the decimals are correct it brings me more than 4 decimals, but when i run the same query inside SAP Query Manager it brings me just 2 decimals.
    How can i fix that?
    Hope you help me.
    Thanks in advance
    Regards!
    Xavier

    Xavier,
    This is because the decimal place setting in General Settings > Display tab is 2 decimals.  Similar question has been raised a few times on this Forum and I will send you the link when I find it.
    In the meanwhile the hint is to use CAST function.
    Link for the thread  Rounding in Query Generator
    Suda

  • SAP Query restriction by Company

    Dear SAP Experts,
    I would like to ask an opinion of how to create a general solution for creating SAP queries regarding this requirement:
    1) Create a query via SAP Query (transaction SQ01)
    2) Use a pre-created infoset (VBRK-VBRP header-detail connection)
    3) Restrict users to see only the data (e.g invoices) where he is allowed to see (based on VBRK-VKORG)
    A question would be, how could I assign a SAP ECC user to a certain Sales Organization/Company so that you can have some sort of a master data of which company he belongs to for reporting/query purposes (in the end, which invoices he is allowed see)?
    Is there a customizable way of linking a user to sales organization/s so that in the end I can use this filter in the SAP Query? Also, is there a way that this is generally done so that for all other queries which require Sales Organization/Company filtering (e.g. VBAK, other Finance reports), this is done "on the fly"/customized?
    Your inputs are appreciated, thanks in advance.

    Hai
    If u r Experience Candidate for 2+ years .Company will  Sponcer the Certification wilth low Cost
    Around Rs 35000.(INR).
    https://websmp204.sap-ag.de/~sapidp/011000358700003517532005E
    http://www.sap.com/services/education/certification/global-certification-policy.epx
    http://www.sapcertification.info/viewpage.php?page_id=40
    http://sapcertification.info/news.php
    Assign Points if it is Useful
    Thank u
    Naveen

  • Sap query & reporting

    Hi,
    Any book that can be suggested for report writer/report painter & query reporting.. that contains almost all for reporting without programming..
    Thanks in advance...
    Vipin Arora..

    Hello Vipin,
    Sap Query
    The SAP Query application is used to create reports not already contained in the default.
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    Please refer:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    A query can be created to extract information from master records i.e Infotypes.
    <u>Creation of new query:</u>
    1. T.Code SQ03 - Select Environment – Select Standard Area - Enter -- If new user group is to be created, enter name of the user group, click on create and enter necessary information and exit after saving
    2. T.Code SQ02 - Enter name of the Infoset – Create – enter name of Infoset
    3. T.Code SQ03 - Select user group
    Infoset - Enter name of newly created Infoset
    Assign users and Infosets - Assign infosets
    After creating a query use SQ01 & run.
    <u></u>

  • Sap Query sq01: how to combine substrings in complex calculations

    I made a query with sap query. I made 1 local field: name1. I have 2 fields firstname and lastname and a field named class.
    In the complex calculations screen I made the following calculation for that field:
    Condition: CLASS='1'
    Formula: firstname' 'lastname
    When I try to run this query I get an Abap error saying "unable to interpret [firstname] as a number". It looks like the + expression can only be used here for numeric calculations.
    Does anyone know how to solve this?
    Edited by: J S on Jan 27, 2009 11:52 AM

    Hi,
    i think its better to concatenate in the infoset code section.... you create a local filed in infoset of type char and then write the concatenate statement of abap and keep first name and last name in the local field .... write this code in the record processing section and take this local filed and display it in the  query i think this clears you ..
    by the way if you still want any information let me know

  • Field selection in SAP query

    Hello Team,
    I have a query on SAP query. I have the field MSEG-KZEAR and RESB_KZEAR. Now the MSEG field is visible in sq01 and is selected as output but the table has no entries for this field. Also the entries are maintained in RESB field. But RESB table is not visible for selection in sq01; however I can see the table in sq02 but unable to select the said field as output.
    I want to select the RESB-KZEAR field for output but i am unable to do so in SQ01.
    SQ01
    SQ02
    Please help to do so.
    Thanks again for your time,
    Beryl

    Hi Beryl,
    Please move your RESB-KZEAR field into Group fields using drag and drop in SQ02.
    and activate your SAP Infoset aafter that you can use  infoset in Query.
    Then value will be moving from RESB table.
    Regards,
    Prasenjit Mishra

  • Extracting SAP Query,Infoset  Data from VB Application

    Hi,
    I need to get all SAP Queries,Infosets and SAP Query Group data from a VB application.
    I have found a Remote Enabled Function called    IQAPI_READ_QUERY_CATALOG.
    But when I call the Function from a VB application ,the call is not successful and even I am not getting any exception.
    The call is getting false with null exception .
    Can anyone please guide me.
    Or is there any other function module /procedure / table to extract SAP Query ,Infoset,SAP Query Group data??
    Thanks in Advance.

    http://stackoverflow.com/questions/3765373/how-do-i-do-a-select-distinct-using-a-sap-infoset-query

  • Can we call function modules in SAP query or ADHOC query

    Hi ,
    Can we call afunction moudule in sap query or ADHOC query ?If yes How
    An early responce is greatly appreciated
    Thanks and best regards
    Rajeev Chhabra

    Hello Rajeev Chhabra,
       Yes; you can call function module in SAP Query. In InfoSet definition (SQ02), you can create additional field. In this field definition, you can add code snippet where you can function module.  
    However, this is not possible in Quick Viewer (SQVI) Query.
    Thanks,
    Venu

  • SAP Query (SQ01) - create and save queryies

    Hi Expert;
    We wanted to implement SAP query reporting (SQ01) tool, and already developed custom HR infoset and user groups and transported to QAS.  We experienced the problem that we can not directly "save" any queries in SQ01. We pretty much have the client opened up and set at "Changes without automatic recording".  But keep getting a "transport object create" dialog upon "save" query.  But in Adhoc (PQAH), we don't encounter same problem.    We wanted our users be able to create and save any queries directly without creating any local objects. Is there another setting that needs to be set? 
    Thanks for any information that you can provide.  Points will be awarded.
    Helen

    Hello Helen,
    in SQ01 you can save queries like in HR Ad Hoc Query (or Infoset query as it is called outside HR).
    However this is only possible in the "Standard Area" not in the "Global Area". However as Ad Hoc Query is based on the SQ0x basics it only hides this effect.
    If you are doing HR specifics you should consider the documetnation on the special HR switches:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01200252310000076208&
    In general if you are new to the topic you should consider the courses BC407 for Query Basics and HR580 for reporting in HR.
    Also to get a feeling for the different types of reporting with the InfoSet Query you can look at the following documentation:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/2e7237a323427ee10000009b38f8cf/frameset.htm
    HR Reporting Tools -> Sap Query -> InfoSet Query -> Calling InfoSet Query.
    Or you can book a special training if you need a contact let me know your email adress
    Best regards,
    Michael

  • SAP Query-for  Reporting   how to create and use it

    Hi SAP Gurus,
    i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon.
    also if you have any study material on steps on How to write and create queries for PP module
    thank you very much

    Hi
    Please refer below document
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Also refer below
    How to Create Infoset Query (SAP Query)
    Steps on how to proceed to create a Query:
    ADHOC QUERY
    A query can be created to extract information from master records  i.e  Infotypes.  For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
    Proceedure :  
    Decide on  the various Infotypes we  want to make the query.  Decide on the area where we  want to query  i.e  Global area or Standard area.  Standard area is client specific and globel area will include all clients.
    Menu : HR – PM – Admn -  Information System -  Adhoc Query
    Select area standard and select the  user group already created
    Creation of new query  :  
    TC SQ03  -  Select Environment – Select Standard Area -  Enter  --  If new user group is to be created, enter name of the user group, click on create and enter necessary information and  exit after saving
    TC SQ02  -  Enter name of the Infoset – Create – enter name of Infoset -  Data source -- >  Table join by basis table – give name of table e.g  pa0000 -  Enter -  Click on insert table if we  want to include more tables – give name of table one by one and after finishing,  place cursor on the joining lines and right click to delete unwanted relationships  - check  - and go back  - field groups  -  include all table fields  - click on generate button   -  go out
    TC SQ03  -  Select user group  -   eg.  Payroll
    Infoset  - Enter name of newly created Infoset 
    Assign users and Infosets  -  Assign infosets  -  put tick on payroll  - save and go back
    TC  PAAH  -  Expand the nodes and put tick on relevant fields depending upon necessity
    Save the query  by giving the same name as infoset for easyness..
    For executing a query which is already created
    1. Go to SQ01 transaction
    2. Go to Environment menu->query areas->std areas
    3. Then choose the user group where the query is created
    4. It will display all the queries created for the group.choose the query you want to executeand click execute.
    5. will take to the initial screen
    6. Enter the required parameters and execute
    Regards
    Ranga
    Message was edited by:
            Ranganathan Srinivasamurthy

  • Check Conversion Exists in SAP Query

    Hi Experts,
    In our SAP HCM, we can interchangebly use SAP pernr and Singapore NRIC in PERNR field. SAP has provided a utility to map Singapore NRIC with SAP number in the pernr field based on IT185.
    SAP number can only been seen in Txn Code SE16. After displaying the results, click on
    Settings > User parameters > Data Browser > Format > Check conversion exists.
    On switching off this option, SAP number is displayed instead of NRIC.
    When running Ad-hoc or SAP query, the system is displaying Singapore NRIC in the PERNR field. Our users want to have both the options so as to display NRIC and SAP number in this field.
    I have checked, there is no 'Check Conversion Exists' function avaliable in SAP / Adhoc query.
    Does anyone know, if it is possible to display SAP number in the PERNR field in query. Any help will be greatly appreciated. Thanks.
    Rgds,
    AJ

    Hi,<br>
    If it SAP query from infoset then you have to use action infotype and select pernr.
    If it is standalone SAP adhoc Query, then create/ change the query to add table PA0001 and PA0185. Join it with pernr field, In the output select the pernr and NIRC number.
    Good luck<br><br>
    Thanks,
    Amosha
    <br><br>"Known is a drop & unknown is an OCEAN!"

Maybe you are looking for