SAP Query (SQ01/SQ02/SQ3)

Hi Experts,
I have created query (SQ01/SQ02/SQ03) to display below fields: Hazard Code, Device Location Number, Hazard Code Description, Loc. Created by, Loc. Created on Date.
Now in the output list I want to display a summary of all the count of records by the key characteristic for the query. For example, the Device Location by Hazard Codes query should give us a summary of the count of all device locations per each hazard code.
Practical Scenario:
Device Location Hazard Code
40002748              01
40002751              05
40002481              07
40002746              04
40002749              04
40002994              01
Then in this case it should either display additional third column or additional row saying:
Device Location Hazard Code
40002748              01
40002994              01
Total Hazard Count: 2
40002746              04
40002749              04
Total Hazard Count: 4
40002751              05
40002481              07
or
Device Location Hazard Code Total Count
40002748              01                
40002994              01                 2
40002746              04
40002749              04                 2
40002751              05                 1
40002481              07                 1
I checked statistic tab present in SQ01 also URL [http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb4256455611d189710000e8322d00/frameset.htm] but still I am not able to figure out how to display this data.
Please let me know.
Thanks

Hi,
If you're getting the output in ALV Display, you can simply click on the location column & then click on the Sub-Total button on the ALV toolbar, it will sort all the records according to the location (1 or 2 or...) & give you the total/count of the particular location.
For any further clarification, let me know.
Prateek

