Create Txn for a Query

Dear All,
Could someone tell me the steps to create a transaction for a query?
Thanks,
DM

No need to use small report
No need to use generated program name (it really can change)
Just create a parameter transaction with reference to START_REPORT transaction. When creating a parameter transaction you have to set the following parameters:
D_SREPOVARI-REPORTTYPE = AQ
D_SREPOVARI-REPORT = precisely the first 12 characters - query user group (including trailing spaces), 13-th character is G for global queries
D_SREPOVARI-EXTDREPORT = Query name as shown in SQ01.
That's it.
Well, and do not forget to check the flag "Skip first screen".
To all others interested: just try to add some SAP query into a role via PFCG, then run it, and then via System -> Status look into the definition of the transaction generated, and you'll see the answer.
Re: Assign SAP Query to a transaction

Similar Messages

  • To create variants for Bex query

    Hi Guys,
    where and how do we create variants for Bex query.
    Thanks,
    Your help is appreciated.

    Hi Sheo,
    There are several threads about this, check here:
    /thread/297437 [original link is broken]
    Hope this helps...

  • Best way of creating request for a query

    hi,
        what will be the best process to create the request for the query.
    1.go to rsa1-> transport connection -> select query -> select  BEx bus-> create the request, then change the query and save
                                                                                    OR
    2. change the query first and assign the request in the transport connection
    Please help me put.

    Hi,
    You would get problems when you transport it by the second method, like the Variable might get missed out when you edit the query and save it to the request.
    First method through Transport connection is the best way to do it, to make sure all the objects are collected.
    Regards,
    Mani

  • Error while creating service for BW query

    Hi All,
              I am creating service in gateway system by using BW query.
              I had created service using Entity Type -> Redefine -> BW query Service
              It is generated successfully but when i am running through Gateway Client, It is throwing error, given below
              " The argument '67.504.82831' cannot be interpreted as a number."
              All properties are string but still it is giving error in number.
              I am using Netwiever Gateway 7.3.
             Kindly advise, what could be issue and , how we can analyse.
    Thanks in Advance.
    Regards
    Vivek

    Thanks for the reply.
    We are aware that system will not allow to create Service entry sheet for held po. But it is allowed me to create on a particular date. Another day i tried to create/delete a SES for the same PO or new PO(held status)  system is not allowing me to delete/create SES.
    Please help me what might be the reason which allowed me on a particulare date.
    Thanks in Advance,
    Vinod....

  • Create documentation for sap query

    Hello,
    I have created a sap query with sq01 and I want to create also documentation for it.
    I go from se38--> select the program and then change documentation,
    but the documentation button is grey.
    Thank you!

    Hi,
    Check this below link
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/83a6302fe1403db4289e2ac60b800a/frameset.htm
    Regards,
    Jyothi CH.

  • Creating TCODE for ABAP Query

    Hello everyone! I have created my very first ABAP Query, but I still need to create/assign TCODE for the said report.  Can anyone help me with it? Somebody told me to use SE93.  I found out that there are 5 options in SE93 to create a TCode, I tried all options but I could not get through it because I was asked for a program name or a transaction.  What should I put in there? The query name?  Please help.
    Thanks!

    HI Ervyone! Got it Already. To Get the program name of the ABAP Query,
             1. Go to SQ01> Query Menu>More Function--> Generate Program
             2. Go to SQ01> Query Menu>More Function--> Display Report Name. Copy the Report Name that Will be displayed.
             3.  Go to SE93 Enter the TCODE that you want to use, then click on Create BUtton.  Choose the second option "Program 
                  and Selection Screen (Report Option)".  The next screen will ask for your program name,  Paste/copy the program
                  name and save it.
    Thanks!
    Edited by: Ksbaizas on Jun 22, 2010 3:19 AM

  • How we create system for Bex query

    Hi
    I want to access Bex query in VC , I think we can do this by creating system in poratl. pls tell me how we  create system in prtal for this.
    Regards
    Amit

    Hi Naresh,
    Pls send the Document for me also.
    This is my mail id: [email protected]
    Thanks & Regards
    Prakash T

  • Creating t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Dear Farukh,
    As we know,
    Query is created in Production server and a corresponding program is generated by System.
    What we have to do is just to assign the program to the desired transaction code in Development server and transport it.
    If you have any doubts please let me know.
    Kindly assign points if you find this info usefull.
    Regards,
    Lijo Joseph

  • Variant for a query in Web

    HI,
    In my query I had a User entry Variable (Multiple Single Values) on 0DEPARTMENT.
    I had give a list of 2000 departments in a excel file.
    When I execute a query in WEB (7X Template) my requirement is to create a Variant so that if selected all the 2000 departments are included
    How can I paste all the 2000 values in the variable screen and save it as a variant
    Thanks

    Hi,
    For this you will need to create variant for the query in RSRT transaction. Just goto RSRT transaction. Provide the query name and click on Query Variants button. You will get a n option to create variant for the query. paste all the 2000 values for that particular variable of the query and save it as variant.
    Now when you will execute the query in the web you will get an option to select that variant from the query.
    Navesh

  • Creating variables to a query

    i have a existing query which is created one week back.Now i want to create  variables for that query.but while opening that query it is directly going to Result area(Excel sheet).how to create  variables.can any body throw light on this .
    Thanx in advance.

    Hi,
    if you only want to create a variable just look here:
    http://help.sap.com/saphelp_bw33/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    and here
    http://help.sap.com/saphelp_bw33/helpdata/en/ac/789b3c4d4d8d15e10000000a114084/content.htm
    Regards,
    A. Baykal

  • How to create documentation from BEx query

    Hi,
    I would like create documentation for each query,so that end user can get idea about particular query.
    But  I can see some documentaion from context menu(right click)->Goto->Display documentation.
    Any tips???? Points will be given.
    Thanks in Advance.
    Regards,
    Jaheer,Yanbu,Saudi arabia.

    HI Jaheer,
    Go to www.help.sap.com
    Select NetWeaver -> Select BI Content
    In the left hand panel select your appliacion components (for Example:
    Human Resource - > Recuitment -> Queries -> select any one query)
    It will disply Technical name, Based on the InfoCube, Use and what are the
    Free characteristics, characteristics, Keyfigures etc.
    Now Create one Excel Sheet.
    and create your document and show to your client.
    If your client wants sample preview, then copy this query and check in the
    BEx analyser. cut and copy that preview in your Excel sheet.
    Then the Document looks beautiful...
    Have a nice Day...
    Thanks
    Rajesh

  • How to  Export/Import "report for the query" to another company

    Hello,
    I do this:
    1.create query in SQL analizer
    2.copy paste into SBO query generator and save
    3.create report for the query
    Then, How to Export/Import "report for the query" to another company ?
    Thanks for your HELP.

    Look for SAP Note number 600813
    That's the note Adele means, I guess.
    <b>Edit (@13:18)</b>
    The direct link:
    https://websmp101.sap-ag.de/~sapidb/012006153200000183292003E.ITF
    ---- Replace *SOURCE* with the source database name.
    ---- Replace *DEST* with the destination database name.
    insert into [*DEST*].[dbo].[RDOC]
    select [*SOURCE*].[dbo].[RDOC].*
    from
    [*SOURCE*].[dbo].[RDOC],[*DEST*].[dbo].[cinf],[*SOURCE*].[dbo].[cinf]
    where [*DEST*].[dbo].[cinf].[lawsset]=[*SOURCE*].[dbo].[cinf].[lawsset]and [*DEST*].[dbo].[cinf].[version]=[*SOURCE*].[dbo].[cinf].[version] and [*SOURCE*].[dbo].[RDOC].[Doccode]NOT IN (SELECT Doccode from [*DEST*].[dbo].[RDOC])
    insert into [*DEST*].[dbo].[RITM]
    select [*SOURCE*].[dbo].[RITM].*
    from [*SOURCE*].[dbo].[RITM],[*DEST*].[dbo].[cinf],[*SOURCE*].[dbo].[cinf] where [*SOURCE*].[dbo].[RITM].[Doccode] NOT IN (select Doccode from [*DEST*].[dbo].[RITM])AND [*SOURCE*].[dbo].[RITM].[Doccode]IN (SELECT Doccode from [*DEST*].[dbo].[RDOC])
    Hope it helps...
    Grtz, Rowdy

  • Creting t.code for ABAP query and Transport  it TO Production and run it .

    Hi Friends
    Thanks for ur reply ,
    The requirement is that i want to create tcode for abap query and that query can be regenearted ,
    in case of regeneration programe name i got answer programame name will be change, i created and modified query but i saw the same programe name ,,, may be it changed when it is trasnported if so then what ??
    and also pls give me solution for asiging tcode for query which is going to be regenerated.
    thanks and regards
    farukh

    Hi farukh,
    1. If any query is re-generatred,
       then some MANUAL INTERVENTION
       is absolutely required.
    2. Hence, what we prefer is this :
       1. Generate first query.
       2. Copy the code to a Z Program
       3. Attach tcode to THIS z program.
       4. Transport
    3. Now,
      whener the query is generated again,
       AGAIN COPY THE CODE
      TO OUR Z PROGRAM (2ND STEP ABOVE)
                        (which has already been created)
      AND TRANSPORT JUST THIS Z PROGRAM.
      REST WILL TAKE CARE OF ITSELF.
    4. In such cases,
      ONLY COPY-PASTE IS REQUIRED.
      (and it takes not more than 15 SECONDS)
    regards,
    amit m.

  • Creating Restrictions in BEx query designer for (1-a), where a is variable.

    Dear All,
    >>  Suppose for the variable in the BEx query designer, I've created restriction for 0FISCPER to the variable 0P_PER (as 0P_PER-1) by right clicking 0P_PER3, from that a dialog box appears.  In that I've selected 0P_PER3 and then clicked on offset variable and when I set the offset variable, it works for (0P_PER-1.etc, 0P_PER+1,etc..)
    But if I want to have (1-0P_PER), then plz tell me how to define this restriction?
    Plz explain me the steps to perform (1-0P_PER) restriction in BEx query designer in BW1.
    I'm using SAP BI 7.2 gui.
    Expecting your reply soon,
    with Regards,
    Jerald

    My requirement is that I want to have " 1-fiscal year"., But this I could not define using offset variables, since using offset we can define "fiscal year +1" or "fiscal year -1". 
    So there would be some other way to define "1-fiscalyear".  So Please help me to define "1-fiscalyear"  by giving me the steps.
    Thank you,
    with Regards,
    Jerald

  • Is there a way to create a plan guide for this query?

    How can i create a plan guide for this query,suppose i can't change the query text:
    USE AdventureWorks2008R2;
    GO
    SET NOCOUNT ON;
    GO
    -- query plan statement starts
    DECLARE @Group nvarchar(50), @Sales money;
    SET @Group = N'North America';
    SET @Sales = 2000000;
    SET NOCOUNT OFF;
    SELECT FirstName, LastName, SalesYTD
    FROM Sales.vSalesPerson
    WHERE TerritoryGroup = @Group and SalesYTD >= @Sales;
    -- query plan statement ends
    AdventureWorks2008R2's parameterization option is simple, i want this type of query can reuse plan:
    DECLARE @Group nvarchar(50), @Sales money;
    SET @Group = N'Other Country';
    SET @Sales = 88;
    SET NOCOUNT OFF;
    SELECT FirstName, LastName, SalesYTD
    FROM Sales.vSalesPerson
    WHERE TerritoryGroup = @Group and SalesYTD >= @Sales;
    I tried many times ,but it didn't work:
    declare @xml nvarchar(max) -- the plan i want to reuse
    set @xml = (select cast (query_plan as nvarchar(max)) 
    from sys.dm_exec_query_plan (0x060006001464570B405D92620200000001000000000000000000000000000000000000000000000000000000))
    -- create plan guide 
    exec sp_create_plan_guide 
    @name ='Test'
    ,@stmt=N'SELECT FirstName, LastName, SalesYTD
    FROM Sales.vSalesPerson
    WHERE TerritoryGroup = @Group and SalesYTD >= @Sales;'
    ,@type =N'sql'
    ,@params =N'@Group nvarchar(50), @Sales money'
    ,@hints = @xml;
    Thanks.

    I guess you don't wanna fire these queries "adhoc" but prepared instead to reuse the plan:
    exec sp_executesql N'SELECT FirstName, LastName, SalesYTD FROM Sales.vSalesPerson WHERE TerritoryGroup = @Group and SalesYTD >= @Sales',
    N'@Group nvarchar(50), @Sales money', N'Other Country',88
    exec sp_executesql N'SELECT FirstName, LastName, SalesYTD FROM Sales.vSalesPerson WHERE TerritoryGroup = @Group and SalesYTD >= @Sales',
    N'@Group nvarchar(50), @Sales money', N'North America',2000000
    Bodo Michael Danitz - MCT, MCITP - free consultant - performance specialist - www.sql-server.de

Maybe you are looking for

  • Opening Nikon NEF NX Files in CS3 in iMac

    I have just replaced my 2006 iMac which was running on OSX Tiger 10.4.11 with an iMac running OSX 10.6.4 Snow Leopard. I have installed my legit.CS3 version 10.00. I use a Nikon D300 and have loaded Nikon Capture/Transfer/ViewNX version 1.5.2 which I

  • Purchase Order Services

    Dear all, how can i solve this problem: I create an PM order for a purchase order services. The operation itselfs include the services and in the components i insert some different materials. On the bill are other quantities and prices later than the

  • How do I convert scanned tif file to pdf file?

    How do I convert a scanned tif file to a pdf file?

  • Do not receive notifications

    Hi We have ACS set up in one set of servers, running Tomcat, and the main webserver elsewhere, running Apache. We need the notifications sent to the webserver. I have set the notifyURL to be correct and also the setting com.adobe.adept.fulfillment.cu

  • Tapatalk app use on these forums

    I'm considering purchasing the Tapatalk app for my iPhone 4S, but I'm unsure has to if it will work on this forum (Apple Discussions forum). I noticed that there are a couple of posts on this subject already but these were a while back and wondered i