Using sq01

hi,
how can u use where conditions in sq01?? where do u write the sql statements?
i created the info sets and usergroups and basic query.. but didnt find a place to write the sql statements for more advance queries? ANy help is appreciated
Thanks
keshi

keshini,
You can write sql statements under the  event" RECORD PROCESSING".
You can write sql statement under the event START-OF-SELECTION.
what ever you are selecting the tables for query  those will joined internally as inner join  under the record processing event as loop.
One by one record will get process  under "RECORD PROCESSING"
So if you want to check or validate any field you can write here.Here al the output data will be taken care by system itself in ALV GRID.
START-OF-SELECTION.
Here you can write all the code as in ABAP Editor .
Don't forget ot reward if useful...
here you

Similar Messages

  • Very Urgent..How to create a report Using SQ01 and Sq02.

    Hi Friends,
    It's very urgent.pl help  me in generating a report using SQ01 and SQ02.
    Help is appreciated.
    thanks In advance.
    Regards,
    Nanditha.

    Check out these links...
    http://www.insightcp.com/res_15.htm
    http://www.ams.utoronto.ca/Assets/output/assets/adhoc_2990830.pdf.pdf
    Also, do basic search in this forum...you will find a lot of threads related to this.
    SKR

  • Transport Query generated program using SQ01

    Dear All,
    Please let me know how to transport a query generated program using SQ01. I have created a program from SQ01 query creation and assign a tcode to this program. When the program was generated there was no request create so how to make a request to transport this generated program to PRD.
    Thanks in advance.

    Hi,
    for query transport (export/import or download/upload (which I prefer because it can be done between different SAP systems where no transport mechanism exists)) go to SQ02 and tick the button that looks like a car.
    The t-code assignment (and maybe the the T-code is added in an area menu using SE43) needs to be transported seperately (if you use downlaod/upload as this does not create a transport request.
    best regards, Christian

  • Queries using Sq01

    hi all,
    what  kind of Queries do  they  normally ask us  to prepare using SQ01.  i need  some  examples . with  field   names  in  it.
    i know  the  procedure  but  in real time  what  kind of queries  they are looking for. i need only  examples with  fields and tables.
    thanks
    [email protected]

    yes swathi normally a need of report comes
    only when it is not there in standard SAP other wise there are many reports available in SAP ...in few cases i saw the consultant SD or  MM just gave the ABAPER to generate a report whcih was already there in standard y did they do so on questiong they told tht they just dnt knw they have one standard report mathcing theri crieteria
    anyways apart from tht ....normally in SD ur v/ld and va05 serves u most puposes just u need to take the columns relevant to u and paste in ur wrdpad .....
    apart from standads 
    there was this report of generating confirmed orders ...
    measn they want to get the list of confirmed orders ,.,,, ok for this u need to knw the tables VBEP n VBAP , VBAK  pick the order num item in it and confirmed date n qty
    ok another is top 15 customers ......pick top 15 customres based on the business done
    u need vbak,( netpr ) kna1 cmr n the list of CMR in tht top 15 simple ABAP logic
    ok i think these wld help u ........if yes then reward points in left column to this ans..
    thanks

  • Errors using SQ01 SQ02 and SQ03

    Hi ... I have an ECC 6.0 system with NW 7.0 ... our functionals people have to use the SQ01 SQ02 and SQ03 transactions to create an user groups for querys managment ... but in our production system I received the message "Changes to Repository or cross-client Customizing are not permitted"  , obviously our client is closed because its a production system.
    I don't have idea how to resolve this issue ?  I don't know if this issue is about basis or functional problem?
    Can anyone help me?
    Regards
    Subject modified
    Do not use CAPITALS on the subject
    Read the "Rules of Engagement"
    Edited by: Juan Reyes on May 25, 2010 4:08 PM

    Thanks Gagan
    It's working .... just I Inserted parameter AQW as 'blank' in the user parameters and that's all. I didn´t have to open the client in the scc4.
    sq01 sq02 and sqo3 are working
    thanks a lot for your note
    regards

  • How to get Supervisor/Managers name using SQ01...

    Hi,
    I am stumped and need your help.
    I have defined an infoset ZZ_HR_DATA with logical database. In the Infotype 0001, under additional selections, I have the field "Name of superior (organizational assignment)" and it's technical name is SYHR_A_P0001_AF_MANAGERN. I am OK so far.
    When I define a query against this info type, it is not showing as a field to select. What went wrong?
    The query shows another similar field SYHR_A_P0001_AF_MANAGERN and Quickviewer is displaying this as well.
    Regards
    Venny

    Pl check this hr abap technical. you can probably use the logic in the code section of your infoset for the additional fields.. be it the name/number of the supervisor.
    ~Suresh

  • How to regenerate SAP Queries using SQ01

    Hi Gurus
    I have encoutered below error after Upgradation from ECC 5 to ECC 6.0
    "LOAD_PROGRAM_NOT_FOUND"
    "Program "AQQOZSEA_FI=====ZSEAPAYMENT=== " not found"
    Kindly guide me how to regenerate SAP Queries
    Regards
    AMK

    Hi,
    If you can see the query in SQ01.  Then in the main screen, select the query.  From the menu select: Query -> More Functions -> Generate program.
    This should bring it back.
    If the query gives some other error after this, select Query -> More Functions -> Adjust.
    Cheers.

  • Sales Query using SQ01

    I would like to create a query or maybe two queries that return the following.
    1. All Sales orders that have been invoiced in a particular time period. We must be able to show sales orders, net value and invoce number.
    2. All Sales orders that have not been invoiced but are setup to be delivered within the specified time period.
    Have been struggling with this one any help would be appreciated.
    Thank you

    Dear Clifton,
    In my opinion, the ABAP query is not the tool that meets your requirements for the following reasons:
    1. The tables to consider are too many :
        Query1  VBUK, VBUP, LIPS, VBFA, VBAK, VBAP, VBRK, VBRP
        Query2: VEPVG (Trigger Delivery), VBUK, VBUP, VBAK, VBAP
    2. You must also consider the customization of your system, because in some cases, the blocked orders (delivery block) and the unconfirmed orders (confirmed qty = 0 in availability check) not appear as entries in VEPVG table.
    3. Join of all these tables using ABAP Query or quick viewer, has low performance, in other words kneel the system.
    I think that you should seriously consider the possibility of developing 2 new ABAP programs ($$$) without underestimating the aspect of performance which is crucial in this case.
    Thanks.
    Kind regards.
    Andrea

  • Creation of Program using ABAP Query (SQ01)

    Hi All,
    I have a program called "AQL4FI==========INVOICE_CHECK=" in my 4.6 server but a similar program doesnot exist in ECC.
    From the name, it looks like a program created using SQ01.
    Can anyone please help as to how to create the same program in ECC using SQ01 by looking at the program in 4.6?
    Please help.
    Helpful answers will be fully rewarded.
    Thanks a ton.
    Naba

    First thing is this is not the way to convert the SAP Query to Report.
    First check that how many table in your query they have used.To check this if you go in SQ02 press display button left side you can see the tables.To check the fields selecting from tables check in field groups.
    In record processing check are there any conditions are there.
    Now wrire a select statement by joing all tables which you found above and in this select statement extract all fields which you found in field group into one internal table .Here you give the selection screen fields as condition fields in select statement.If you found any conditions in record processing event ,Loop that internal table and check the conditions or modifications.
    If you need more help let me know.
    Pls. reward points for helpful answers
    Thanks
    Murali Poli

  • How to update eban using query sq01

    hi all,
    how to update eban using sq01 ..pls advice

    Hi,
    Refer to this Thread.
    http://www.****************/Tutorials/SAPQuery/SimpleQuery/SQ1.htm
    Thanks,
    Anitha

  • SQ01 help for listing not used problem codegroup and code in notifications

    Hi ,
    I am making a query through SQ01 to find out how many damage codes created for a particular notification type are not being used .
    In infoset I used QMEL which lists problem code group and problem code  and as a bonus we also get codegroup text . When I test this query , I get damage code group and code used in all the notifications . I want solution for the following
    1)How to list only distinct damage codegroup and damage code (Not per notification wise)
    2)Which second table I have to use to get problem code short text
    3)Which table I have to add in infoset and how join has to be created so that I get list of  Damage codegroups and codes not used in notification .
    NPB

    Hi Pete ,
    1)How to list only distinct damage codegroup and damage code (Not per notification wise)
            I have output like
                      problem code group     Problem code grp text        Problem code    Problem code text
                      MRTR                           Transformer  problems        1                        I need table here
                      MRTR                            Transformer Problem           1
                      MRTR                            Transformer problem         2
    I need distinct output like
      problem code group     Problem code grp text        Problem code    Problem code text
                      MRTR                           Transformer  problems        1                        I need table here
                      MRTR                            Transformer problem         2
    2)Which second table I have to use to get problem code short text
                    I need  problem code table
    3)Which  problem code group and code not used
                Suppose for notification type X I have configured damage catalog Q  and Q has MRTR , MRAM , MRGT as code groups and each of them have their own codes (say 1 to 5)...If notifications are created only for MRTR and code 1 , 5
    I need not used output like
    MRTR 2
    MRTR 3
    MRTR 4
    MRAM *
    MRCT *
    How can I achieve this using  sq01,02 etc
    NPB
    Edited by: Narasimha Bhat on Feb 1, 2011 4:54 PM

  • SQ01 results in a single row

    Hi Gurus,
    I have been using the sq01 query to do complex calculations and have been successful in creating tons of queries. What I am stuck with right now is this situation. I created a query and the result is in multiple rows. Here's what it looks like
    Col1      Col2                 Col3             Col4           Col5
    0014       0.00               12.00             0.00           1.00
    0014     20080428           0.00             0.00            0.00
    0014        0.00                0.00             5.00            0.00
    0014        0.00                0.00             0.00            0.00
    Here;s what I want it to look like
    Col1      Col2          Col3       Col4     Col5
    0014     20080428   12.00      5.00     1.00
    Which means i dont want any rows that basically have 0.00 throught and for the key 0014 I want all the data on one single row.
    Is there anyway we can do it using sq01.
    Any suggestions will be appreciated. Thanks in advance
    Kavita
    Edited by: Kavita on Feb 18, 2009 7:44 PM

    Hi,
    Its not possible to have in single row.
    this is same like Education infotype ,all the qualifications will show in different rows.
    You wont get it in single row.
    Bu try to Check Qucikviewer and join conditions...that might helpful to get it...

  • How to create interactive report in SQ01

    HAI EVERY ONE,
    Can any one help me,
    how to create interactive report using SQ01,SQ02,SQ03.
    Plz explain me in details. I dont want simple report. I want to generate interactive report using SQ01. Is it possible how?
    I will give u good points if it is useful.
    Thanks and Regards,
    V.Vamsi

    Hai,
    When u create simple report using sq01 it  display basiclist,Rankedlist,statistics,output sequence.
    When u will use this options. That why i am asking. Actually basic list means simple report.
    What about rankedlist,Statistics and outputsequence. Plz explain these things.
    Thanks and Regards,
    V.Vamsi

  • Creation of Query - SQ01

    Hello All,
    Can anybody expalin in brief regarding how to write a quiery using SQ01?
    If possible can anybody send me the docs relating to this?
    Thank you,
    Regards,
    Santosh Kumar V

    Santosh - I am also new to SQ01, however I have some suggestions that hopefully will be helpful to you.  I recommend starting with the QuickViewer.  You can access this from SQ01 or via SQVi directly. 
    From here you can create your own queries (similar to local objects) which can then be converted into InfoSets/Queries in which users can access. 
    1. Enter a name + Create
    2. Give a description, decide if Data Source is a table (single) or a join (many)
    3. I assume you are creating a join.  When you select join it will take you into the tool to generate the query.  The first step is selecting (and joining) your tables.  Insert table (Shift +F1) will get you started here.  Once all your data is selected you green arrow back to select/map out your selection criteria and the data in which you wish to list in the results.
    4. You can execute from here as well to confirm your results
    5. Once you are good to go, you can easily convert this query by going back to SQ01 (select SAP Query).  Enter your QuickView query name and then in the menu path select Query --> ConvertQuickView.  This will then prompt you through the steps to convert your QuickView Query into an SAP infoset/Query. 
    6. Once you have created the SAP Query you can then assign usergroups via menu path environment --> usergroups for authorization.  This allows others to execute your query, however not create one themselves. 
    I hope this is helpful. Best of luck!

  • MRP Area tables for MD06 information access like SQ01, DBM logical database

    We currently use SQ01 DBM logical database to access MD06 information (tables MDKP and MDTB).  The MRP results from the MRP Area are not showing in this query. This implies that the MRP area, MRP results are stored in other tables.
    I have reviewed tables (MDLV, MDMA, MDLG, DVER, MDIP) from a similiar thread.  However, they do not contain the MRP data (planned orders, stock, production orders ect) like in the DBM logical database.   This data access is very powerfull for exporting planning data for more robust analysis.
    Any help is much appreciated.
    Thank you

    Hi,
           Please try FM: 'AUFBAUEN_MDPSX_ANZEIGEN'.
        MD06 dame come many table.
    Example:
    (Plant level)
      icm61w-fabkl  =  wk_fabkl.                  :Factory calender
      imt61d-matnr  =  p_matnr.                    : Materials
      imt61d-werks  =  it_tbl-werks.            : Plant
    AUFBAUEN_MDPSX_ANZEIGEN 呼出
      CALL FUNCTION 'AUFBAUEN_MDPSX_ANZEIGEN'
        EXPORTING
          ecm61w      =  icm61w
          ecm61x      =  icm61x
          emt61d      =  imt61d
          et399d      =  it399d
          ECM61B      =
          ESFILT      =
        IMPORTING
          icm61m      =  wa_e_cm61m
          imdkp       =  wa_e_mdkp
          imdsta      =  wa_e_mdsta
        TABLES
          mdpsx       =  it_mdps
    regards,
       Gaito