Similar Messages

  • Hide columns for ALV list output in SAP Query SQ01/SQ02

    Hi All,
    I have a requirement to hide the columns which are empty in sap query SQ01 alv list output.
    Please let me know this functionality available in Query (SQ01) like normal reports
    Regards,
    Venkat

    Hi,
    We just can't make changes in this case as this are all system generated programs.
    WE have to write our own reports to make things flexible to match our requirements.
    Things you are asking is not possible.
    Regards,
    Suvendu

  • Question in SAP QUERY- SQ01,SQ02,SQ03

    Hi SAP QUERY Experts,
    I have a question for the query. Is it possible using a interface parameter for report-to-report interface? I mean when I double click on one the data record of query, I want to transfer the key information of this record to the query or report or transaction as parameters. Is it possible? If yes, could you tell me how?
    This is on SQ01, SQ02,SQ03
    Thanks and Regards
    Saravana

    hi all,
    i am having one abap standard query, i have to modify that one and i have to include another colum which needs the requirment.
    07 Depreciation /SAPQUERY/AM07 ADA FIAA - DEPRECIATION
    the above i mentioned is the query, how ever i tryed this standared to copy but i am not able to connect infoset and all stuff.
    pls guide me how to insert additional colum in that standard report or query.
    pls guide me
    thanks and regards,
    sai

  • Transport request for SAP Query - SQ01, SQ02, SQ03

    Hi Experts,
      I have a doubt, Whether we can have request for SAP Query which have created from Transaction SQ01.If Yes then How to do that....?
    Thanks in Advance,
    Chetan Joshi

    Hi,
    Use the program RSAQR3TR
    Thanks
    Naren

  • Question regarding SAP query (SQ01& SQ02)

    Hello everyone,
    I have been assigned a task of creating a SAP query in SQ01. The report requires me to incorporate a drill down functionality.
    i.e. when I double click on a material I should be able to see the components of that material.
    My question is "Is it possible to incorporate a drill down functionality in a Query through SQ01".
    If yes then how.
    Please provide me with some documentations or example codes for this.
    Regards,
    Deepti Jain.

    Deepti,
    There are 2 ways to get the output  From SAP query.
    1.Under record processing :
          if you don't write any code in Start of selection event for output
         (WRITE statements)  we can not have any control on that.
    2. Under start of selection event :
         If you write any code in START OF SELECTION event like
         get the data in internal table and loop the internal table
         In loop WRITE statement to display with format and try to use
        Interactive report commands Here. I think it will work fine.

  • SAP Query-SQ01,SQ02,SQ03

    Hi,
    One query was created in Development client and a transaction code was created for the same and transported to QA & production. But I am unable to see the same in QA cliet or production client. this was done by SAP implementation team and i do not know what mode of transportation they had used.
    When i run the transaction code for this query in QA client it says the user Group has not been created. After analyzing the same in two clients we found that in Global area everything is same in these two clents but in Standard area the User Group is not showing.
    Can anyone give some clue as to how to rectify this issue..is it an issue related to transport or do we have to manually create in each client.
    Also let me know what is the difference between Standard area and Global area??
    Regards,
    SAPFICO

    Hi,
    sorry for using google to find the answer to your question. I must be afraid you do it next time yourself
    [Transporting Query Objects|http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/d2/cb467f455611d189710000e8322d00/content.htm]
    [Query Areas|http://help.sap.com/saphelp_nw04/helpdata/en/7f/af0c36932211d194f60000e82de14a/content.htm]
    Kind regards,
    Clemens

  • Export & import of query (SQ01/SQ02/SQ03)

    Hi,
    How to export/import SAP Query (SQ01/SQ02/SQ03) without any transport request.
    waiting for ur reply.
    Thanks in Advance,
    Pranab

    Hi,
    If you dont want to create any transport request number then you need to download/upload the query instead of import/export.
    Please follow the below steps for downloading/uploading the query
    (Go to the system from where you wnat to export the query)
    1. Goto transaction SQ02.
    2. Click on ' Transports' icon (CTRL+F3).
    3. In 'Transport action' select 'Download'.
    4. Select 4th radio button 'Transport Queris'.
    5. Enter the name your user group and query and click on execute.
    6. Give the file name and location where you want to save the query backup and click on save.
    (Now goto the system where you want to import your query)
    1. Goto SQ02 and click on 'Transports' .
    2.  In 'Transport action' select 'Upload' and click on execute.
    3. Enter/select the name of the file which you have downloaded before and click open.
    Please let me know if this is helpful.
    Regards,
    Priya Bhat

  • Creation of SAP Query in SQ02 with Single Table With Condition

    Hi All,
    I want to Create SAP Query in SQ02 using single Table MCHA.
    ii) I dont want all entries of MCHA Table I mean , I have to apply some Condition on this Table.
    i.e  Suppose I am having actual data in MCHA table is like this for Material M1.
    Plant    Material   Batch   BatchCreationdate
    P1          M1         B1       20.06.2007
    P2          M1         B1       04.05.2009
    P3          M1         B1       04.05.2009
    But I want the Output of SAP Query is like this:
       Material   Batch   BatchCreationdate
          M1         B1       20.06.2007
    That is irrespective of Plant if Material & Batch are equal ---> 1st record with Lowest date shoud get at the output.
    Please help me How write the code on single table in the SAP Query.
    Thanks,
    Kiran Manyam

    Hi,
    Your query should be like this:
    Select MATNR CHARG HSDAT
    from MCHA
    into table t_mcha
    where matnr = Materlal number from selection screen.
    The structure of t_mcha should contain the fields that you select.
    Then sort the table by date ascending
    Sort t_mcha by HSDAT.
    Hope this solves your problem.
    Thanks,
    Sowmya

  • How to Hide Empty Column In SAP Query (SQ01)

    I was crated a report in sq01 based on business requirements , but there are some fields without any content , in sq01 if you select one of output fields in the right side of the screen in the left side you can see  "List Fields" T in the list fields there is a check box , the name is "Only display field if <> 0 " , but when i check it, it doesn't work  , guys is there any one to help me to eliminate column without content , in the result of sap query (sq01) ??

    Please give reference (or hyperlink) to 10 Useful Tips on Infoset Queries (original document)
    Regards,
    Raymond

  • SAP Query (SQ01) who and when to use the report

    HI Experts!!!
    Is there somewhere recorded information:  who and when to use the report from SAP Query (SQ01)?
    Thanks

    Hi
    This topic doesn´t belong to the Service Marketplace Area.
    regards Martin

  • Default value for SAP Query - SQ01

    Hi Expert,
    I made a query for GL master data, and I have a selection criteria on chart of account, but since the chart of account for all company codes are same; therefore I would like to default the chart of account selection criteria to my COA.
    I read through question/answer in the following thread: SQ01 - restriction on Infoset but solution given by Lalitha Manda ... I cannot get the given selection path.
    Kindly advise, and I am using ECC6.0.
    Thanks,
    sbmel

    Hi,
    You need to go to the infoset of the query (transaction SQ02), or in SQ01, after input of the SAP Query, click on 'Infoset Query'.
    In the right frame You will get a list of fields for selection. There You can default the value of selection field GL Account in the column 'Value'.
    Regards,
    Birendra

  • Delivery Header Text in SAP Query SQ01

    Hi Friends,
    My requirement is that I need to display the Header Text contents in Outbound delivery in a Query report using SQ01.
    As far as I know, we can pull only table fields in SQ01.
    Is it possible to include Text contents in SAP Query? Can we develop or enhance it?
    Regards,
    AK

    You can add structure and code in a dataset using SQ02, then it will be available to use in SQ01, but a long text can consist of many lines, and so you may require to truncate the text - read [SAP Query|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d2/cb3efb455611d189710000e8322d00/frameset.htm] documentation
    - [Creating Additional Structures|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d9/9958d4c50a11d396f80000e82de14a/frameset.htm]
    - [Further Code|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/d2/cb4504455611d189710000e8322d00/frameset.htm] (I suggest record processing or after the query get the table with the text id)
    So create a structure with some text fields, and fill it for every record read in futher code part.
    Regards,
    Raymond

  • 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 SQ01 column limitation issue

    Hi
    At SQ01, I have created a number of custom reports via SAP Query.
    Its a great tool and all, but I am running into a problem where there is a 255 character limitation when I create a Statistics view (where it summarizes values by characters I choose).
    In the SQ01 Query screen, this is controlled by the columns field under the heading list format  and if I list too many objects, I get a message stating report has exceeded 255 character limitation.
    Is there any way I can modify this value, so I can exceed it (say 500?)?
    For us, we use many query reports in our daily reporting so it would be worth modifying.
    If anyone has any info on this, please advise (or feel free to PM me!)
    Regards
    Ken

    Naimesh,
    Thanks for your reply.
    How can I accomplish this? And will it still show the data one the same screen?
    Regards
    Ken

  • SAP Query(SQ01) need to be transported

    Hi All,
    I want to transport a tcode which is using SAP query. Now I am able to send the tcode to other system but when I go to SAP query under queries and standard query area I am not able to see the version management details. I also tried going to the SAP query report through double clicking on the report name under SE93, and when I am into the report it also does not show any version details. It says "No version found".
    What I am thinking is just get the active request number from the version management and transport it to the other system.
    Can anyone of you tell me how to transport a SAP query.
    Thanks,
    Mahen

    Hello everyone,
    I am having problem in fixing this up. Let me tell you all what I have done.
    I first transported the tcode from souce system to target system.
    Because I transported the tcode so in the target system. Tcode has the report/program name as it is existing in the source system.
    Now when I transported the everything like user group, infoset and the query, I was able to see them in the target client. I tried to run the tcode.
    Tcode does not run, It says there are inconsistensies in the tcode.
    I tried to trouble shoot the problem. I found that when I was trying to run the tcode it was not able to find the report/program.
    What I did was, I generated the program for SAP query existing in the target client.
    When program was generated, I observed that It is different with the one that is currently existing for the tcode in the target client.
    This is the main problem report name are different. When I see in the se93 report name is the old one which I transported from the source system for the tcode, but when I see the report name for the SAP query by going into SQ02 it is coming different. I want to know when you create the program name for the SAP query, On what basis is the namespace of the program generated.
    SAP query program name existing for the tcode and in the source system and also in the target system(When you see it in se93) is :
    AQ01FI==========ZBSAK_LFB1====
    SAP query program name when I generated it in the target client is :
    AQFKFI==========ZBSAK_LFB1====
    Bythe way the query name is ZBSAK_LFB1
    Kindly throw some light on this.
    Thanks,
    Mahen

