Sq01 or sq02 usage

Please provide steps by step process for SQ01 or SQ02 ..infoset

hi buddy
this is the abap query doc made by me
http://rapidshare.com/files/117912476/ABAP_Query.doc.html
reward if helpful

Similar Messages

  • Using View Tables in SQ01 and SQ02, getting 'Not Authorized to Read Table'

    We are trying to use a SAP Standard View Table (CAUFV) in an SQ01 and SQ02 transaction. Even though there is no Authorization Group assigned to the View we still get "You have no authorization to read table caufv' when running the linked transaction. We tried assigning the CA and KA authorization groups to the role and got the same results. (The tables used to create the View are AFKO and AUKF and thier Authorization groups are CA and KA.) We tried other views and received the same results. Does anyone have any experience with this?

    Hello Chuck,
    There are 2 ways to restrict this
    1: The user should be a part of at least one user group to run the corresponding ABAP query. This automatically restricts the access of the user to specific functional areas, and thus the corresponding underlying logical databases.
    2: The authorization object S_QUERY should be used to give proper authorizations to the user for a query. This authorization object has a field named ACTVT, which can take values 02 for Change, 23 for Maintain and 67 for Translate.
    This value determines whether the user can create and modify the query. The possible authorizations in the object are as follows:
    S_QUERY_ALL          Change, maintain and translate query
    S_QUERY_UPD         Change and Translate

  • 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

  • SQ01 and SQ02 transaction  documentation

    Hi All,
    Is there any documentation on transactions SQ01 and SQ02 available any where so as to manipulate those two transactions effectively to get adhoc reports.
    Thanks for any information.

    Hi,
    SQ01 : is used to create Query form infoset you have created here you can select fields for selection screen and for list generation using check boxes.
    you can generated different types of report using basic list, ranked list, statistics to output in graphical form.
    SQ02 : is used to create infoset you need to tell the data source for your infoset like table join, direct read or data reterival using program, you can also put extras fields, structures and tables using extras button. and can code your own select query for that field or structure.
    After generating the infoset you have to assign this to your usergroup you already created.
    go through this link...
    http://help.sap.com/saphelp_47x200/helpdata/en/bf/1d4645bf3211d296000000e82de14a/frameset.htm
    Refer this thread
    Re: sq01
    -Shreya

  • "AT LINE-SELECTION" event in a Query (SQ01 or SQ02)

    Hi there
    I want to know if it's possible to put "AT LINE-SELECTION" event in an ABAP Query? I'm trying that in SQ02 - the infoset - but nothing happens when I double-click on the output lines. I cannot find any place to type codes in SQ01.
    The purpose is to call a transaction VA03 when people double-click on the output field "sales order number" and here is the code I put in "Free coding" section of SQ02.
    AT LINE-SELECTION.
      DATA: w_cucol TYPE sy-cucol.
      w_cucol = sy-cucol + sy-staco.
      w_cucol = w_cucol - 2.
      IF w_cucol BETWEEN 103 AND 119.
        SET PARAMETER ID 'AUN' FIELD vbkd-vbeln.
        CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
      ENDIF.
    yu

    Hi ,
    You must create infoset based on join VBKD with VBAK and LIPS.
    Also you must put VBAK-VBELN and LIPS-VBELN as a column output.
    There is no problem to use 2 report assignment ( there is no loss ).
    There is no necessity to use " some ABAP code at line-selection ".
    This works.
    By the way is more correct from the beginning to formulate the issue including all the data about your problem and not include them by adding a little at a time.
    Regards.

  • Code order in sq02, Problem in the selection fields in sq01

    Hi all,
    I'm writing a query with sq01 and sq02.
    In sq02 I have some joined tables, and 2 extras fields named: "TIME" and "LEFT_ER".
    in this fields I wrote a code to calculate something from fields in the tables.
    The problem is:
    1. When I write the code in the coding section "Additional field/structure" for each field, If I want to use this fields in the selection fields (in sq01) the query can't find any record.
    But if I run this query without any selection in this fields, I get all the records, with my calculated fields.
    2. I tried to write this code in the coding section "Record processing", and it seems that I can use this fields in the selection fields (in sq01), and get all the records I wanted.
    But in the sq02 I get a Warning messages:
    "Access error in code for additional field *GET******
    *GET****** has sequence number 00
    Access to LEFT_ER with sequence number 00"
    In this case my field LEFT_ER has no code.
    And when I change the order of the sequence number, I didn't get the Warning message, but I could not use my fields in the selection fields (in sq01), like at the beginning.
    HELP ME PLEASE.
    Itzhak.
    Message was edited by: Itzhak Tanami

    Hi,
    i've an idea .
    pls define your help-fields :
    1) as sel-option : s_f1 for bseg-dmbtr
    and
    2) as calculate-field  : c_f1 for bseg-dmbtr
    so for event e.g. GET BSEG .
    you <b>1st</b> calculate your field .
    e.g.
    if bseg-shkzg = 'H'.
       c_f1 = Bseg-wrbtr * -1.
      else.
       c_f1 = Bseg-wrbtr.
    endif.
    and 2nd  your restriction from sel-screen:
    <b>check c_f1 in s_f1.</b>
    good luck
    Andreas

  • Coding in an infoset created by transaction SQ02

    Hello Folks,
    I have an adhoc query created using SQ01 and SQ02 based on feild ATINN between tables AUSP and CABN.
    The user now requires to display 'Characteristic Description' too.
    I have added CAWN and CAWNT required for this change (feild ATWTB is required to be added on display ) to the infoset and  
    also added the proper field group.
    The key links that can be made in the JOIN are:
      AUSP-ATINN <->  CABN-ATINN
      CABN-ATINN <-> CAWN-ATINN
      CAWN-ATINN <-> CAWNT-ATINN
      My problem:
      I have to link
      cawn-atwrt <-> ausp-atwrt
      cawnt-atzhl <-> cawn-atzhl        ( I tried using the CODING option on the EVENT Records Processing to filter based on the 
      aforementioned  conditions but it does not seem to work )
      I would appreciate any help on this matter.
    Regards,
    Subodh S.Rao

    Hi Sandra,
    Thank you.
    I was naive and thought that only key relations which are formed when we try to create a join between
    two tables is the only way and thought that the other relationships are done in coding.
    Regards,
    Subodh S.Rao

  • Generated program query in SQ01

    Hi.
    I was created the query and infoset through transaction SQ01 and SQ02 indeveloper environment.
    After was created this query (SQ01) I generated them with the option:
    Menu Query -> More Function -> Generate Program and Run the query.
    After that, I copy the techinical name (AQ20BW==========RSPCM_CLONE===)
    of this program and created a new transaction for this program.
    I was transported this request to the quality environment and when I
    generated the program in SQ01 in this environment, the program was
    created with another techinical name (AQFKBW==========RSPCM_CLONE===).
    When I call the transaction was created in developer environment, I
    received the short dump beacuse the name of program not exist.
    Why this program was genereted whith diferent name
    between the two environments? I need to configure anything?
    Thank you
    Cesar G. Batista

    Hi Cesar,
    Contact your Basis administrator for the naming convention change in the Program.
    In some projects they will create rules for the transports to change the Technical name to their own project specific.
    May be this rules present in your transport also.
    OR
    Check in Development whether the program has been changed to another name and also have you collected the right program.
    Please check and let me know.
    Regards,
    Ravi Kanth.

  • Advice needed:  SQ00 SQ02 in Production

    Currently we only allow the creation of queries/infosets in Dev, however our users have requested that they be able to use these tools in Production.  We've been told that these transactions are a resource hog.   Also our Production system is 'non modifiable' and therefore when you try to use these transactions in Production it gives you a message stating that you are not allowed to.  Can anyone give me any advice about SQ01 or SQ02 in Production?

    Usually you will need to give access to users to create queries in SQ01 in production, normally there is no transport for the queries, infosets or usergroups. I would recommend that users be able to create queries in Production, it does not modify anything and thats the reason that it is developed in production.
    If you want to transport the infosets from dev to production then you can click on the truck icon inside SQ02 tcode and that will help you either create the transport or download the infoset that you can then upload in the production. Again, this is not recommended way.
    Lets us know if you have further questions.

  • How to restrict a user group of SQ01 for only execution for some users

    Hi,
       I would like to know if it is possible to restrict the access to SQ01 transaction for some users. I would like that these users have only execution access to some queries associated with an user group.
       Do I have to associate the user group to the users I want to have access to it? How can I do it=
       Do I have to associate the queries created on SQ01 to the users? or it is enough to assign the users to the user group where the queries are defined?
       Do I have to associate the infosets created on SQ02 to the users? or it is enough to assign the users to the user group to which the infosets are associated?
       Thank you,
       Luz D.

    I suggest you do a web search on SQ01 and SQ02. That'll bring along SQ03 as well.
    There's so much information available on the web that there's no reason to repeat it here.
    [try google|http://www.google.com/search?hl=en&safe=off&q=SAPsq01sq02&meta=]
    Jurjen

  • Query - Get data from the same table and field two times on a single line

    I have prepared a query showing the bill of material. At each line each component will be a new line and I want to have the description of the material at the top (the master material composed of the component ones) and also the description of the component materials on the same line. This means that I should be able to use MAKT table 2 times on a single line of the query. I have used the query tool with SQ01 and SQ02 tcodes. How can I get the the description of the material at the top and also the description of the component material on a single line?
    Thanks in advance for the answers.

    Yasar,
    Any time you wish to use a table twice in an SQ01 query, you have to create an alias.
    SQ02 > select the infoset, 'change' > go to Join definitions.
    Select 'Alias' button.  Create. Select your table name (such as MAKT) and define an alias, such as 'COMP_MAKT' for component descriptions.
    Now you can insert the Alias table into your infoset just like it was a regular table, and use standard join method to join COMP_MAKT to your component material number.
    Best regards,
    DB49

  • Selection screen modification in case of SAP Query

    Hi All,
    I want to modify the selection screen in a standard progam.
    This program is getting generated through SAP QUERY.
    i want to modify some fields and also delete some fields in the
    selection screen. All these fields which i want to modify or delete
    are the logical database fields.So i can't do it through the t-code SQ01
    and SQ02. Also this is a program generated through the SAP QUERY,
    so i can't modify the generated code. Request if any one of you can suggest me to solve this.
    Waiting for a prompt reply!!
    Thanks,
    Rupesh

    Go to SQ02
    Select your Infoset-->Change
    On next Screen.
    Select GoTo->Code->Initialization.
    Write there code
    LOOP AT SCREEN.
      IF screen-name EQ 'SP$00004'.
           screen-required = 1.
           MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • SAP Query failed...

    Hi all,
    I am working on the SAP Query by using transaction code SQ02, SQ03 and SQ01.
    I have also generated the program and copied display report name to create a transaction code for this report.
    I am able to use the transaction code in the Development Environment. However, when I transported everything into Quality Environment and run the transaction code. It prompt me a shortdump with the message "Program AQZZZQTEST=ZTEST=== not found".
    Anyone knows what is not right? How should I debug on this?
    Thank you so much.

    Create your query in the Global Area (Cross-client) instead of the Standard Area (Client-specific). When you create a query or Infoset in the Cross Client, you have to save your work in development package. Inturn, you will save your work in transportable request.
    So, if you create a tcode for this kind of query, their name will not change in the Other system and you will not get the dump.
    To change the Global Area, you can select it in Tcode SQ01 or SQ02: Environment > Query Areas
    Regards,
    Naimesh Patel

  • In reports explain  the Events

    Hi
      I want to know the Complete Events in Classical and Interactive Reports.Please tell me the concepts .And what their differences.
    Please tell me
    Thanks & Regards
    Raghava

    Hi Ragha,
    Question
    How many types of reports are there in ABAP and what is the difference between them?
    There are 2 type of reports. They are:
    Interactive report
    Classic reports
    In classic reports,we can see the output in single list where as in interactive reports we can see the output in multiple list.
    [Edit section] Answer
    In ABAP, there are a total of 7 types of reports. They are:
    Classical
    Interactive
    Logical Database
    ABAP query
    ALV Reports (ALV stands for ABAP List Viewer)
    Report Writer/Report Painter
    Views (There are different types of views also)
    [Edit section] Classical Reports
    These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.
    Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.
    Events In Classical Reports.
    INTIALIZATION: This event triggers before selection screen display.
    AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode.
    START OF SELECTION: Start of selection screen triggers after proceesing selection screen.
    END-OF-SELECTION : It is for Logical Database Reporting.
    [Edit section] Interactive Reports
    As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.
    And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
    We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21).
    Events associated with Interactive Reports are:
    AT LINE-SELECTION
    AT USER-COMMAND
    AT PF<key>
    TOP-OF-PAGE DURING LINE-SELECTION.
    HIDE statement holds the data to be displayed in the secondary list.
    sy-lisel : contains data of the selected line.
    sy-lsind : contains the level of report (from 0 to 21)
    Interactive Report Events:
    AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.
    AT PFn: For predefined function keys...
    AT USER-COMMAND : It provides user functions keys.
    TOP-OF-PAGE DURING LINE-SELECTION :top of page event for secondary list.
    [Edit section] Logical Database Reports
    Logical database is another tool for ABAP reports. Using LDB we can provide extra features for ABAP reports.
    While using LDB there is no need for us to declare Parameters.
    Selection-screen as they will be generated automatically.
    We have to use the statement NODES in ABAP report.
    If there are many tables the Performance will be slow as all the table data will be read from top node to bottom node .
    [Edit section] ABAP Query Reports
    ABAP query is another tool for ABAP. It provides efficency for ABAP reports. These reports are very accurate.
    Transaction Code : SQ01
       The advantage with ABAP QUERY is logic required for classic & interactive reports system design automatically 80%.
    For ABAP QUERY handle these
    SQ01 ; QUERY
    SQ02 : INFOSET OR FUNCTIONAL AREA
    SQ03: USER GROUP.
    [Edit section] Report Writer
    Key Concept :
    Super users and end users can use Report Painter/Report Writer tools to write their own reports.
    Giving them the ability to report on additional fields at their discretion shifts the report maintenance burden to them, saving SAP support groups time and effort normally spent creating and maintaining the reports.
    Instead of using ABAP code to write a report in FI and CO, many users build a Report Painter/ Report Writer library using transaction MC27.
    However, this workaround has some drawbacks. Little known transaction GRCT solves these problems in most cases, and eliminates the need to use transaction MC27.
    [Edit section] ABAP Report Types
    ABAP report types are those ones available in some report's attributes screen, i.e. :
    Executable program
    Function group (containing function modules)
    Include
    Interface pool
    Class pool
    Module pool
    Subroutine pool
    and for difference use this link,
    Re: difference between ALV AND CLASSICAL REPORTS
    If useful reward points.
    Thanks
    Sanket.

  • Query - Selection Option on Subtotal

    A customer has created a query and interface using transactions SQ01 and SQ02 that generates a report from tables EKKO - Purchase Document Header and EKPO - Purchase Document Item.
    Referencing the Net Order Amount (EKPO-NETWR) they wanted subtotals to appear by Purchasing Document Number.  I was able to give them that by changing the Sort and Total check boxes in their original query.  So now they currently have a report that lists the Purchase Order Document (EKPO-EBELN), each Item Number for the Purchase Order (EKPO-EBELP), the Net Order Value for each item (EKPO-NETWR), as well as query-generated subtotals for each Purchase Order and a grand total of all Purchase Orders.
    Now the customer would like to be able to select on the query-generated subtotals.  For example, select all Purchase Order Documents whose query-generated subtotal is greater than $5,000, or select all Purcahse Order Documents whose query-generated subtotal is equal to $1,000.
    Any suggestions on how to accomplish that would be greatly appreciated.  Thank you.

    PK,
    Thanks for your reply.  I'm an ABAP programmer, but am unfamiliar with the query designer, so would appreciate a little more assistance.
    The customer has already defined a field, POTOTAL, but hasn't added it as a select-option, which I assume he will will need to do.  I'm assuming that's what you mean by "key figure".
    From there I'm kind of lost as far as creating the filter.  If I was writing a report in ABAP code I'd have no problem doing it.  Since the code that generates the report from the query designer is done dynamically, I'm scratching my head trying to figure out how I will stick the "filter" code in there.

