How do i save abap query as a transaction ?

hi
i created an abap query and i want to know how to connect this query to a transaction
i also want to know <b>what is the difference between standard area</b> ( client specific) <b>and</b> <b>global area</b> ( cross-client ) ? ( i created my query under global area )
thanks
ami

Hi..
Steps to Create a Tcode for SAP Query:
1. Goto Tcode SQ01.
Enter the Query Name
Select the Menu path: Query -> More Options -> Generate program.
2. in SE93 Create a tcode for this program .
    Select the Transaction type as Report Transaction.
<b>reward if helpful. </b>

Similar Messages

  • Hi, How to modifie standard ABAP Query's

    Hi ,
         How to modify standard ABAP Query programs.Plz any one help me in this matter.

    Hi
    1) Go to tab Class -> Enhance
    2) Create a new enhancement implementation
    3) Now you can add a method / modify existing method etc...
    Also see the following link ->
    https://www.sdn.sap.com/irj/sdn/nw-development?rid=/library/uuid/bb54c452-0801-0010-0e84-a653307fc6fc
    (Section Class Enhancement might be useful in the ablove link!!)
    Hope this helps.
    Neeraj

  • How to create an ABAP Query with OR logical expression in the select-where

    Hi,
    In trying to create an ABAP query with parameters. So it will select data where fields are equal to the parameters entered. The default logical expression is SELECT.. WHERE... AND.. However I want to have an OR logical expression instead of AND.. how can I attain this??
    Please help me on this.. Points will be rewarded.
    Thanks a lot.
    Regards,
    Question Man

    Hi Bhupal, Shanthi, and Saipriya,
    Thanks for your replies. But that didn't answer my question.
    Bhupal,
    You cannot just replace AND with OR in an ABAP QUERY. ABAP QUERY is a self generated SAP code. You'll just declare the tables, input parameters and output fields to be displayed and it will create a SAP standard code. If you'll try to change the code and replace the AND with OR in the SAP standard code, the system will require you to enter access key/object key for that particular query.
    Shanthi,
    Yes, that is exactly what need to have. I need to retireve DATA whenever one of the conditions was satisfied.
    Saipriya,
    Like what I have said, this is a standard SAP code so we can't do your suggestion.
    I have already tried to insert a code in the ABAP query (there's a part there wherein you can have extra code) but that didn't work. Can anybody help me on this.
    Thanks a lot.
    Points will be rewarded.
    Regards,
    Question Man

  • How to modify standerd abap query  (SQ01) ...

    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

    s shiva,
    my query is that one only.
    i am having one formula depreciation = ( previous year / aquesition value ) * 100
    this formula i have to insert.
    how can i proced.
    pls guid me.
    thankx and regards,
    sai

  • How to convert an ABAP Query into a report?

    Hi ..
    My requirement is that I need to replace an existing query with a new  ABAP report.Is there any formal way to do the same?
    I am looking for all  pointers in this regard.
    Thanks,
    Kranti

    Use Tcode SQ01.
    Give the query name press Enter.
    The query will be listed in the table below.
    Select the Query => From the Main menu select QUERY => More Functions => Display Report Name.
    You will get the program name, now go to Se38 and display the program...

  • How to Publish the ABAP query results as csv

    Hi,
    I have a scenario and need help for the same, I need to query a table in CRM which has the long text information and publish or save the result as a csv file, is it possible? if so please tell me the steps and code if available
    Thanks
    Akila.R

    Hi,
    Two formats of creating a CSV file:
    report zrich_0001 .
    data: it001 type table of t001 with header line.
    data: iout type table of string .
    data: xout type string.
    field-symbols: <fs>.
    select * into table it001 from t001.
    loop at it001.
      clear xout.
      do.
        assign component sy-index of structure it001 to <fs>.
        if sy-subrc <> 0.
          exit.
        endif.
        if sy-index = 1.
          xout = <fs>.
        else.
          concatenate xout <fs> into xout separated by ','.
        endif.
      enddo.
      append xout to iout.
    endloop.
    call function 'GUI_DOWNLOAD'
         exporting
              filename = 'C:\test.csv'
         tables
              data_tab = iout.
    report ztest.
    type-pools:TRUXS.
    data: begin of itab occurs 0,
          vbeln like vbap-vbeln,
          posnr like vbap-posnr,
          end of itab.
    data:  itab1 type TRUXS_T_TEXT_DATA.
    select vbeln
           posnr
           up to 10 rows
           from vbap
           into table itab.
    CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
      EXPORTING
        I_FIELD_SEPERATOR          = ','
      TABLES
        I_TAB_SAP_DATA             = itab
      CHANGING
        I_TAB_CONVERTED_DATA       =  itab1
      EXCEPTIONS
        CONVERSION_FAILED          = 1
        OTHERS                     = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename = 'C:\TEMP\TEST.CSV'
      TABLES
        data_tab = itab1
      EXCEPTIONS
        OTHERS   = 1.
    Use SE38.
    Regards
    Subramanian

  • ABAP Query transport request

    Hi All,
    We created an ABAP Query report for Transfer order address and it is system generated report. When I am trying to find the version management but is it showing no version found. Even I have created TR manunally and imported to quality system, But this program is not moved.
    I have a doubt here this is system generated program that we cant import to other system or can we import?
    Can you please let us know how can we transport ABAP query report?
    Regards,
    Jyothi CH.

    Hi Jyothi,
    Copy this report in another prog, save with package. that time it will be asking request. make request for this copy prog
    so this way you can able to find transport request.
    Regards,
    Kunjan

  • ABAP query to find delivery number of a sales document

    Hi Gurus,
    Can anyone help me how can i create an ABAP query to fetch the delivery number of a sales order. What are the tables to be joined.
    Through tables I got the solution. From VBAP table I fetched the sales order numbers. I copied the sales order numbers and opened VBFA table. In the preceding documents field I had pasted those sales orders numbers. Then I've selected subsequent document category 'J' to get the deliveries.
    But now how to write an ABAP query for this.
    regards
    rama krishna

    Hi,
    Try to use join query like:
    Select vbfa~VBTYP_N  INTO CORRESPONDING FIELDS OF TABLE itab from VBFA inner join VBAP
      where vbapvbeln = VBFAVBELN.
    Regards
    Mudit

  • Assign SQ03 Abap Query User Group to role

    Please advise how to assign SQ03 Abap Query User Group to a role. Thanks.
    Moderator message: please do more research before asking.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on May 12, 2011 5:40 PM

    Hello Sunil,
    The problem is that I have hundreds of users to maintain user groups.
    found out that it is possible to assign user group to role and role to user groups. implementing hr authorization with in-direct assignment of auth. So if I could use sq10, user groups could also be link to position in the org chart.
    sq10 does allow you to assign a user group to a role but when you assign the role to a user and the user runs a query, it reports that no user group has been assigned.
    Suspect that there must be a parameter or switch that is not turned on
    Regards

  • Transporting an ABAP QUERY

    Hi guys/gals,
    I've created an abap query in testing client.
    May I know how to transport the ABAP query into quality and production server??
    Regards
    Jiku

    Hi Jiku,
    Transaction SQ02 menu "Envrionment/transport" (=Ctrl+F3).
    For transport, select "export" and the objects you want to transport.
    This will generate a request which you'll be able to process normally.
    An other solution is to download your object from the source system and then to upload it from your target system, if this one is open (and if you have the requested rights).
    Reward if useful.
    Regards,
    Aneesh.

  • Abap Query Execution

    Hi,
    I want to execute Abap Query using a Transaction Code. Please help me out to run a query using Transation code.
    Thanks in Advance
    John Vikram

    GOTO the transaction 93.
    Create a transaction code that is required to run a query from your report.
    give short text, choode program and selection-screen.
    SAVE.
    This is the way to run a query from a report using tcode.
    Reward points if useful.
    Or if you need more help, pls reply back.

  • ABAP Query - Scheduling

    Hi,
    Need to know, how to schedule an ABAP Query for Background Processing.
    Regards,

    Hi sheldon,
    try the following:
    1. enter transaction SQ01 and select your query
    2. then go to the menu Query > More functions > Display report name
    3. with this you'll get the ABAP report name
    4. now just enter transaction SM36 to schedule the job based on this report name
    I hope this helps. Best regards,
    Alvaro

  • Performance tuning for ABAP Query (created from t-cd SQ01)

    Hello all,
    We created ABAP Query report from transaction SQ01.
    But the generated report has an appropriate SQL statement which causes performance problem.
    To solve this issue, I guess the easiest way is;
    0. Give up to use it.
    1. Copy it to another object in the customer namespace.
    2. Ajust SQL statement.
    But I'm wondering if there're appropriate ways to adjust SQL statement of Query.
    Could anybody give me any better idea?
    Thank you
    Yuko

    You can try this: Create 2 ranges, for objnr and cdtcode and fill like:
    ra_objnr-sign = 'I'.
    ra_objnr-option = 'CP'.
    ra_objnr-low = 'OR*'.
    append ra_objnr.
    ra_code-sign = 'I'.
    ra_code-option = 'CP'.
    ra_code-low = 'CO*'.
    append ra_code.
    SELECT objnr udate utime
    FROM jcds
    INTO TABLE it_jcds
    WHERE objnr IN ra_objnr
    AND stat = l_tj02t
    AND cdtcode IN ra_code
    AND inact = space
    Regards,
    John.

  • Problem with logical database DDF in ABAP query

    Hi All,
          I have created an ABAP query via the transaction SQ01 using the logical database DDF to retrieve customer master data from tables KNA1 & KNB1. The selection screen used is the screen 903 of the logical database DDF. But now the problem is that when I execute the query, I am getting a blank value in the tax code4(KNA1-STCD4) field though there is value in the KNA1 table for this particular field. This field was added to the table by means of a customizing include. Can anyone suggest a way to get around this problem so that I can view the content of the field STCD4 in the query.
    Thanks and regards,
    Sarath.

    I think it's not used by DDF.
    so you must check it with:
    check kna1-bran1 in s_bran1.
    A.

  • Select from KONV using Additional Code in ABAP Query

    I'm attempting to modify an ABAP Query Infoset (using transaction SQ02) that already has a join in it between tables VBAP and VBAK, and two additional alias tables on KONV (to get price history for sales documents).  I wish to get history of all PN00 records from KONV.  I can get ONE record with the following code in the Record Processing of the Extras element in my Infoset:
    SELECT SINGLE KBETR KPEIN KMEIN KDATU
    INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE) FROM KONV
      WHERE KNUMV  = VBAK-KNUMV
      AND KPOSN  = VBAP-POSNR
      AND STUNR = 198
      AND ZAEHK = 01.
    But we have many counters (field ZAEHK) for the PN00 condition and I want to have a new row for each PN00 record in KONV.  I've tried some loop syntax, but I've not been able to get any code to function or return more than one row for each sales order item row (VBAP-POSNR).
    Thanks for any hints.
    Dan Gallagher

    Change it like this
    SELECT KBETR KPEIN KMEIN KDATU
      INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE)
      FROM KONV
    WHERE KNUMV = VBAK-KNUMV
       AND KPOSN = VBAP-POSNR
       AND STUNR = 198.
    ..... do something with this record and store
    ENDSELECT.

Maybe you are looking for