SQVI to Z program

Folks,
I was able to create a z program by the program name generated by SQVI, I was able to copy the code from AQA0SYSTQV000034********====== to a Z program and also assigned a transactio to id. It works fine and is excellent. Now when I am trying to copy the program to another box, the code is not running and some of the includes and fields are erroring out. When I scan through the code, I see that most of the code is runtime generated and is not working in the new client. Dear friends has anybody faced this issue; how do i get this working in another client. I dont want to ask the business user to create the Quickview again in the new client. He is very busy with his own things. Also I doubt, if the code is transportable from the development client to Testing and Prd; the code might not work there again. What would be the best way to work with this code, so that it is easily copied or transported from one client to another.
Thanks for your help in advance.
-NEHA

Hi
ABAP Query(SQVI) is client specific and is not perfectly transportable.
it has to be redesigned in the other system again.
generally it is a tool used by fun consultants
see the doc
http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
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.
To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
use either SQ02 ans SQ01
or SQVI tr code
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
regards
Anji

Similar Messages

  • Using SQVI To Generate Program in DEV

    I have read a lot about the merits of using SQVI for simple queries and then generating the code and assigning to a transaction code so that others can run the query/report. I have found posts in this forum that suggest using SE93 to create a transaction code and assign the SQVI generated program is the only way that an SQVI query can be shared. I certainly hope they were not assuming that users have SE93 in a production environment??
    My question is, if I create this query and generate the program in our DEV environment and then assign it to a transaction code, can this be transported from DEV to TST to PRD intact? Will this work?
    One other question, when the program is generated does it also create the required authorization checks? I am using USR* tables for this report, nothing considered sensitive, would any additional authorizations be required to allow just about any user to run the transaction?
    Disclosure, I am a power user and not an ABAP specialist.
    I appreciate a speedy reply if that is possible.
    Thanks
    Mark

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • Create a program form SQVI

    Hi guys,
    i created a query in sqvi and the program that is generated automatically,
    also i create a txn for that program
    i want to transport it to Productión, but i cant!
    i tried to attach the program manually to a transport (se10, using R3TR PRG MY_PROG),
    but an error msg is displayed "u need to enter in a catalg"
    any knows if is posible to transport it?
    tks in advance

    Hi!
    i dont know how to transport a SQVI query, wich option do i need to use?
    i tried infosets, infoset + queries but both does not display the query that i created in sqvi transacction
    any directives?
    or example ?
    tks

  • SQVI info req??

    Hi
    I am told to make a tcode for a SQVI generated Program,i copied the program to a ZPPRG,but when i moveed it to QAS,I found that the Reports Texts Elements are missing,both form the selection-screen alos from the O/P disply.
    so can any one tell me how to copy the SAP SQVI Query Generated program,so that i can make its tcode & take it to QAS along with all text elements.
    its a uregnt issue.
    pls help me??

    Vipin,
      I answered no. of times for this question.You might have not tried.
    Steps
    1.Execute your query .
    2.Goto tcode se38 you will get the programe
    3.Open one more session with tcode se93.
    4.Enter your name of your ztcode there.
    5.Press create button
    6. Give short description
    7. Select  second radio button(Program and selection screen(Report transaction))
    8.Enter program name which you have select in SE38
    9. assign to dev. class
    10.SAVE.
    It will work fine

  • SQVI Transaction - QuickViewer  Transport

    Hi,
    I understand that the SQVI transaction is used to generate custom reports at the user-level. A few questions on this
    (1)How can I transport/move a report created in Development Server to Production Server ?
    (2)Is it possible to create the SQVI query in my login and then "somehow" make it accessible for use to all users
    (3)Is the SQVI a strictly DISPLAY only transaction or is there anyway a user may change data present in the system..
    Appreciate your response,
    Thanks,
    KF

    KF,
    Maybe what you don't realise is that when you create an SQVI Query (or ABAP Query) the system creates an ABAP program in the background.
    You find this ABAP program by going to SE38 and searching for all ABAP programs that have been created by the same user that created the SQVI, and are program type "1" (executable program).
    The program name will be system generated so it probably won't make much sense, for example one of mine is AQICSYSTQV000004BADIS========= where BADIS is the name of the SQVI.
    You can now get your ABAP team to create a manual transport for this program and even give it a new TCode
    PeteA

  • Problem transporting a program created by sqvi txn

    hi guys, i create a query in SQVI, and i create a program, then i tried to transport it , but the following error occurs when i tried to write a transport entry or Change package assignment or
    Object directory entry.
    Message no. TK313
    Diagnosis
    The object list of request/task DEVK929463 contains the object R3TR PROG AQ20SYSTQV000069Z_REP_PEDIDOS=. This object requires an entry in the object directory, however this entry does not exist.
    System response
    The function terminates.
    Procedure
    Proceed as follows:
    1. Call the extended view of the Transport Organizer (Transaction SE01), and choose Display.
    2. Enter request/task DEVK929463 and choose Continue.
    3. Position the cursor on the request/task DEVK929463, and choose Edit -> Expand.
    4. Position the cursor on object R3TR PROG AQ20SYSTQV000069Z_REP_PEDIDOS=, and choose Object -> Object directory entry.
    5. Enter an appropriate package and save.
    If you are in the display of request/task DEVK929463, and want to check whether the object list contains any other objects without directory entry, then position the cursor on request/task DEVK929463 and choose Request/task -> Object list -> Lock objects. A list of all objects with errors appears.
    already try it, but it does not work
    =(

    Hi,
    SQVI queries can not be transported, If you want to transportable query create them via SQ01.
    Thanks
    Romit

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

  • How to call SAP query in a program

    Hi experts
      I have created a query in SQVI its gives a result. Now i want this query to be used in my program. Is there any FM which gets the quary name and populates the result in iternal table. So that i can use that result.
       I know without query you can write using the tables you can fetch the records but i just want to explore a new way to do things. If any body done such type let me know and also give some sample code or process how to achieve it.
    Regards
    Vijay

    Hi Siva
      My final option is that only. That you can do any how. But my intension is to learn something new way. How to do copy the query and where to inject the code is there any example in wiki or artical for that. I want to something new. Old way of creating a report program is possible i want to do this way. If some body could help me out.
    @ karthik
       I have generated the SAP query and i got the program but when i view the code i dont find any select statment or where storing my input data. How to identity that i did in debug mode but am not sure where it pulls the data and where it put in internal table. Can you throw some light with example code or an article.
    Regards
    Vijay

  • Customer Master with SQVI

    Hi,
    I am trying to create a Report in SQVI for list of customers, but can anybody guide me the steps, if I am trying to join tables : KNA1, KNB1 & KNVV.
    System is allowing me to join but no data is populated at the time of execution.
    Rgds,
    Indrajit

    Hi,
    1. got to the transaction.
    2. create a Quick view report (ex. Mara_marc)
    3. a screen will appear, input necessary info. Now if you like to create a view for only a single table put "table" in the data source field, or for join, just select "table join" (lets use table join)
    3. put necessary info
    4. select Basis or layout mode (i prefer Basis)
    5.on the Basis edit screen, "insert table", insert as many as you want but be sure they have foreign key to connect to. after that press back.
    6. you will be brought on a screen with four tabs. and i think it is self explanatory what they mean, just select from the right had side of the screen the field you want and press the "<" arrow to put them in the left hand side.
    Or
    Once you have found that the Query is working to your requirement, then
    1. Go to System (on the menu bar) -->status. Note the Program it is running and the screen number.
    2. Run the TCode SE93 in another screen. Go to create TCode. Enter the TCode you desire to create and say CREATE.
    3. Enter the description and choose second option "Program and selection screen".
    4. Enter the Program from the query screen you just copied and the screen number as well. SAVE.
    5. You have test option on the screen an icon that resembles open bean. Test the transaction to see if it takes you to the query screen. If it working, then Save and exit.

  • Transaction Code assignment for Query created in SQVI

    Dear All,
    Good morning I hope you are doing great...
    Can any body help me out to assign transaction code for Query which was created through SQVI transaction.
    Regards,
    Murali.

    Hi Murali Mohan
    1>go to SQVI t code and  enter your query name and press enter
    2>In the menu path select Quick view--> additional functions-->Generate Program
    3>After Generating the program In the menu path select Quick view--> additional functions-->Display report Name
    4>Now in se38 enter the report name in Program field and execute
    5>You will get the Initial Selection screen of the report . Go to Menu of System -->Status
    6> Note down the Program name and Screen number
    7>Go to SE93 and Create a Z tcode for the query, Enter the description  and importantly you have to select the 2nd Option radio Button Program and Selection Screen (Report Transaction) and Press enter
    8>In the next screen enter the Report name In Program field and enter the screen number
    9>In the classification Section select Professional user  Transaction
    10>In GUI support section select all the options  i.e SAPGUI for HTML,Java,Windows
    and save
    the system will ask for Package select your package if not there then select local object
    now execute the Z tcode your report will run sucessfully
    Regards
    Vijay hebbal

  • Limiting number of rows returned by SQVI

    I've created a query in SQVI and I need to limit the number of rows returned by the query.  (I'm using the query as an exploratory tool, and it's not easy to predict how many records will be returned based on the selection fields I'm using.)
    Is there any way to add a 'Maximum No. of Hits' field to the SQVI selection screen similar to what is found when using SE16?
    Thanks,
    Bob

    It's not surprising that you are confused because the documentation doesn't bother to explain what the "fetch size" actually is, it just says that setFetchSize sets it and getFetchSize gets it. As I understand it from some other documents I read about JDBC, the fetch size is a number that may be used internally by the JDBC driver. Here's an example of how I understand it (others, I know you will feel free to correct me if you disagree):
    When the driver produces a result set with a very large number of records, it has to generate those records and deliver them to the system that requested them. If the database is not on the same system, then those records must all travel over the network. It could be a performance problem if you had to wait for (say) 80,000 records to travel across the network. Enter the fetch size. If you set the fetch size to 100, then the driver will bring the records across in batches of 100, as the program calls for them. Now, this buffering is transparent to your program; the driver doesn't tell you that it's getting another batch and you can't tell it to get another batch. So it is not a solution to the problem that everybody has here, namely how to display your records 10 per page and allow the user to go back and forth among those pages, like search engines do.

  • SAP Query in SQVI transaction

    Hi All,
    I have created a Query in SQVI transaction, How to assign a transaction code for it.
    Thanks in advance
    Raju

    hi,
    follow the link:
    http://help.sap.com/saphelp_erp2005/helpdata/en/b7/26ddebb1f311d295f40000e82de14a/frameset.htm
    you will get full information about SAP Query.
    There is no SQV1 transaction.
    SQ01 --> maintain query
    SQ02 --> maintain info set
    SQ03 --> maintain user groups
    he SAP Query application is used to create reports not already contained in the default. 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 reports and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    The SAP Query comprises five components: Queries, InfoSet Query, InfoSets, User Groups and Translation/Query.
    hope this may help you,
    regards,
    srinivas

  • How to modify existing code of SQVI report?

    Hi Expert,
       There is a SQVI report which has already been created but we need to change the one for new requirement.
    is there any way to modify existing code for new requirement?
    Can we edit in abap workbench?
    Thanks & Regards
    Savita

    Savita,
    You can not modify SQVI system generated code. You need to go to SAVI change mode and make modifications. If your requirement is a sort of additional fields or inserting come code into the program , then SQVI is not the choice. You need to use Infoset Queries (SQ03, SQ02, Sq01).
    KJogeswaraRao

  • Downloading in excel from sqvi report format in the background

    Dear All,
    We have developed couple of report using SQVI format for couple of reports. Now for those reports my client wants to download them in excel sheet and attach to the email, when email is triggered automatically to the specified email id's. This is urgent issue which need to be given b this week end. Thanking everyone in advance for your replies.
    Regards
    V. Srinivasa Ranganath

    Hi,
    Get the report name in selection screen of SQVI, something like AQ30SYSTQV000002MARA==========.
    Create a new job in SM36 with a step with this report
    In this job add a SPOOL Destination with defined email or list of emails
    When job is executed the spool will be automatically sent to the mailing list. If email attachments configuration is to generate an attachment in html format, that html can be saved from Outlook to local disk and opened in excel, as many html files.
    If you want something more professional you'll need to create a program in ABAP that actually does the same as the SQVI but creates a file in excel format, using abap2xlsx probably, and then sends it to the distribution list.
    Most excel functions in SAP requires the Excel in the frontend computer, so they cannot work in background or in the server side. abap2xlsx is useful in this cases.
    Regards,
    Edgar

  • Program of query report

    Hi Consultants,
    I would just like to know the procedure on how would i find the program generated by the query report i've created from sqvi, and how can i make a tcode from it? Thanks!
    Liezl

    HI,
    After creating your query you got to system (in the same screen) service- report then u can find a program for that query.
    for maintaining T-code goto SE93 give ur code (Y or Z) and click on create - system will ask for program
    try this
    Regards

