How to use output of a Query as an input to another Query

Dear BI experts,
We have a unique requirement. We are multinational company and employees moving from Country to another.
I have created a Bex query to give me the list of countries that employees have been since they joined the company. The columns in the report are PERNR, date_from  and country.
When I run the query for all employees it gives us the list of countries that each employee was present.
Now the requirement is to show only the employees who have been at least once in UK. This list should contain all the countries they were living in addition to UK.
I cannot put a condition in the u2018Countryu2019 column for u2018UKu2019 since it will give me only UK and will not list other countries.
Could you please provide me with a solution.
I thought of running 2 queries to get the desired result. First run a report with a condition that Country = UK. This will give the list of employees who have been in UK at least once. Run the second query by using the list of employees from he first query without any restrictions. But the question is how to make the list of employees in the first query as an input to the second query, other than manually adding it in the selection screen.
Hope I was able to explain the requirements clearly.\
Thanks in advance to your suggestions.
Regards,
Sai

Hi Sainath,
This can be acheived by RRI i.e report to Report Interface !!!!!!
T Code -RSBBS.
Report A-Jump to report B.
Report B-Is Employee Based
Assume u want call report B from Report A
1)GOTO RSBBS
2)Create New
3)Sender Query Give the First Query Report A
4)Below sender Query there is Receiver Query  give the RRI query report B (The query which u want to call).Report type should be BEX ,and Target system--Assign the System(Local) and in the report give the Report B.
5)In the Report A check whether in the GOTO -u get the Receiver Query ,i.e Report B.
In the Assignments in RSBBS set the Emp Infoobject as Delete instead of Generic and create a Input Variable for Employee in Report A.
Come bak if u have any issues
Rgds
SVU123