Maybe you are looking for

  • CÁMARA no inicia CAMERA DOESN'T work !!!

    Tengo un Q10 comprado el 16/03/2015 y nunca he conseguido que funcionase la cámara principal más de dos-tres veces seguidas. He actualizado el sistema operativo, he instalado un sys.camera 10.200.1.50.bar y tampoco, he vuelto el sistema 10.3.1.1779 q

  • No PS9.0_SDE & SIL Mapping to load Historical PS E-Perfor data into OBIEE

    Hi Folks, we have the latest BI environment OBIEE 10.1.3.4.1 and using PeopleSoft 9.0 as the source. The Peoplesoft 9.0 has new set of E-Performance tables when compared to older Peoplesoft tables. so when the systems were upgraded from Peoplesoft 8.

  • UN-pairing wireless mouse and keyboard ?

    I have a new(ish) 27" iMac, OS X 10.6.3 [ with two-tone display ...but that's another story ] I set it up with the wireless mouse and wireless keyboard that came with it. The instructions were pretty clear how to "pair" the mouse and keyboard. So I p

  • Arobat blocked after upgrade to mac os mountain lion

    Hello. Updated to Mac OS 10.8.3. Everything in Creative Suite went along just fine, exept Acrobat Pro: cannot open, ghostbusters symbol on icon. What to do? I'd re-install but I don't know how. And cannot open the uninstaller. same block.

  • Will Adobe 9 standard install and run on windows 7 professional 64 bit?

    I have a 64 bit Windows 7 professional environment and would like to install Adobe 9 Standard on the computer. Will it install and run properly in this environment? If not, will it install and run from XP virtual machine?