Assign query to tcode.

Hello all, i need to assign a transaction code to a query, but there's already an assignment of a query to this tcode, i want to use the same tcode for my new query, and it doesn't matter if after this, the other one has no tcode left. Please, tell me how to do this.
And one more thing, while creating the query, when I click on basic list, there's a box with title "sort fields" but i cannot drop and drag any fields in there, i don't know how to do this (neither I know what is serves for)
Thanks!
Matias

use se93 ,Enter name for Tcode you want to create -ztest for example .then choose parameter transaction and OK,choose START_REPORT for transaction value in  'Default value for'  section and CHECK  'skip initial screen' check box .
at buttom of screen you must select this options:
D_SREPOVARI-REPORTTYPE : enter this value : AQ
D_SREPOVARI-REPORT  :name of usergroup which query assigned to it,notice that you must enter this name with 12 character then if your user group name is ZREZA you have to enter 7 space after this name and at 13th poistion enter G.
> ZREZA       G
D_SREPOVARI-EXTDREPORT : name of sap query report.report created with sq01(zqu_materila for example)
save you work and you can execute tcode.

Similar Messages

  • Dynamically assigning query/view to a table

    Hi All,
    i want to assign a view to a table dynamically in WAD as per certain condition, can any 1 tell me how to do this?
    thanks in advance
    Godhuli

    Just a thought
    Instead of assigning query dynamically is it possible that you will have tables with different queries as dataprovider and at run time you can show only the required table and other tables you can hide.
    Unfortunately my WAD is not working so I am just giving a pseudo code.Please don't blame me for syntax errors.Please Paste this code between <\BODY> and
    <\HTML>.
    You can write a script like this
    <script>
    var obj;
    var tablobj;
    obj = findobject("option_1");
    HideTables();
    if (obj.value == 1)
       tablobj = findobject("TABLE_1");
       tablobj.style.display = "show";
    if (obj.value == 2)
       tablobj = find_object("TABLE_2");
       tablobj.style.display = "show";
    function findobject(objname)
    var all = document.all;
    for( var i=0;i<all.length;i++ ){
    if (all<i>.name==objname)//we have found object
    return all<i>;
    return null;
    function HideTables()
    var all = document.getElementsByTagName("table");
    for( var i=0;i<all.length;i++ )
    all<i>.style.display = "hidden";
    <\script>
    Regs
    Gopi.
    Message was edited by: Gopi

  • How to query which Tcodes specified user used with one day?

    Hi guys:
      How to query which Tcodes specified user used with one day?

    Hi
    You can use transaction code ST03N.
    1. Go to tx code - ST03N
    2. Under "Workload" you can select your "Instance or Total" so that it expands and shows you Days, Week, Month.
    3. If you want to look at the transactions executed for a particular day, lets say, then double click on any day.
    4. At the bottom left you get "Analysis Views"
    5. Select & expand "User and Settlement Statistics"
    6. Double click on "User Profile"
    7. On the right side of the window you get a list of all the users
    8. Double click on a particular user you want to view the details of.
    9. The new screen will display the "Transactions/Reports Utilized by User XXX"
    If you wanna track which users executed a particular transacation then follow this:
    10. In "Analysis Views" expand "Transaction Profile"
    11. Double click on "Standard"
    You can view the list of Transactions and Reports.
    12. Double click on the Tx Code or Report you wanna check and it will show the Use of it.
    This will help you.
    Regards
    Sumit Jain
    [reward with points if the answer is useful]

  • Command buttons to Assign Query / Query view with variables on Workbooks

    Hi experts,
    We want to have a workbook with buttons that will change the Query/Query view displayed in the unique grid we have.
    We've included command buttons on a workbook, as "<b>Data Provider Specific Command</b>" and chose the Queries, selecting the "<b>Assign Query / Query View</b>" option.
    When using queries without variables or just SAP exit variables it works perfectly, clicking the buttons change the table displayed accordingly. But when using queries that have at least one variable, in our test to select time interval, it doesn't work anymore.
    In our test, we're using just 2 queries and they have the same input variable (to select months interval); but when clicking the button no change/error occurs.
    Any ideas?
    Thanks in advance.

    Hi,
    Here is one approach - Keep three analysis items in the WT. Assign three different data providers to all three analysis items. If you do not want to show any query when the WT first loads, don't assign any query to the data providers. When a button is pushed, you can use the command SET_DATA_PROVIDER_PARAMATERS to assign a query to a DP so that that query will show up.
    Other commands that will help you would be SET_ITEM_PARAMETERS using which you can hide analysis items and also, you can use the command BACK_TO_INITIAL_DP_STATE on data providers so that they do not show up if they were blank at the start.
    Another way to hide a query is to assign the analysis item to a data provider which is blank.
    For your requirements, you will have to put multiple commands behind each button - you can decide which of the above commands suit you best.

  • Assigning query elements to a transportable package

    Hi experts,
    when i create a query and want to transport it i have to assign it to a transportable package. The problem is that a query has a big number of elements which are assigned the package &TMP. I have to assign all these elements to a transportable package to transport. Is there a possiblility to assign all of it to a transprtable package in one step?
    Thanks for your help in advance.
    Best Regards,
    Ali

    Hi Ali,
    I know this is more manual work.
    But you can do this way -->
    In the transport connector you have a push button called PACKAGE. Click on it and here you can filter on ibject type as ELEM now you will get all the elemements which are there in your system.
    Now you need to select the required ELEM which are belongs to your query and then say OK this will prompt a popup to change the package. Now you can change the package here and then refresh the screen to see the changes.
    Hope this resolves your issue.
    Thanks
    Murali

  • Use condition for assigning query to data provider with Javascript

    Hi gurus,
    I want to assign a query dynamically to a data provider when the user activated a Tab Panel in a Web Template (BI7).
    I can do that easily with the standard function SET_DATA_PROVIDER_PARAMETERS but this action is do each time of the activation of the Tab Panel.
    So I try to make a javascript for assign the query to the data provider only one time.
    My problem is I havenu2019t found a solution to get the default query assigning to the data provider.
    Itu2019s an example of what I try to do with javascipt :
    function Load_Query()
    var r=GET_DATA_PROVIDER PARAMETER ("QUERYVIEW_DATA_PROVIDER")
    if (r <>empty)
        executeJS_SET_DATA_PROVIDER_PARAMETERS_R()
    Thank you for help,
    Franck

    Hi Janice,
    You can check the Option Display Variable values only once.
    Thie you will the variables being displayed only once eventhough they are used in Multiple Data provider.
    If you want som variable to be data provider specific, then , you can create a new variable and add it int eh query.
    For example in your case let us say COMP1 is the variable for company code used in DP1 and DP2.
    If you want a different values to be selected for company code in DP1 and DP2 just replce the variable in DP2 with a new variabel COMP2.
    Hope this helps.
    Regards.
    Shafi.

  • Project Server Assignment Query

    Hi,
    I am currently "migrating" a query that retrieves timesheet data from dbo.MSP_TimesheetLine_UserView and I am trying to migrate it to Assignments, I see that I do not have the "Billable" fields on any assignment view, is there a way I
    can get the billable information ? has anyone done this before?
    Thanks

    The Actual Work Billable/Non-Billable etc., are only available in the "Timesheet" views. As far as I can tell, the Actual Work in Assignment views is the equal of the Billable work.
    So you might have to modify your query to join with Timesheet views with Assignment Views. 
    Prasanna Adavi,PMP,MCTS,MCITP,MCT http://thinkepm.blogspot.com

  • Enhancement/exit name for Account assignment category for tcode XD01

    Hi Gurus,
    Can you tell me Exit name/Enhancement name To populate the proper
    Account Assignment group based on the type of customer and the relationship of the customeru2019s country to that of the sales organization while creating customer master record using tcode XD01

    Hi
    For this u need to ehancement Point.
    Regards,
    Raghu.

  • BW "Not Assigned" Query

    Hi All,
    While generating a report from InfoProvider 0BWTC_C02 to get a list of active queries, I get one particular record that has its query name as "Not Assigned" and with no technical name. This query has a very high run frequency on a monthly basis. I'm suspecting this could be system related queries that are run automatically?
    Can someone advise? Thanks.
    Regards,
    KM

    Koon,
    are you able to find the query in BeX ?
    Arun

  • Assign Query to a Role

    I have a query existing in my system.
    But this is not assigned to any role.
    How to assign this query to a role?
    Edited by: BICoolguy on Mar 30, 2010 1:46 PM

    When you click SAVE, you can select a role (based in BI system) where you want to save the query.
    If you're talking about roles in the portal, then you need to publish the query in a template, and then publish that template as an iview, which can then be linked to the portal role.

  • Account Assignment Query

    Hi,
    I have a query regarding the changeability function of Account Assignment in the Purchasing documents in SRM. We have a requirement from the user as follows:
    The Account Assignment is populated in the Shopping Cart. This Account Assignment gets automatically populated in the EBP PO. Now, here, when the PO is created, the buyer can change the Account Assignment. Is it the standard SRM way? Coz i think that there should be some message given when the Acct Assignment is changed from the one in the Shopping Cart. The requirement is that the buyer should not be able to change the Account Assignment or at least there should be a warning message when he changes it. Is this possible? If yes, how? I would also appreciate if someone can clarify the standard SRM functionality regarding the same.

    Hi,
       You can use the badi "BBP_DOC_CHECK_BADI" / "BBP_DOC_CHANGE_BADI" to put restrictions to the user while changing any value in the purchasing doc(PO in ur case).
    BR,
    Disha.
    Pls reward points for useful answers.

  • Find SAP Query using Tcode

    Hi All,
    I have TCode of SAP Query, i need to find out SAP Query.
    things i followed:
    1) Executed TCode and menu bar --> System --> Status. I got Program.
    2) I went to SE93 --> TCode --> Display --> bottom i got UserGroup, Query but when i try to check that Query in SQ01 it is saying Query has not created.
    3) Executed program using FM RSAQ_DECODE_REPORT_NAME, got UserGroup n Query. but same issue as above.
    Query is working but when i check in SQ01, it has not created is showing.
    My requirement is - functional has created 4 SAP Queries. i need to merge all the SAP Queries into 1 report program.
    i need how can we check those SAP Queries in SQ01 using TCode.
    Regards,
    Naresh.

    Hi Naresh,
    You did not explain how the reports were created, but if they can be accessed directly via a transaction code individually, they were probably manually created by a programmer via ABAP and were not created via SQ01.  Thus, you cannot find them in the SQ01 table.  Only if they were created via Ad Hoc Query (PQAH) or directly in SQ01, would they be available via SQ01.
    If they were created in SQ01 in a Development system and transported to your Productive system, they can be found in the Global Area as indicated above by Boris.  If they were created directly in the Productive system, they can be found in the Standard Area.  And again, each area has its own set of User Groups, so you may be looking in several areas.  The key is to learn how and where the queries you are searching for were created.
    Paul

  • Assign query to another user

    We had created a query in ECC with a user id. This user ID is now expired. We still need to use the query though. Is there any way that we can use this or assign it to a different user ? This query was created using SQVI not SQ01.
    Thanks in advance for you help !!
    Regards,
    Ranjini.

    Hi,
    Hv never tried with transcation SQV1 as told by you.
    When one follows SQ01 then one can follow below given steps.......
    1) assign new user to  a user group  .Transaction- SQ03.Its advisable to make use of user group to aviod duplication of efforts while assgning query to multiple users.
    2) In SQ01, select required query ..click "Infoset Query" icon and then use "save as " option to save it with same name  ,but in specified User  Group.
    With this new user shud be able to execute query.Lets see if this helps you
    rgds
    Nil

  • Assigning Query to Transport Request

    Hello ,
    I need to modify the Query
    0CSRV_C01_Q0102 Service Tickets Current Month Completion Rate by Emp Resp
    The Requirement is I need to change the
    Text view of Employee Responsible to Mediun Length text .
    When i changed the text and saved it is not asking for the Request .
    Then I go to RSA1 - Transport connection - Query - Collcted necessary objects .
    I can see the Application/Infoarea/Infocube/Query element/Infoobject/Routine
    My question is as I changed the Text view of Employee Responsible to Mediun Length text
    I need to select the employee Responsible in the Query Elements only or what I am supposed to do .
    Thanks ,
    Rahul

    Hello ,
    Kams thanks for the reply as I mentioned I just need to change the Text display ofone of the Infoobject .
    Soit seemd from your reply I just need to include the Infoobject in the Query Element and then transport that correct .
    Please correct me in case I missed some thing .
    Thanks ,
    Rahul

  • Modifying an existing ABAP Query - sq01 (tcode)

    Hi All,
      We have a query develped (Z) long before .Now we have a requirment where in which we need to add one   more table to the existing query.Kindly let me know how can we proceed.
      When am giving the query name and clicked on change , am not able to find any option which allows the  user to add one more table.
      looking for valuble inputs on the same.
    Regards,
    Zareena.

    Hi ,
    u need to follow these steps when u are working on queries.
    Step1-->SQ03->Give ur user group here ->then /nSQ02->here it will display all ur Infosets those belongs to ur user Group--->then go in Change Mode, after u know wat u have to do.
    Regards
    Prabhu

Maybe you are looking for