Maybe you are looking for

  • Software  for  mac  to  print  CD  and  DVD  cases  and  inserts

    I have a powermac/tiger OS X and want to print up CD and DVD sleeves/covers and inserts but i have looked on the web for software that would enable me to do this with my mac and operating system but can not find anything.Does anyone know of any softw

  • What is "Audible User Name"

    I supposedly got the fix for my (-50)error. It came right from Apple. First step is to go into Advanced in Itunes and "Deauthorize Audible Account" I plugged the same user name and password as I always do. and it tells me that my username or password

  • Problem deploying an application to SunOne 8.1 instance

    Hi I am trying to deploy one ear file to one of the SunOne instance locally. I am using SunOne8.1. But I am getting the following error: [#|2006-07-24T16:21:17.706+0530|SEVERE|sun-appserver-ee8.1|javax.enterprise.system.tools.deployment|_ThreadID=14;

  • I did something wrong!

    I have a hand me down and I upgraded it to Mac OX tiger. I have been using it just fine for about a month. Last night I was "cleaning house" since it still had stuff on here from my dad. In the HD it had things like "previous systems" and "preference

  • PSE 9 (Win7) Organizer won't "copy" when adding images from network

    First, bringing images into PSE 9 Organizer works as expected from cameras, memory cards, etc. The file is copied from the original source onto the drive with the catalog. But, I simply cannot get a file "copied" from its original location when bring