Similar Messages

  • Need to use the results of one query as an input to another query

    Hi, I have one sql query in my XML file, that returns more than one values for a column.
    and i want to use this output one by one as an input to the second query to retrive the data from the second query.
    Could please someone tell me if its possible in XML Publisher?
    If possible, please share the syntax to do the same
    For eg:
    Query 1:
    Select data1, data2 from query1 ; -- output data1 and data2
    want to use data1 and data2 one by one in the below query
    Query 2:
    select * from abc where name_id= data1/data2;
    Thanks and Regards
    Madhu

    Make sure your cursor declarations are in your declare section, not between the begin and end statements.

  • How to use output of Data Profiling as a input in ODI project

    Hi...
    i have performed data profiling on DQ_CUST_INFO.CSV file and got the output folder which contains lots of file.but i am unable to understand which file to use in ODI project.please assist me as soon as possible.

    You can use Replacement Path Variable for this purpose. See this detailed documentation.
    http://help.sap.com/saphelp_nw04s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
    Abhijit
    Edited by: ABHIJIT TEMBHEKAR on Nov 19, 2008 9:48 AM

  • How to use output of one query as an input for another

    Hi Gurus,
    can you give me any links on how to use an output of one query as an input for another (preferably if this can be done in a dynamic/on the fly way)?
    thanks

    You can use Replacement Path Variable for this purpose. See this detailed documentation.
    http://help.sap.com/saphelp_nw04s/helpdata/en/bd/589b3c494d8e15e10000000a114084/content.htm
    Abhijit
    Edited by: ABHIJIT TEMBHEKAR on Nov 19, 2008 9:48 AM

  • How to use Output Transmission Medium 8 (Special Function)

    Hi All,
    May I get how to use output transmission medium 8(Special Function) in Output Determination.

    Hi,
       configure output type with transmission medium 8
        in nace transaction and assign it to driver program
        and so that entry exist in table tnapr and use
       RSNAST00 program to send output as email.
      Before you have create entry in va02->header-output->
      with processsing status 0 . 
    Regards
    amole

  • WTA: How to use output type with medium T (Task)

    Dear Gurus,
    Can anyone shed some light how to use output medium T?
    I tried one but at the end the output analysis says: Task T 50000125 is not available for object category BUS2032
    My task clearly calling BUS2032 with method DELETEBILLINGBLOCK
    Anyone can advise?
    Please don't focus on the DELETEBILLINGBLOCK and suggest me workaround how to remove billing block.
    It just my sample as I just anyhow select random method.
    What I need to know is how to use medium T.
    Thanks in advance.

    Hello Erwin,
    I know this is an incredibly old post, but I am wondering if you found a resolution to this issue.  I have the same issue and cannot determine why I can see the enter in NAST for an output resulting from a condition record set as medium 9 with timing of 3.  If I am in display mode of the sales order I can see it and also see the record in NAST.  Like you, if I change the medium to Print, it proposes as expected in VA01, VA02, VA03.  If I have the medium of 9, and change the timing to 4, my workflow process executes as expected.
    Please let me know if you have any thoughts on how to resolve.
    Thanks!
    Jan

  • Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?

    Does anyone know how to use vlookup from a pop up menu to retrieve another pop up menu?

    BM,
    Pop-Up menu format is not dynamic. It is created in the Cells Inspector and can't be modified contingent upon the state of other cells.
    You could program a table to list the options available for the previous selection, but it wouldn't be in the form of a Pop-Up.
    Jerry

  • How to use output type in Outbound IDOC

    Hi All,
    I have a requirement where I have to trigger the outbound idoc by using output type 'ZCON'.How to program this or any idea how do i acheive this......................
    Please help.
    Thanks in Advance
    Shanaya

    Shanaya,
    You will have to take help of functional guys so that they can configure mentioned output type in NACE.
    Apart from that you might have to do some coding as well with condition like
    IF nast-kschl EQ 'ZCON' AND nast-nacha EQ '6'.
    Please check NAST table for more details and let us know if you still need some help.
    Cheers
    VJ

  • How to use output determination: track changes made on the contract

    We have a third party application which is requiring a delta change log of contract from SAP, does anyone know the mechanisms of using output determination to track all the changes on contact level?
    Thanks a lot!

    Hi,
    You can use SAP change documents.
    Please refer to the link below:
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/18/7e713ae142d65de10000000a114084/frameset.htm|http://help.sap.com/saphelp_erp60_sp/helpdata/en/18/7e713ae142d65de10000000a114084/frameset.htm]
    Cheers

  • TF207012:You cannot save this query with this name because another query that uses this name is already open.

    Hi,
    I am developing a custom control in TFS2012 using c#. The custom control is a button, when I click it in UI, the current work item will be saved in the next state.
    But if I new a workitem using the button and save it using "save work item" button after changing something, I always get an error called TF207012. After I close the error message, the workitem has been saved.
    How can I removed this error message?
    Any help will be apperciated.Thanks.

    Hi Aodixius,
    For this issue, you might check whether you have defect in your custom control. Generelly, you may also need to custom a web control for team web access after customizing for Visual Studio. About custom control for TFS work item, check the links below for
    more information and make sure your custom control works.
    https://witcustomcontrols.codeplex.com/
    http://blogs.msdn.com/b/greggboer/archive/2010/03/30/work-item-tracking-custom-controls.aspx
    http://blogs.msdn.com/b/narend/archive/2006/10/02/how-to-use-custom-controls-in-work-item-form.aspx
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to use Go URL to Navigate from one report to another

    I have used Actionlink option to navigate from one report to another, It is nopt working on the dashboard because i used presentation variables in my first report and its throwing me an error below, I have to pass on id from one summary report to detail report, I have created Go URL, Do i need to use that URL in my summary report column formula ?
    Need some info ~ Thanks ~Srix
    An invalid object was accessed during evaluation.
    Error Details
    Error Codes: QBB4RZQS:SDKE4UTF
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    Expression: report.variables['TimePeriod']

    Hi ,
    Please refer the below threads.
    How to Navigate from one report to another report based on column values
    Navigating from one report to another report
    Re: Navigate from Report 1 to Report 2 using Go URL
    Award points it is useful.
    Thanks
    satya

  • Distinct values as input to another query

    Can any one help me to write a program to fetch distinct values in query and then insert that distinct values as input to another query

    Fetch distinct values:
    use distinct keyword
    for insert : use the following.
    insert into <table_name> select distinct <column_names> from <table_name>;

  • How to use output of one procedure in an interface

    THere is a scenario that i want to create in ODI
    I am getting data in chunks from a database. right now its only one attribute 'first_name' and a chunk of 20 comes in a database type varchar2(100) array.
    What I want is:
    As soon as first chunk comes in, I send this array of 20 names to an inteface. This interface would make some transofrmation on the data and will write the transformed data into the file. It sends back the signal to the procedure and procedure sends another 20 chunks to this interface again.
    How can I do that. I am stuck in it and i need to deliver the solution in 1 day. Any help would be much appreciated
    Thanks,
    Fawad

    You can solve this in different way:
    1. Create stage table and reference this in interface to create the file.
    2. You can create the package and call the procedure and interface in loop and also you can schedule using scheduler to run in intervals.

  • How to use RLS with complex numbers as the input?

    I import a file which have complex numbers, and I want to filter it using complex RLS adaptive filter, but it always freeze at the filtering and update then it returns one value in the matrix and all the other numbers are NaN, so how can I fix this.
    The second thing is when I use FBLMS, it always return error 42020 unless I specify the filter length= number of the input which is huge number, so how do I specify normal filter length.

    Hi engomar,
    There is a detailed description of how to choose filter length in the Adaptive Filter Tollkit Help file. 
    http://zone.ni.com/reference/en-XX/help/372357B-01/lvaftconcepts/aft_choose_filterlength/
    This page has several links to other important factors of what filter to choose. Under Computational Resource Requirements, it lists the memory usage for different filter types. RLS is the most memory intensive, which could be causing the freeze. Maybe try a LMS to see if this helps.
    Robert R. | Applications Engineer | National Instruments

  • How to use copy of standard program for direct input in LSMW

    currently we're using object 0085 Purchase Orders and and method 0001 for standard direct input, which is processed with program RM06EEI0
    now I want to set an additional flag and avoid creating it by means of BUS PurchaseOrder.CreateFromData1 method (coz the structure is quite different and more complex).
    so my question is now how can i assign a copy of the standard program for processing?
    for better understanding I've attached a screenshot of the according screen
    [img]http://img71.imageshack.us/img71/1558/lsmwcr6.jpg[/img]

    ok, solution was to maintain table SXDA1 (SAPDXfer: Data Transfer Objects and Sub-Category).
    modify entries for DXPRG, DXPR1 and LOADPRG with custom program names