Maybe you are looking for

  • Hard drive crashed need to restore iphotos from Time Machine

    I need some serious help. I have a 24inch intel imac and my hard drive failed. I thought I had everything backed up on my external hard drive via Time Machine (my last backup was April 11th) so I replaced the hard drive. Once I reinstalled Leopard 10

  • Create PDF from PL/SQL-Interface XML FOP / Oracle BI / Oracle APEX packages

    Hi All, I think this is perhaps the most often asked question. And people suggest using PL-FPDF or PL PDF. There is a constraint, I can't use PL PDF because of monetary reasons. I wish I could use some method to output PDF from the PL/SQL. I already

  • See my error : (REP-1272: Column ‘CF_1’ may not be used as break Column.)

    Hi master Sir I have master detail report and I use one formula column and one place holder column in my report in master section I use this code function CF_1Formula return Date is begin if :chqdate is not null then      :cp_1 :=:chqdate; else      

  • Load Balancing - SMLG Question

    I have a question about the load distribution when using logon groups. I have created a logon group in SMLG and it is working to distribute users to different servers. It appears that distributes the load based off of a “quality” rating. What factors

  • Billing Plan Billing Block Change when saving the sales order

    Dear Gurus, We have SD Integrated with PS. We create the sales orders and pull the billing plans milestones from WBS. Once we generate the billing plans, system will propose the billing block for all the line items of the milestones which normally co