SQ01 and SE93

Trying to add a bespoke transaction code to a query I have created via SQ01. I ran the query and got the code behind it from System->Status. I then added the program name and screen 1000 to the transaction. The quesry and the transaction were then transaported into the QAS box. When I run the transaction in QAS I get a run time error where it says a field-symbol has not been assigned. The field-symbol is assigned in the initialisation block of the program. Have I done something wrong when assigning the query to the transaction code as when I run the query in QAS vie SQ01 all runs fine.

You must be missing something 
1- Go to SQ01 select query name and then go to
Query ->more functions - > gen.program
2- Do you have any default variant define in Query ( SQ01 )?
if yes , also give it in Tcode in SE93 . If you don’t have as a test create a var and assign it in your t-code and see .
Only thing I can think of there’s some discrepancy in Query .
Pl..award the points
Thanks

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

  • Problem in Transaction variant SHD0 and SE93

    Hi All,
    I have created a transaction variant for T-code MIGO
    Then I have assigned this transaction variant to a T Code ZMIGO using SE93
    I tested this in development. (Testing was done like this. T code SE93 then clicked on display then clicked on test.) this is working fine here.
    Then the request was transported to quality.
    Here in quality environment I went to T code SE93 and entered the T code ZMIGO and clicked on display here the system displays the new t code but when I click on test system throws a message which reads as u201CTransaction contains inconsistencies. Do you want to execute it anyway?u201D
    Can you please help me how to overcome this?
    Thanks and regards,
    Prashant.

    Hi Guru,
               I hope in the PAI section of that transaction you need to do the coding for PAI of TAB B is clicked.  So that all the fields of that TAB will be activated.
               In your case first it is blank and when you are doing it second time, automatically PAI of TAB B is satisfied and you are able to see the fields of TAB B.
               Hope this is helpful.
    Regards
    Sravan

  • SQVI (or SQ01) and how to insert custom table

    Hello
    I'm trying to create an SoD report in R3 4.6C where I've created around 400 user groups based on HR employee information, the users are now assigned to their new (but still to be verified) user groups in DEV and QAS and I'm now at the stage of trying to link these to a custom table of paired conflicting transactions which have been provided by the business.
    I'm using SQVI in QAS instead of SQ01 due to authorisation and time constraints as I just need to see if the report would actually work without bringing the system to its knees. I'm hoping this isn't the case...
    I can insert tables and link USOBT to AGR_1251 then to AGR_USERS and then to USGRP_USER but the custom table with tcode A to tcode B isn't available to insert. The aim is to define a single user group as a starting point to run and analyse and gradually increase the number of user groups in the program in background mode to build up a picture of the number of conflicts based on users' object activities. (A poor man's RAR I suppose)
    Without ABAP assistance, as there isn't any for several months, is there a way a custom table be made visible to SQVI please?
    As always, no points are given regardless but a warm thank you is always given for any comments or assistance whether or not actually stated.
    Cheers
    David

    Hi Sandipan
    Also, pool/cluster tables cannot be used in SQVI. It always has to be transparent table if you want to insert it in SQVI.
    Thanks Sandipan, it does look like this custom table isn't going to work based on this insight.
    Hi Julius
    Thanks for that one - a report in SUIM I have never used before!
    We don't yet have the RSUSR008_009_NEW report in this version but the transparent table USKRIA from RSUSR009 can be inserted but doesn't result in anything unfortunately - however - running the report from SUIM, it appears to be a list of either SAP delivered or customer defined critical objects which I'm still a bit confused about (as you probably expected) as it is a list of 'ID's - 71 in QAS.
    This really does look similar to the client's custom table that has already been generated with 1400+ entries where it might be possible to add the transactions to the 'ID' field with their SU24 values, this would then, hopefully, let me do a join to exclude users who don't have the object, field name and 'from' values in the AGR_1251 entries.
    The next step from that (in the original SQVI) was to do a join to find users with both transactionA and transactionB but, maybe, this isn't possible in R3. I'm trying to avoid using Microsoft Access to manipulate tables out of SAP as it's an extra offline process that will only add confusion and probably end up in the Recycle bin once I've left.

  • Transaction Code fro Sq01 query

    Dear all,
    i have created a query in Sq01 and assigned a Tr Code for the same. Now thew user i asking for extra fields to be shown in the Query When i changed the query and tried to execute the report thru Tr Code The newly added fields are not seen but when i run it thru SQ01 i see the new fields.
    When i checked in SE93 it says "Transaction contains inconsistencies. Do you want to execute it anyway? "
    Can any body pl tell me how to overcome this ?
    with rgds
    Ranjith Singh

    hi,
    whenevr u do som changes in sq01 ,som program will be internally generated,so u have to change the transaction again,do one thing goto system status of sq01 take program name and create tcode.
    check it then.

  • Link SRM and back-end in a query

    hi experts,
    i'm doing a query in SRM 4.0 with a back-end ECC 6.0.
    This query includes some TABLES/VIEWS of SRM and others of ECC 6.0 (MM module). Pay attention: i know how is possible to link the views between them, i need to know how to connect two system (SRM and ECC6.0 - MM module) in the same query.
    thanks a lot
    ab

    Hi,
    thank you for your response. This query is developed with tool SQ01, and his scope is to get data from R/3 tables (Eban,Ekko,Ekpo,Lfa1) and SRM tables (BBP_PDView_IAP,BBP_PDView_ACC,...), for view shopping cart state on SRM, and its relative Purchase Order on MM.
    Can you make me an example for RFC-enabled function modules (Business APIs) ?
    thanks a lot
    ab

  • 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

  • Executing Abap Queries in Abap Code and processing the result

    Hi,
    I want to execute ABAP Queries (designed by sq01) in an abap report and processing the result in an internal table.
    How could it be work?
    Thanks a lot for your responses,
    with kind Regards
    Reinhold Strobl

    Hello,
    GO to SQ01 and select your query. Go to Menu QUERY-->More Functions->Display Report Name.
    You can then take that report name and go to SE38. Copy the code before END-OF_SELECTION and then modify as per your own requirements.
    Regrads
    Saket Sharma

  • SQ01 - table query - invoices by vendor with tax

    Hi guys,
    Apologies if this is too basic though am new to SQ01 and whilst grasp the general concept struggle to find tables that I need.
    I'm looking to report on vendor invoices for a given period, ideally showing gross and net invoice ammount.
    What tables do I need to link?
    Also will  I be able to get the two ammounts or will it be simpler to grab the gross ammount and the tax code? and then play with in excel
    Any help much appreciated as usual, many thanks

    Take a look at [SAP Tables -> MM|http://www.erpgenie.com/abap/tables_mm.htm]
    Take also a look at logical database on purchasing. (call transaction SE36 and search database using table EKPO, EKKO)
    Regards

  • How to change user group of a query (sq01)

    Hi,
    I'm working with SAP Queries (SQ01) and I don't know how can I change the user group assignation of a query. We did only one user group for all users and queries and know in order to arrange it a bit we've created three user groups.
    We know how to assign users to new user groups but for each query of the old group we neet to move it to one of the new user groups, how could we do this?
    thanks in advance

    Hi
    pls go through these links
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
    Step-by-step guide for creating ABAP query
    http://www.sappoint.com/abap/ab4query.pdf
    ABAP query is mostly used by functional consultants.
    SAP Query
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same

  • Name of tables of fb50 and fb60 and fb70 and fbcj

    hi all
    i make a query from sq01 and it for all  transactions
    io make tranaction in fb50 and fb60 and fb70 and fbcj
    but i need the name of these tables
    tables of documnt header and line items
    tables of vendor header and line items
    tables of customer header and line items
    tables of cash journal  header and line items
    Moderator: Please, search before posting

    Hi,
    please check:
    tables of documnt header and line items: BKPF
    tables of vendor header and line items: BKPF, BSIK and BSAK
    tables of customer header and line items: BKPF: BSID and BSAD
    tables of cash journal header and line items: TCJ_C_JOURNALS, ACCJOURNAL0C, and TCJ_C_JOURNALS
    regards

  • ABAP User Roles and Query for accessing particular T- codes and Reports

    dear Gurus
    I have one problem, i want to know about ABAP User Query ,i have one requirement my user wants to Lock all the HR Std versus Customized reports in T- code SQ01,other department peoples also see the Payslips and Hr personal reports which is harmfull to the dept so i want to Lock all the reports in Std T- code in SQ01 and i have created one Customized User Roles or Query in which the T-codes and Reports are assigned only those particular user can access the T-codes and Std reports .how can it be possible i dont have any idea about user roles and Queries .
    kindly help me out or send me some documents related to user roles and queries
    regards ritesh sharma

    Hi Ritesh,
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/103cafc2-7a64-2b10-14b3-eddb7d324561
    Regards,
    Flavya

  • SQ01 query help..

    Dear All,
    I created a query with SQ01 and added a new fied using calculations from standard fields (with short texts).
    I mentioned calculation formula as (PO QTY - GR QTY) = Balance quantity.
    In layout output displaying - as Balance quantity , but problem is...
    look at the below example output as it ease showing in report..
    PO QTY     GRN QTY    BAL QTY
    100                 10                  90
    100                 50                  50
    100                 30                  70
    100                 05                  95
    400                 95               305
    Where as it should has to show balance quantitiy 5 only (since Purchase order for 100 and Goods receipt for 95). But system adding line item wise quantities. Please suggest is there any solution where is the system should calculate by single po quanitty and all goods receipt quantities and gives balance quantity only. (ECC 6). Any formula to calculate for the balance quantity as desired.
    Thank you in advance and Regards,
    Syed Hussain.

    Yes. Solved the issue.. By taking EKET table and SUM @ Mean.
    Thanks.

Maybe you are looking for

  • Links in Reports

    Hi, is there any way to open a new browser window when we click on linked field in a report? The default behaviour is to open the linked page on the same window. Thanks.

  • Basic JAR Question

    Hello, I hate to ask such a simple question, but I'd like to get confirmation from people who know. It is possible to package non-EJBs into a deployed JAR containing EJBs, isn't it? I have heard that you cannot mix a non-EJB class into a JAR that con

  • Sticky resource issue

    I receive error message "Error: sticky resource not available" after configuring "ACE/Admin(config)# sticky ip-netmask 255.255.255.255 address source STICKY_FARM" in Admin context. There is no other context on the ACE and I intend to use all sticky r

  • Why again happening like battery draining on my ipad 3 ATT?

    There is no problem on ipad 3 when iam using.it happening when the ipad on standby. wwhen in use the battery usage is correct.the battery draining is happening only on standby,its draining like this 99% to 81%. when i use long period it goes to switc

  • Photos stop uploading

    My nano is very full (around 50mb free). I have a few hundred photos that were successfully loaded on it. Then I added one or two more songs. When it updates, iTunes says it's updating photos, but only for a second (no error message, or any indicatio