Maybe you are looking for

  • How to install BI Publisher 10.1.3.4.2 on Windows 2008 R2

    Hi experts Refering to the document Oracle® Business Intelligence Publisher Certification Information 10g Release 3 (10.1.3.4.2) E12692-08 To install on Windows 2008 R2 follow the steps in "Manually Installing BI Publisher to a J2EE Application Serve

  • How to save my podcasts on iPod after wiping drive and re-installing iTunes

    I wiped my computer and re-installed iTunes. I have a ton of podcasts on my iPod, however, and I don't know how to sync new podcast downloads while saving the podcasts currently on the iPod. If there's no "built-in" way to do this with iTunes, is the

  • Hyperlinks to other documents in Pages  ?

    Even in such a miserable tool as Ms word, it is possible (though unreliable) to set a hyperllink from a document so as to open a different document which is not a webpage, e.g. a pdf. As far as I can see this was not possible in the previous Pages. D

  • Can I email the Customer Recievables Aging Reports to the customer?

    Running SAP Business One 2007 A (8.00.178) SP:00 PL:42 In the Business Partner Module --> Business Partners Reports --> Aging --> Customer Recievables Aging It has been requested to me that the results from running this report needs to be emailed to

  • My settings keep resetting no matter what I try

    I have been having a couple problems with my settings. It has happened a few times already, this time it started with iTunes, and it started like i just reinstalled, then it moved to Safari, and caused the setting to go back to factory setting. Now I