Transaction Code to AD Hoc Query

I have created an Ad Hoc Query and Given it a name and saved it.
Next Time when I wanted to execute that query I go to S_PH0_48000510 - Ad Hoc Query , select that query and press on Output to get the result. In between I have selected the setting "Start via selection screen" in Extras>Settings.
Hence I get into the selection screen and while I execute, I go to the output result.
What I am looking for is how to assign a transaction code to this query that I have created, so that I execute that transaction code I am directly into the selection screen. By means of this I can skip some of the steps like going to S_PH0_48000510 - Ad Hoc Query and then selecting the query and then the other steps.

Both the ad-hoc and the SQ01 queries create a program that can be assigned to a transaction.  However, the program name that is generated contains a 2 digit code that is specific to the client you are working on.  This makes it hard to run the same transaction in DEV, QAS, and PRD.  Instead, create a parameter transaction that runs the START_REPORT transaction with parameters set that run the D_SREPOVARI-REPORTTYPE=AQ, D_SREPOVARI-EXTDREPORT=<sap query name in SQ01>, D_SREPOVARI-REPORT=<user groups belonging to the query>

Similar Messages

  • Can we give Transaction code for an SAP Query(SQ01)..?

    Hi All,
           Can we assign an Transaction code for an SAP Query...?If yes, How..?
    Waiting for your valuable replies.
    Thanks and regards,
    Rahul.

    Hi Rahul,
                   In SQ01,
    go to menu path
                   Query--->morefunctions -
    >Display report name.
    Copy this program name. then
    GotoSE93  .enter a tcode name .press create.
    select program and selection screen option .
    enter the Program name.
    Reward points if helpful.
    regards,
    Hemant

  • Need transaction code for opening Bex query designer?

    Hi ALL,
      Can anyone help me with the transaction code for opening Bex query designer?
      Like RRMX for Bex Analyzer similarly i want for Bex query designer.
    Thanks & Regards
    Sameer Khan

    THERE IS NO TCODE FOR QUERY DESIGNER. BUT THERE IS AN ALTERNATIVE..
    OPEN BEX ANALYSER THROUGH RRMX
    OPEN A QUERY
    CLICK ON TOOLS-> EDIT QUERY
    THIS OPENS QUERY DESIGNER AND YOU CAN USE IT NORMALLY..

  • Issue in transaction code creation for sap query report .

    Hi  Gurus,
    I have a requirement to create transaction codes for sap query reports. I found two ways to create transaction code for sap query report
    1) By Generating program for sap query report and creation of transaction code for that generated Program. in tcode.
    2) By using parameter transaction options in start object of se93
    What are the difference between creation of these two ways. Please specify  the advantages and disadvantages of both methods.
    Regards,
    Suneel Kumar Uggina.

    Hi Jogeswara Rao,
    But I am getting problem while transporting form development system to  the production system. After transporting to Production system  I have used the code created in development system, but it is giving Error ' No Program Found for that Transaction Code. And  I would like to know  on what conditions should I have to  use the First one  and as well as a second one in sap query reports.
    Thank You,
    Suneel Kumar Uggina.

  • Validation of EEO code using ad hoc query

    Hi,
    I just want to ask for a help or any ideas with regards to the case below.
    The EEO job categories have been revised and I've already map the existing job codes to the correct EEO job category in table T5U13. But when I try to run a query for a specific job to check and verify if the mapping of the new EEO job category to the existing job code is correct, the EEO code field is left blank. Meaning that there is no EEO job category attached to the job code. But I've maintain the mapping already and when I double check table T5U13, the job code is map to the new EEO job category. I just want to ask for help that if I run the query, the EEO code field would have an entry based on the mapping I've done.
    Thanks in advance for your help!

    Hi Sanghmitra,
    I have got a query  in AD-HOC query.
    After creating the Adhoc query using the join table functionality the resulting adhoc query does not results any out put.
    What I have done is :
    1.Created a user group through SQ03
    2.Attched user to My user group
    3.Created an infoset using join table functionality(SQ02).
    4.Saved and generated the infoset
    5.Added the user group to the infoset and than run the ADHOC query.
    The table I have used to join is all PA table (For test pupose)
    Though the purpose of the custom infoset is to join PA,OM and E rec infotypes, for testing purpose I have joined only PA infotypes.
    Result:The adhoc query does not gives any out put instead it says no data could be read.
    Could you please tell what else I need to do so that the custom infosets gives an out put.
    Will greatly appreciate your help.
    Thanks and best regards
    Rajeev

  • Write code in ad hoc query

    hello All,
    I have a reqmnt, My client has an existing ad hoc query and I need to add two fields to it, both of the fields are not direct and needs some coding, cud anyone please explain how can i go bout it?
    thanks,
    RS

    Its quite straight forward, so just have a play around, but the steps are something like:
    1.     SQ01/environment/info sets/query areas/standard
    2.     Choose the info set you wish to change
    3.     Choose the filed group you wish to add a field to
    4.     Right click the infoset you want to add a field to
    5.     Add the new field to the field group for that infoset
    6.     Then use the extras button to add code to that field
    I tend to use the initialization, and record processing event blocks for adding my code.  USe the eblow link for the SAP documentation.
    http://saphelp.user.ad.glasgow.gov.uk:8000/saphelp/helpdata/EN/d2/cb3efb455611d189710000e8322d00/frameset.htm
    And here is some sample code i've used for one particaulr field, just to give you an idea of how easy it is.
    rp_provide_from_last p0000 space pn-begda pn-endda.
    * Get last Ity2001 record
    IF p0000-massn = '16'.
      SELECT SINGLE pernr max( endda )
             FROM pa2001
             INTO (p2001-pernr, p2001-endda)
                  WHERE pernr = pernr-pernr
                  GROUP BY pernr.
    ELSE.
      rp_provide_from_last p2001 space pn-begda pn-endda.
    ENDIF.
    SELECT SINGLE UMSKD
           INTO WA_UMSKD
           FROM Y0PT_AMMSUBS
                WHERE PERNR = p2001-pernr
                AND   ENDDA = p2001-endda.
    wa_OCCHC  = wa_UMSKD(2).
    occhealth = wa_OCCHC.
    <a href="http://saphelp.user.ad.glasgow.gov.uk:8000/saphelp/helpdata/EN/d2/cb3efb455611d189710000e8322d00/frameset.htm">http://saphelp.user.ad.glasgow.gov.uk:8000/saphelp/helpdata/EN/d2/cb3efb455611d189710000e8322d00/frameset.htm</a>

  • Need help regarding report ( i need the transaction code copy of the query)

    Hi,
    I want to copy the query designer fields and those field i have to use another query for that can any one give me the transaction code for copy query
    thanks
    phanidhar

    RSZC = to coy quer from on infoprovider to another..
    HOpe it helps
    Thanks for points assigned

  • Is there any transaction code for Report Designer,Query Designer and WAD

    HI Gurus,
    please tell me s there any transaction code for
    1 Report Designer
    2 Query Designer
    3 WAD
    Thanks in advance
    Prashant

    Hi Prashant,
    We don't have any Transaction Codes for these.
    Since these are installed along with the SAPLOGON BI components, it cannot be called using a standard transaction.
    You have to use only .
    Goto Start -> Programs -> Business Explorer -> Web Application Designer/Report Designer/Query Designer.
    Hope it helps.
    Reward with points if helpful.
    Regards
    Hemant Khemani
    Edited by: Hemant Khemani on May 16, 2008 5:39 PM

  • Can we assign Transaction code to created  ABAP Query of  SQ01

    Hi ,
    Friends I want to run the abap query assigning t.code to it .. i will be thankfull if any body give me the steps or remedy .
    thanks

    Hi you there.... you can try this
    1) create an abap report with the following source code
    REPORT ZRUN_QUERY .
                          DECLARACIÓNES                                    *
    DATA:
    REPORTNAME LIKE AQADEF-PGNAME.
    PANTALLA DE SELECCION                                                *
    SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE TEXT-001.
      SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
      PARAMETERS: P_BGNAME LIKE AQADEF-BGNAME OBLIGATORY,
                  P_QUNAME LIKE AQADEF-QUNAME OBLIGATORY.
      SELECTION-SCREEN END   OF BLOCK B1.
    SELECTION-SCREEN END   OF BLOCK B0.
    CUERPO DEL PROGRAMA                                                 *
    CALL FUNCTION 'RSAQ_REPORT_NAME'
         EXPORTING
              WORKSPACE  = SPACE
              USERGROUP  = P_BGNAME
              QUERY      = P_QUNAME
         IMPORTING
             REPORTNAME = REPORTNAME.
    CALL FUNCTION 'RSAQ_SUBMIT_QUERY_REPORT'
         EXPORTING
              QUERYREPORT       = REPORTNAME
              VARIANTE          = SPACE
        EXCEPTIONS
             ONLY_WITH_VARIANT = 1
             VARIANT_NOT_EXIST = 2
             OTHERS            = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2) Create a transaction for this program
    3) Create a parameter transaction and execute this report passing by parameter the usergroup and Query, then, the program will automatically solve the program name and execute it.
    Regards,
    Daniel

  • Transaction code thro' SAP Query for customer spefific report

    hi experts,
    how to create transaction code (using SE43-) for the sap query created on own??
    I have created the following required for a customer specific report
    1.Infoset thro sq02
    2.user group thro sq03 and assigned it to infoset
    3.query thro sq01 and saved it with text
    earlier i have used logical database PNPCE ( relevant for PA and payroll modules reports)
    using sq01 , go to basic list , selected required infotypes and fields and
    then selected, SAP List viewer for viewing and i get the report.
    Now my question is how to create a separate transaction code for this sap query which i created
    should i use SE43( area menu maintenance and area class???_)
    should i create a variant and go to SE43??
    advice solicited
    snr

    Hello
    when you excecute the query in right han side corner  you can get the program name
    go to se80 select program & type this name and then you can create a tcode for that prog in SE80
    reward points if helpful.
    the prog name will be something like : AQZZ/SAPQUERY/* " ur query name
    you can search for the name also in this manner

  • ABAP Query Execution via Custom Transaction Code - Not working

    We have created an ABAP Query in our DEV client and we then created a transaction code to run that query. We have done this because the customer does not want anyone to have access to SQ01, SQ02 in production. This works great in DEV but we can not get it to work in production.
    The ABAP Query was exported to our Prod client successfully.  I say exported because you do not do direct transports with queries.
    We then transported the new transaction code to run the query to production and it was successful.
    However, when we run the transaction is production we get a sys dump stating it can not find the query.
    We believe the problem is the TRDIR table is missing an entry for the program in production (it has an entry in DEV).
    I would have thought that the export on the query would have brought in this entry -but obviously not.
    Any suggestions on how we can get this entry into the production client?  Did we miss a step on the export that would do this?  We want to only bring over this entry - not the entire TRDIR table for obvious reasons (size (1.5 million entries, programs not ready for production, etc.).
    Please help!
    Thanks.
    Scott

    Hi,
    The above solution will work if you assign the transaction in one server, If you want this will not work in quality/production boxes when transported the query..the program name will not be the same in all the servers...
    For this. Do the below:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
         D_SREPOVARI-REPORTTYPE = AQ
         D_SREPOVARI-EXTDREPORT = Name of the Query
         D_SREPOVARI-REPORT = User Group
    Save the transaction..Now if the program is generated with different names in the quality/proudction, this will still work..
    Regards
    Vijay Hebbal

  • Are there any standar iview that works with transaction Ad-hoc Query?

    Are there any standar iview that works with transaction Ad-hoc Query?
    So, I want the same iview for the various querys.
    Are there any iview how this?

    I am working with Portal and HR.
    Now, we are looking for to make a query, get the generated code, and insert it in a rfc. So, i could make a java web dynpro and call the rfc. But this is not the best solution.
    My question is about are there any standard iview for this scenario.
    Do you know?

  • Transaction code for SAP query reports

    Hi All,
    I am trying to create transaction code for sap query report but couldn't go further.
    1) Created User group in SQ03
    2) Created infoset in SQ03 and assigned that to the user group
    3) Created query in SQ01 using the infoset.
    I executed the report in SQ01 and it is working fine.
    Now I try to create a transaction code in SE93 using the steps mentioned in the following link:
    Assign transaction code to SAP Query (created via SQ01)
    But when try to execute the report using the transaction code, it is giving error message 'User group xxxxxx is not yet created'
    Could any one advice me if I miss something? Or please help me to create this transaction code and transport to production?
    Thanks in advance

    HI,
    based on the thread you've already mentioned:
    In SE93, Create a Paramter Transaction
    -> Transaction = Start_report
    -> In default values, give the below details:
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-EXTDREPORT = Name of the Query
    D_SREPOVARI-REPORT = User Group
    So check if the user group is typed correct in SE93 and check also if the user group exits in the system where you are trying to run the transaction.
    best regards, Christian

  • 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

  • Custom code in HR Ad Hoc query

    Hi Friends  ,
    I am facing one issue where the custom ad hoc query is giving incorrect results so I have to overwrite the values in available  internal tables with my own logic , But I am unable to write the code at right point through Extras>create>code  path in SQ02   the values are populate after the point where i can right code . Request you to kindly help me .
    Thanks & Regards
    Gaurav Deep

    Hi,
    Write the coding in End-of-selection(before list) event. Your internal table would not be changed after this point.
    Regards,
    Srini.

Maybe you are looking for

  • Acrobat Pro 9.0 freezes when viewing/scrolling through the table of contents of a document

    I am hoping someone can help me or has experienced the same problem I'm about to describe. I belong to the technical publications group of a fairly large company and I review a lot of PDF documents. I just installed Acrobat 9.0.0 (via CS4 Design Stan

  • Tempo

    Apple loops will not sync with the song tempo. When I import a real instrument loop into GB, and check the "follow tempo & pitch" box, sometimes the loop does not follow tempo. For example, a simple drumbeat may not follow the tempo even when its tem

  • In MacOSX_Safari v1.2, content are not wrapped in PDF

    Try to stream out the pdf with carriage return between the content, it works for other browsers, except for Safari v1.2, somehow it puts all content in one line without the carriage return. I use "\n" as carriage return. I also try to put "\r" along

  • Pop-up menu text not displaying in IE

    I'm creating pop-up menus for my navigation, everything appears OK until I preview in FF & IE - All is good in FF, but in IE the boxes appear, but the text doesn't until you mouse over, and then only each line which disappears on mouse out? Any sugge

  • Video won't fit perfectly on screen?

    http://uploadimage.tk/?v=screenipi.gif Why does it do that? (The September Random Music Mix image won't fit perfectly.)