Maybe you are looking for

  • BAPI_SALESORDER_CREATEFROMDAT2 line item assignment

    Is there a way to use BAPI_SALESORDER_CREATEFROMDAT2 without having to predict internally assigned line item numbers by SAP? E.g. creating an order with 2 line items, the 1st line item explodes into a sales BOM, so in order to tie sales order text or

  • Serious problem recording guitar tracks! I can't get them tight!

    I am a good player and have recorded quite a bit in my life, but I can't for the life of me get these part to lock with everything else. I'm using a click and also playing to drums and keys. It feels tight and feels like it is locking when playing bu

  • SCM Collaborative portal - works internally but  NOT through Internet

    I am posting this question this form as you have very good knowledge of portal and I believe  underlying technology of  SCM collaboration Portal and EP are same. I am working on Collaborate planning in APO (SCM) - sharing SCM planning books over inte

  • Move license to new computer  Acrobat 7

    We have a licence that was on a pc that has died. I need to install the application on a new pc.  The SN for the Acrobat 7 product is: [REMOVED] Do I need to do anything special or will the install just work when I enter the entire SN

  • Query builder bug in outer joins ?

    I understood that if you were joining two tables A and B, the following was a LEFT OUTER JOIN SELECT A.COL, B.COL FROM A, B WHERE A.ID = B.ID (+) ie: a LEFT outer join has the (+) on the Right-hand table. However, query builder puts the (+) on the Le