Declarations in SAP QUERY generated ABAP Programs

hi,
i had created a ABAP Program through ABAP Query (SQ01,SQ02,SQ03) but i have a issue that when i transport it to the PRD server i got the run time error. The Z program which i had created is the copy of the SQ01 generated program and i had done all the includes declarations in this program. but there is a problem that it is consist of the declarations of the structures,quries .
I want to know is it necessary to always transport the Infoset and user group and the structure which is present in the program generated .
Please provide me guidelines for this problem  .
Edited by: ricx .s on Jul 6, 2009 5:31 AM
Edited by: ricx .s on Jul 6, 2009 8:07 AM

hi,
i had copied the program bcoz i want to chekc that it is really necessary to transport the user group and infoset so that it can achieve functionality similar to the SAP QUERY.
is there any other way without whichi can ahieve the functionality of SAP QUERY generated program and take it into the ABAP Porgram?

Similar Messages

  • Diff between sap query and abap query

    diff between sap query and abap query

    Hi,
    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,
    vasavi.
    reward if it is helpful.

  • Converting SAP Query to Report Program

    Hello Experts,
    I'm stuck up with an issue.
    I want to convert SAP query into a report program as the things which I need to implement is not possible with SAP Query anymore.
    So I need to convert SAP query to Report program.
    I'm very much aware about the SQ01--> Query --> More functions --> Display Report Program
    But this Report Program generates is AQ..................... but if you see the code there will be buch of dynamic calls not as clear as ABAP code and not much flexibility to modify...
    Please Provide a solution to this.
    Regards,
    Titiksha

    Hi Bhange,
    Glen Anthony has said very well and I support him. Even I suggest you to ignor the report generated with Query and develop a new report with the required business logic.
    Regards,
    Vijay

  • SAP Query: Transport tool(program: RSAQR3TR)

    Does the SAP Query: Transport tool(program: RSAQR3TR) transport addtional fields and code in Extras of an InfoSet from one system to another?
    TKS in advance.

    Hello,
    Yes the ABAP query transports the whole Infoset.
    Goto Transaction SQ02
    Goto Environment -> Query areas -> Select teh Standard area.
    Select Environment -> Transports -> Import radio Button
    Check the Overwriting allowedand teh remove the check for Test Run
    Select the Transport Infosets and queries radiobutton
    Fill in the Infoset and teh Query with the corresponding names and the Import option with Transport Request Number
    Execute
    Regards

  • Crystal Report on SAP R/3 ABAP Program or Transaction Code

    Hi Experts,
    I am working on SAP BI, my current requirement is to develop a dashboard. Client given the list of reports and they want to see these reports as a dashboard in BO. All these reports are SAP R/3 ABAP Programs. My doubt here is, is it possible to connect directly or bring directly a ABAP program in crystal reports. I know that form crystal reports we can connect to SAP R/3 through SAP Table, Cluster , Function Modules and so on.
    Anyone please clarify this doubt.
    Thanks & Regards
    Ramakrishna Kamurthy

    Moving to Integration kits forum: Questions re: Crystal Reports/Enterprise to SAP Integration Kit - SAP

  • 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

  • How to execute this SQL Query in ABAP Program.

    Hi,
    I have a string which is the SQL Query.
    How to execute this sql Query (SQL_STR) in ABAP Program.
    Code:-
    DATA: SQL_STR type string.
    SQL_STR = 'select * from spfli.'.
    Thanks in Advance,
    Vinay

    Hi Vinay
    Here is a sample to dynamically generate a subroutine-pool having your SQL and calling it.
    REPORT dynamic_sql_example .
    DATA: BEGIN OF gt_itab OCCURS 1 ,
    line(80) TYPE c ,
    END OF gt_itab .
    DATA gt_restab TYPE .... .
    DATA gv_name(30) TYPE c .
    DATA gv_err(120) TYPE c .
    START-OF-SELECTION .
    gt_itab-line = 'REPORT generated_sql .' .
    APPEND gt_itab .
    gt_itab-line = 'FORM exec_sql CHANGING et_table . ' .
    APPEND gt_itab .
    gt_itab-line = SQL_STR .
    APPEND gt_itab .
    gt_itab-line = 'ENDFORM.' .
    APPEND gt_itab .
    GENERATE SUBROUTINE POOL gt_itab NAME gv_name MESSAGE gv_err .
    PERFORM exec_sql IN PROGRAM (gv_name) CHANGING gt_restab
    IF FOUND .
    WRITE:/ gv_err .
    LOOP AT gt_result .
    WRITE:/ .... .
    ENDLOOP .
    *--Serdar

  • Declare func on Query Generator

    Hi,
    I am Using SAP B1 for hana ver 9.0 PL10
    I have a difficulty to use Declare function as variable reference in Query Generator, Any tips for this matter ?
    Thanks

    You can do this using the SAP Business One Query Manager. The code below calls a stored procedure with one parameter of the DateTime type, which the user is prompted to enter:
          declare @tmp as nvarchar(100)
          select @tmp = T0.Name from [@ADV] T0
          WHERE T0.U_Date = '[%0]'
          EXEC myReport '[%0]'
    The table @ADV is used just to let SBO know that the actual type of the [%0] parameter is Date.

  • Can we update BW infocube from SAP using Custom ABAP program ?

    Hi,
    My requiremnet is to update the infocube using data from R/3 .
    I have a custom report program and users want this data in BW.
    Let me if there are any FM? from which we can call via RFC or any other alternatives?
    Rgds
    Praveen

    report must be an ABAP program in ECC I guess...Why dont you look forward for generic extraction...
    Check this one:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33

  • RRi for query using ABAP program

    For a report, we are using RRI (jump to target) functionality to see invoices in R/3 system using an ABAP program. I do not have much idea on R/3 systems how invoices are setup in R/3 Dev, test and prod. The ABAP report is done by a backend person. I need to place that in RSBBS. Here, my doubt is that do we need to follow the same procedure for this to move it to production system i.e, first create that RRI and ABAP in respective dev systems and transport both to test and then to Prod? Could anyone please explain me the steps on how this will work in real-time?
    Points will be assigned.
    Thanks

    Hi,
    I am not able to find how the two reports are conncted.
    You can check in RSBBS t-code. RRI will be defined here to jump from One Query yo another and many more options.
    My work is to copy the parent query a nd do some modification to it. Please let me know how to check and achieve that.
    You can do this BEx Query Designer itself.
    Regards,
    Suman

  • Oracle Query From ABAP Program

    Hello everybody,
    I have a doubt about if I can do a Query to a External Oracle Database to get some records and then process them in my ABAP Program, is this possible?, if this is the case can anyone help me with some documentation, thanks in advance for your answers.
    Regards,
    Julio

    Hi Julio,
    you can use the open SQL connect statement
    EXEC SQL.
      CONNECT TO dbs [AS con]
    ENDEXEC.
    or even you can define the DB in the FROM with the option CONNECTION
    ... FROM { {dbtab [AS tabalias]}
             | join
             | {(dbtab_syntax) [AS tabalias]} }
             [UP TO n ROWS]
             [CLIENT SPECIFIED]
             [BYPASSING BUFFER]
             [CONNECTION {con|(con_syntax)}] ... .
    Hope it helps,
    Edgar

  • ABAP QUERY (SAP QUERY) Coding problem?

    Hi experts,
    Can anyone tell me how to find what is the final internal table in SAP QUERY? I want to delete some unwanted records from my final internal table but I am unable to find it. please do help. Its urgent I am strugling from 3 days, to day I have to finish this task...
    Help !!!!!

    HI,
    It is not the the internal tables but the structures have been filled for the tables you have declared in SAP QUERY
    or defined using EXTRAS option.
    in the application tool bar there is  a button 'CODE' by using the 'Record Processing' event of this you can clear the fields you want.
    REgards

  • Tcode to find the load in server is 20 users run a particular ABAP program

    I want to find the load in the SAP Server (in terms of CPU Usage, memory usage) if a particular Query or ABAP program is executed by 20 users.
    Pls let me knwo the Tcode for the same
    As per my understanding ST03 can be used to view the report of previous information only.

    Balaji
    You have the analyze the load while 20 users executing the following transaction code.
    OS06 - operting system monitor and click on detailed analysis where you can monitor the various instances
    if do you find the other transaction which will show you load of current program being used by 20 users, please share with the expert communitiy to help to other users.
    REgards
    Anwer Waseem

  • Call ABAP Program in Process Chain

    Dear BW Gurus,
    I need to call an Process chain which includes ABAP Program.
    The ABAP Program doesn't have the variants but it accepts the inputs from the user and sets into a YXXXX table.
    I am not getting how to proceed in this regard.
    Kindly guide.
    Best Regards,
    Harsh

    hi,
    chk these links below.. they contain the resolution for your query
    Call ABAP Program in Process Chain
    ABAP in Process Chains
    Also chk this relase which ia an entire guiding one to ABAP Program in Process Chain
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7

  • SAP Query : Save to file in XLS format in background

    Hello everybody,
    I used the enhancement SQUE0001 for saving result (an XLS file) of SAP query in background.
    I used also the ABAP commands 'OPEN DATASET', 'TRANSFER' and 'CLOSE DATASET' as described in the SAP note 537735.
    The execution of SAP query generated multiple columns. But when I go to see my downloaded file (.xls), all generated columns are condensed into 1  !!!
    How to save the file (.xls) and keep the separated columns, please?
    Thanks for your answers.

    For saving the file in Excel format in the App server you have to first convert the data in XLS format and then use the transfer statement.
    You can either use FM SAP_CONVERT_TO_XLS_FORMAT for that.
    OR
    Create a comma sepreated file which will open in excel.
      open dataset file for output in text mode.
      loop at itab.
        concatenate itab-field1 itab-field2 itab-field2 into str
                      separated by ','.
        transfer str to file.
      endloop.
      close dataset file.

Maybe you are looking for

  • The problems with Logic (as I see them)

    Hello Everyone, Please keep in mind that I am writing this with the intention of expressing my frustrations, and what I feel would make Logic a better program. I realize not everyone will agree with the importance of what I say, but I am a firm belie

  • Save as 3ds

    Hi I would like to know if anyone has got experience with exporting the simpleUniverse or anything from the universe into a 3ds file. If you have any idea, tried it or know any extentions that can do it I would really like to know. I have the idea th

  • How can i add a donate now button to my iweb website

    how can i add a donate now button to my iweb website

  • SDK, sapnwrfc, C++, rfcclose and memory

    Hello, can somebody help me? I have made a software in visual c++ 2005 using sapnwrfc.lib (release: i use the library in the file NWRFC_2-20002217.SAR, Version:7.11 patch 0). This software uses more and more memory each time I call RfcOpenConnection

  • RAW Images using Adobe RGB

    This appears to not just be an issue with iPhoto but more of the RAW image support in OS X itself. All RAW images that are opened in preview have the color profile Adobe RGB attached to them - this goes for all RAW images that I export to JPEGs from