How To Wire Query in SAP?

Hello All,
I never used Sq01 functionality in SAP but i wan to learn how to use it, can any one give some documentation on this or guide me the basics please.
Thanks
Sundu

Dear Sundu
check the links
[SAP Query|http://www.olemiss.edu/projects/sap/SQ01_10_03.pdf]
[SAP ABAP Queries|http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_FunctionalAreas_LogicalDB.asp]
thanks
G. Lakshmipathi

Similar Messages

  • How do create query in SAP?

    Dear Expert
    How do create query report in SAP?
    thanks for advance

    hi
    this is to inform you that,
    please follow the links:
    http://wiki.sdn.sap.com/wiki/display/ERPFI/abap+query
    http://wiki.sdn.sap.com/wiki/display/sandbox/ABAP+queries
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c?quicklink=index&overridelayout=true
    hope this clears your issue
    balajia

  • How to use query in sap tm?

    I have tried to call the query method using service manager instance as shown below
    CALL METHOD lr_srv_mgr->query
         EXPORTING
           iv_query_key            = zif_viv_trq_c=>sc_query-root-test_query
    *     it_filter_key           = lt_filter
           it_selection_parameters = lt_filter
    *     is_query_options        =
    *     iv_fill_data            = ABAP_FALSE
    *     it_requested_attributes =
         IMPORTING
    *     eo_message              =
    *     es_query_info           =
    *     et_data                 =
           et_key                  = lt_trq_key.
    but  lt_trq_key is not getting filled .

    It seems that there is nobody meeting the same problem.
    I solved it by myself.
    An thanks.

  • How to write a SQL query in SAP B1 2007 B with input parameters?

    How to write a SQL query in SAP B1 2007 B with input parameters, on execution of which will ask for some input value from the user and the values will be selected from a list such as item list?

    The syntax like
    SELECT * FROM OITM T0 WHERE T0.ItemCode = '[%0\]'
    Thanks,
    Gordon

  • We are interested to know how/where to check query runtimes for any Query in SAP BW?

    We are interested to know how/where to check query runtimes for any Query in SAP BW?
    Is there any table or program to get the query run time details per query for a particular day.

    Hello Sravan,
    Bex statics tables would be 'RSDDSTATHEADER','RSDDSTATINFO' & 'RSDDSTATEVDATA'. all these can found in one view 'RSDDSTAT_OLAP'.
    above can give historical statistic.
    For current Query statics : T-code RSRT, and select debug mode select display statistics and then execute.
    Once you get the output press F3(one step back), there you can see statics of the query for that particular execution.
    Thanks,
    Mallikarjuna

  • How to search roles by Query in SAP BW?

    how to search roles by Query in SAP BW?

    Use SUIM with option roles with Auth object and put S_RS_COMP or S_RS_COMP1 here u can put the query for which u want role.

  • How show the Extractor's Sap query

    Hi masters,
    I have a custom extractor in R/3 created with SAP Query method.
    By RSA2, if I try to double click on Extractor name it does not succeed nothing!
    How can I see the Sap Query created behind The Extractor?
    Thanks so much!

    Hi Martina,
    if you want see the infoset in the extractor use sq02.
    Bye

  • How to find Tables behind a Custom Query in SAP

    Hi Gurus,
    Can anyone please help me find tables behind a custom query in SAP.
    Regards
    As

    Hi
    Check the name of the programm assigned to transaction, it should be like this:
    AQZZ<user group>=======<query name>======
    or
    AQIC<user group>=======<query name>======
    It depends of the query area is global or cross-client
    So run SQ01, select the quey area, select the quey group and so your query: now you can see the infoset and then you see it by SQ02 transaction
    Max

  • Select query in SAP SCRIPT

    Dear Experts,
    In printing of MB23n , I need to print STR_SUPPL1 and STR_SUPPL2 from ARDC table. I already have ADDRNUMBER.
    We are using SAP SCRIPT.
    Please guide me how to insert the following query in SAP SCRIPT.
    tables: lfa1, adrc.
    data: begin of it_test occurs 0 ,
    str_suppl1 like adrc-str_suppl1,
    str_suppl2 like adrc-str_suppl2,
    end of it_test.
    select str_suppl1 str_suppl2 into corresponding fields of table it_test from adrc addrnumber = lfa1-adrnr.
    Please hekp me to solve the issue.
    Thanks in advance.
    Regards
    Ankur

    Hi,
    In Script - Page Window -
         PERFORM <form name> IN PROGRAM <Program Name>
         USING &VBDKR-VBELN_VL&
         USING &VBDKR-VBELN_VAUF&
         CHANGING &ADDR_LINE1&
         CHANGING &ADDR_LINE2&
         CHANGING &ADDR_LINE3&
         CHANGING &ADDR_LINE4&
         CHANGING &ADDR_LINE5&
         ENDPERFORM
                         &ADDr_line1&&ADDR_LINE3& &ADDr_line2&
         &ADDR_LINE4&
         PROTECT
         &ADDR_LINE5&
         ENDPROTECT
    In SE38 - Create Prog as Subroutine pool --> Write a Form with same name
    SELECT SINGLE adrnr INTO twlad-adrnr FROM twlad WHERE werks = lips-werks AND
                                                              lgort = lips-lgort.
        IF sy-subrc = 0.
          CALL FUNCTION 'ADDRESS_INTO_PRINTFORM'
            EXPORTING
              address_type            = '1'
              address_number          = twlad-adrnr
            IMPORTING
              address_printform_table = lt_address.

  • 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

  • How to test the performed  SAP SCRIPT

    Hi friends can any one help for
    how to test the performed  SAP SCRIPT. What are the necessary codes or anything else for performing it

    Praveen,
    Can you be much clear with your query? What do you mean by performing? Do you mean how to execute it ?
    Regards,
    Vinod.

  • Query IN SAP B1

    Hello All,
    Please help how I can create consumptiom query in sap B1 , I need to create with fields:
    1. Catalog number
    2. Description
    3. Stock hand (up to day)
    4. A single cost
    5. Sum of stock (single cost * stock)
    6. consumption per month
    7. Stock years (stock/consumption (average)12 month)
    8. group mane
    9. sum of open purchase order
    10. sum of open order
    Please Help
    Best Regards
    Diana

    Dear,
    Create Self defined Logistic Information System,
    Regards,
    kapil

  • How to Reconcile Data Between SAP Source Systems and SAP NetWeaver BI

    Hi,
    I just read "How to Reconcile Data Between SAP Source Systems and SAP NetWeaver BI".  While I'm waiting for  more authorisation to r/3 to carry it out and test this functionality.
    I'd like to ask a question to anyone who has implemented this type solution.  On page 10 it talks about creating a view then setting up the datasource. The solution talks about runnig a query.  I suspect when we run a query I would run it for only a period(using variable) to reconcile.
    My question is this.  Will the datasource extractor on /r3 only select the period in our variable or will it do a full selection of the data which would then be passed to BW for filtering?
    Regards

    DEar Mark,
    There are several avenues where you can see and reconcile your data with source system, u can see data in by tcode RSA3 for a datasource, and compare the values with actual document posted into the R/3 system. Respective fuctional consultant canhelp you a lot to confirm the data.
    On BW side u can see the data in PSA and then check tranformations which subsequent change/update/reject data records based on the selective conditions.
    hope this helps.
    Kindly assign the points if it works.
    Revert back if u need futher help/information.

  • How to create Query (Sq01) fro service contract

    hi,
    How to create Query for Service contracts , where i need to take a report for sub line items of that particular Service contract.
    Ex: we maintain short text - services in the initial screen ,
           in the next screen we maintain the sub line items for that short text (Activity numbers).
    Please guide me on this.
    Regards,

    Hi Sowmya,
    1 Create User Group (SQ03)
    Specify the users who should be authorized to run the query.
    2.
    Create Infoset (SQ02)
    Indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query.
    3.
    Create Queries (SQ01)
    Create the query and arrange the layout
    for joining the two tables there should be common field should be available in both the tables then only we can able to join the table and run the query
    or use this below link
    http://www.sap-img.com/abap/step-for-using-query-sq01-sq02-sq03.htm
    Regards,
    Pramod

  • How to schedule Query Extracts using RSCRM_BAPI

    Hi,
    Can you give me the link to the document How to schedule Query Extracts using RSCRM_BAPI  . I do not have userid password to view the same.
    Thanks for the help.

    Hi,
    this is the link for the document..
    https://websmp205.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004400232004E
    thnks.

Maybe you are looking for

  • Using iPhoto '08 to Access Photos on iPhoto '09

    I just bought an external hard drive which now contains all the photos on my MacBook Pro with iPhoto '08 and well as all of those on my wife's MacBook with iPhoto '09. The hard drive is hooked to my wife's MacBook (again, with iPhoto '09). I shared i

  • Unique Value Transaction Notification

    Hi Experts I have a problem in Transaction Notification I have a one UDF and i dont want to repeat the value . so i want to restrict if the value has repetead then system block me to add the sales invoice . my code is If @transaction_type = 'A' And @

  • Updated everything  with 7.1 except for ipad 2

    Disappointing that I have to pay 19.99 understand the glitches in your 7.1 update.  I keep all  my apple products almost pristine so frustrating that performance is glitchy.  What is the fix?

  • Trouble accessing tv shows

    I just purchased the Apple TV today. The wireless internet is all setup and working fine. Music syncs fine. I have 16 episodes of my favorite TV show that I purchased via iTunes and they are on my PC. The syncing function works fine but when I try to

  • No sound in MBP Pro 2001 under 10.8.4

    Suddenly, no sound from jack or HP. I had sound and then I hadn't. This is NOT the red light problem, related to toslink. I tried to toggle in Audio Mini, no way.