Use results from previous action to filter

I hope there are some automator pros out there who can shed some light on this one.
I am trying to create an app that will look in a specified folder, find all documents that were created in the last seven days, and then return results of only the files that contain a set of file names I specified.
So far I have this:
Find Finder Items
.....Search (FOLDER)
.....Any of the following are true:
........list of 15 filenames
Get File Information
Copy to Clipboard
Paste Clipboard Content into Word Document
Here is the crux. I need to find only the files with the specified names that were created in the last 7 days. I work for a television station, and all episodes have the same name, with an episode number at the end. I don't want results of every file with that name, there's thousands. Just the new ones. I can't just do a search for last 7 days files, because over 30 are created, and I only need 15. So how can I filter the results of the first action to only give me the results from the last 7 days? I added a Filter Finder Items, thinking it would take its information from the previous task, but it didn't work. Any help would be appreciated.

I don't have a smb network drive to test, but if the find shell script works (it does not use Spotlight, and I am guessing that at least one of the actions uses it), the following *Run AppleScript* action may also work (and be shorter than 27 actions).
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #DAFFB6;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">
on run {input, parameters} -- find items by age
searches the specified folder for the specified items newer than the specified number of days
input: nothing (any existing input is passed on)
output: a list of items found matching the search criteria
# search criteria
set theFolder to quoted form of text 1 thru -2 of (POSIX path of (choose folder)) -- no trailing delimiter
set fileNames to {¬
"Example_File_Name_1.txt", ¬
"Example_File_Name_2.txt", ¬
"Example_File_Name_3.txt", ¬
"Example_File_Name_4.txt", ¬
"Example_File_Name_5.txt", ¬
"Example_File_Name_6.txt", ¬
"Example_File_Name_7.txt", ¬
"Example_File_Name_8.txt", ¬
"Example_File_Name_9.txt", ¬
"Example_File_Name_10.txt", ¬
"Example_File_Name_11.txt", ¬
"Example_File_Name_12.txt", ¬
"Example_File_Name_13.txt", ¬
"Example_File_Name_14.txt", ¬
"Example_File_Name_15.txt"} -- a list of names to find
set daysOld to 7
set nameList to {} -- build an evaluation string from the list of names
repeat with anItem in fileNames
set the end of nameList to "-iname " & (quoted form of anItem) & " -or " -- case insensitive match for any of the names
end repeat
set nameList to text 1 thru -6 of (nameList as text) -- strip off the last boolean operator
# find files newer than 7 days old with any of the specified names
do shell script "/usr/bin/find " & theFolder & " -type f -newerBt '" & daysOld & " days ago' \\( " & nameList & " \\)"
return input & (paragraphs of the result) -- add to any input items
end run
</pre>

Similar Messages

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • Can we use Result from another query in Webi using Bex uery universe?

    Hi,
    Can we use Result from another query filter option in Webi to create a report using a Bex Query universe?
    I need to create a report using two universes, one is Bex Query Universe and the other is Orcle universe. I have two queries, one is using Oracle universe; the other using Bex Query universe. I need to pass the Oracle data from the Oracle query to the Bex Query query to get the matched data from SAP Bex query.
    I used Result from another query in the query filter panel for the query using Bex query universe. But I got an error saying that 'A filter contains a wrong value. you cannot run this query. (Error: WIS 00007). The data used in the filter on both sides are the same. they are char.
    I have tested by using two queries from the same Bex query universe to see if the Result from another query filter option works. And I got the same error.
    Has anyone run into the same issue and if this is possible and what should be the solution?
    Thanks in advance!
    Edited by: BO_Haiyan on Oct 6, 2010 3:47 PM

    In that situation:
    Create two queries : Oracle and BW query.
    @ Report:
    As you have to see result set from both the Dataproviders, correct? To achieve thise one must have common dimension objects to merge them at report and use Objects those are coming from both queries to use them in single Table/Report.
    Unless you don't use Merge Dimensions, you don't get a chane to use both queries objects in single Table/Report. (It will give tooltip saying: You can't drop here -- Incompatable Objects)
    In case, if you don't have common dimensions, change object definitions to Detail objects, for those required.
    Hope it helps you.
    Thank You!!

  • Referring to Automator Results from Previous Steps

    Is it possible to refer to the results from previous steps in an Automator Workflow? Specifically, I'm trying to modify my backup Workflow to remove files from a folder before archiving it. I'm writing code and I want to back up my progress every so often. I have a decent workflow for archiving my entire project folder, but my executable is 21 MB where as the source code is .5 MB. I could cut the size of my archive dramatically if I could remove the executable file before archiving (plus it's obviously nonportable and redundant anyhow). I'm running into 2 issues when trying to create a Workflow to handle this:
    1) Find/Filter Finder Items rely on Spotlight meta tags. Since I'm constantly recreating the executable, it appears Spotlight generally doesn't have the executable indexed so these two functions don't work. They simply don't see the executable.
    2) Even if I find the file and delete it, I don't know how to select the folder again to archive it. I'm trying to keep this general so it'll work on any project folder so I don't want to point it directly to the folder.

    Is it possible to refer to the results from previous steps in an Automator Workflow? Specifically, I'm trying to modify my backup Workflow to remove files from a folder before archiving it. I'm writing code and I want to back up my progress every so often. I have a decent workflow for archiving my entire project folder, but my executable is 21 MB where as the source code is .5 MB. I could cut the size of my archive dramatically if I could remove the executable file before archiving (plus it's obviously nonportable and redundant anyhow). I'm running into 2 issues when trying to create a Workflow to handle this:
    1) Find/Filter Finder Items rely on Spotlight meta tags. Since I'm constantly recreating the executable, it appears Spotlight generally doesn't have the executable indexed so these two functions don't work. They simply don't see the executable.
    2) Even if I find the file and delete it, I don't know how to select the folder again to archive it. I'm trying to keep this general so it'll work on any project folder so I don't want to point it directly to the folder.

  • WHERE using results from another querie

    Hi,
    Example:
    <cfquery name="QUERY 1" datasource="MyDatabase">
    SELECT Table1ID, A, B, C
    FROM Table1
    WHERE A = #Form.A#
    <cfoutput query="QUERY1">#A#<br></cfoutput>
    It returns:
    3
    4
    <cfquery name="QUERY 2" datasource="MyDatabase">
    SELECT Table2ID, A, Z, Y
    FROM Table2
    WHERE A IN (3,4)
    <cfoutput query="QUERY
    2">#Table2ID#</br></cfoutput>
    It returns:
    a
    b
    c
    d
    e
    f
    But if I make QUERY2 as:
    <cfquery name="QUERY 2" datasource="MyDatabase">
    SELECT Table2ID, A, Z, Y
    FROM Table2
    WHERE A IN (#QUERY1.A#)
    it returns only:
    a
    b
    c
    The values a,b,c are the Table2ID's where A=3
    The values d,e,f are the Table2ID'a where A=4
    How can I make return all values?
    Hope you understand.
    Thanks
    Manel

    Think about what you are doing for a second. You are
    selecting multiple rows of data with your first query. Then you are
    using a cfloop to loop through each row returned from that first
    query to perform another query that uses the value returned in the
    A column. The problem is that you are executing your second query
    once for each row returned by your first query, and you really
    aren't saving that result anywhere, since each iteration of the
    loop causes your cfselect to overwrite your previous results. You
    can create a list variable and populate it with the results from
    your first query, but I have to ask, unless you need the results
    from your first query for something else, why don't you just join
    the two tables and use on equery?
    Based on what you have, something like this?
    <cfquery name="QUERY 2" datasource="MyDatabase">
    SELECT T2.ID, T2.A, T2.Z, T2.Y
    FROM Table2 T2
    INNER JOIN Table1 T1 ON T2.A = T1.A
    WHERE T1.A = #Form.A#
    </cfquery>
    Phil

  • Automator in Leopard - Ignore results from last action?

    In the Tiger version of Automator there was an option on each (or most) of the actions you placed in the workflow (in the Automator window) to ignore results from the last action. I can't see how to do this in the Leopard version. How do I do it, or where's the option?

    It's now called "Ignore Input" and is accessed via right-click on the action menubar-- not the most friendly change!
    I wrote up a review of Automator 2 covering this and a few other issues:
    http://automatorworld.com/archives/automator-20-review/
    Message was edited by: Steve Weintraub

  • Copy Appraisal Results From Previous (MBO)

    Hi:
    There is a business requirement to populate the "criteria" and "notes" from previous year's appraisal form.
    This must be populated when the appraisal form is launched.
    I probably should be using a BADI for this. However, I don't know which function module I should use.
    I hope experts in this forum can help me. Any help is appreciated.
    Thank you,
    Ash

    Hello Ash,
    You can use the Value Determination BADI to default value in the VC.
    There are some standad BADIs implementation in the following definition:
    HRHAP00_VAL_DET     Appraisal Document - Value Determination
    You may copy/create your own custom implementation from the standard.
    Best Regards,
    Vincent

  • Unicode String Issue while Using Results from Another Query

    Hi All,
    In a webi report i have 2 queries say Sales Out and Investment. I need to have only those chains which are in Investement in Sales Out.
    So in Sales Out query i am using the option Results from another Query. The Chain values are in Unicode format.
    Though in universe i have Set Parameter Unicode_String ='Yes', this does not get applied when using option Results from another Query.
    Is there any solution to resolve this problem.
    Thanks
    Madhura

    leonhardtk wrote:
    I need to take values from the column of one table that meets certain critera, and create inserts into another table that includes this data.
    For example...
    {code}
    select emp_last_name from emp where emp_first_name like 'B%';
    Duncan
    Fitzgerald
    Johnson
    Smith
    {code}
    I then want to insert these values into another table:
    {code}
    insert into My_table values (
    sequence.nextval,99,99,[last_name]);
    {code}
    In the example above, I need it to insert a new row into My_table for where the "last_name" is each of the names from the select statement above (Duncan, Fitzgerald,Johnson,Smith).
    Based on other similar forum questions it looks like I should be doing something like:
    {code}
    INSERT INTO MY_TABLE
    (SELECT sequence.nextval,
                    99,
                    99,
                   (select EMP_LAST_NAME
                    FROM EMP
                    WHERE EMP_FIRST_NAME LIKE 'B%')
    {code}
    But this (obviously) doesn't work!
    Appreciate any assistance on this!
    KSL.
    Hi,
    Created this test data
    create table plch_test (name varchar2(50));
    insert into plch_test values('AKSHAY');
    insert into plch_test values('RAHUL');
    insert into plch_test values('APARNA');
    output
    1    AKSHAY
    2    RAHUL
    3    APARNA
    created another destnation table(in your case "my table")
    create table plch_test_1 (id number,name varchar2(50));
    created another sequence to generate employee ids
    create sequence test_seq;
    Now populated the desination table
    insert into plch_test_1(select test_seq.nextval,name from plch_test);
    verify the destination table
    select * from plch_test_1
    1    AKSHAY
    2    RAHUL
    3    APARNA
    Hope this helps
    Regards,
    Achyut Kotekal

  • Query Builder problem - query results from previous query

    Hi.
    I have a 100% repeatable problem in Oracle Query Builder (Version 6.0.7.1.0) where some rows from the results of a previous query appear in the results for the current query. The queries being run are saved in *.brw files. If I close down Query Builder completely between queries, there is no problem. If I run one query, export the results to a CSV file, close that query and then open a second query, when I run the second query there are rows in the results that shouldn't be there (they are remnants of the first query). Interestingly the total number of rows for the second query is correct, so the same number of rows are missing as shouldn't be there. Anyone come across this before? Problem is repeatable for different database users and on different computers.
    regards,
    Martin

    as i posted earlier .. queryBuilder as a stand alone product is neither supported nor available anymore. it is only available as part of the report data wizard.
    thanks,
    ph.

  • How to use results from first select to run from second select w/subselect?

    -- I create a table with three fields: Name, Amount, and a Trans_Date.
    CREATE TABLE TEST
    NAME VARCHAR2(19) NULL,
    AMOUNT VARCHAR2(8) NULL,
    TRANS_DATE DATE NULL
    -- I insert a few rows into my table:
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '110', TO_DATE('06/01/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '20', TO_DATE('06/02/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '110', TO_DATE('06/03/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '21', TO_DATE('06/04/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '68', TO_DATE('06/04/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '110', TO_DATE('06/05/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '20', TO_DATE('06/06/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '43', TO_DATE('06/07/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '77', TO_DATE('06/08/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '221', TO_DATE('06/09/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '43', TO_DATE('06/10/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    INSERT INTO TEST ( TEST.NAME, TEST.AMOUNT, TEST.TRANS_DATE ) VALUES ( 'Bill', '73', TO_DATE('06/10/2005 08:00:00 PM', 'MM/DD/YYYY HH12:MI:SS PM') );
    commit;
    -- These are the current select statements I am using:
    -- Last 10 days
    SELECT SUM(t.AMOUNT) AMOUNT10, NULL AMOUNT5, NULL AMOUNT3
    FROM test t
    WHERE t.NAME = 'Bill'
    AND t.TRANS_DATE >= TO_DATE('06/01/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    AND t.TRANS_DATE <= TO_DATE('06/10/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    UNION ALL
    -- Last 5 days
    SELECT NULL AMOUNT10, SUM(t.AMOUNT) AMOUNT5, NULL AMOUNT3
    FROM test t
    WHERE t.NAME = 'Bill'
    AND t.TRANS_DATE >= TO_DATE('06/06/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    AND t.TRANS_DATE <= TO_DATE('06/10/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    UNION ALL
    -- Last 3 days
    SELECT NULL AMOUNT10, NULL AMOUNT5, SUM(t.AMOUNT) AMOUNT3
    FROM test t
    WHERE t.NAME = 'Bill'
    AND t.TRANS_DATE >= TO_DATE('06/08/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    AND t.TRANS_DATE <= TO_DATE('06/10/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am');
    -- This is the current output:
    AMOUNT10 AMOUNT5 AMOUNT3
    916 NULL NULL
    NULL 477 NULL
    NULL NULL 414
    Is there a way to combine these statements to speed up performance?
    I'm thinking there should be a way to select all the rows in the last tens days, and then just from those results, run another select to get the results for the last 2, 3, or 5 days using subselects in some way. Any help is appreciated. Thanks.
    I don't mind getting results in one row like this:
    AMOUNT10 AMOUNT5 AMOUNT3
    916 477 414

    Thank you for providing create table and insert scripts, along with the query so far. It makes providing an answer so much easier.
    Does this help?
    SQL> select sum(amount10) amount10, sum(amount5) amount5, sum(amount3) amount3
      2  from
      3      (
      4      select
      5          case when
      6              t.TRANS_DATE >= TO_DATE('06/01/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
      7              AND t.TRANS_DATE <= TO_DATE('06/10/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
      8          then
      9              amount
    10          end amount10,
    11          case when
    12              t.TRANS_DATE >= TO_DATE('06/06/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    13              AND t.TRANS_DATE <= TO_DATE('06/10/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    14          then
    15              amount
    16          end amount5,
    17          case when
    18              t.TRANS_DATE >= TO_DATE('06/08/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    19              AND t.TRANS_DATE <= TO_DATE('06/10/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    20          then
    21              amount
    22          end amount3
    23      from
    24          test t
    25      where
    26          t.name = 'Bill'
    27      AND t.TRANS_DATE >= TO_DATE('06/01/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    28      AND t.TRANS_DATE <= TO_DATE('06/10/2005 08:00:00 PM','mm/dd/yyyy hh12:mi:ss am')
    29      );
      AMOUNT10    AMOUNT5    AMOUNT3
           916        477        414
    SQL>Message was edited by:
    3360
    Durn, pipped by flakey forums and the return of v garcia.

  • Using History from Previous Sessions in Terminal

    Hello, this may be a very simple thing but it somewhat vexes me. At home I run the Quicksilver, and an Intel Mac at work, from time to time using Terminal.app I run into this issue at work. Opening up Terminal and hitting the up arrow doesn't give me any previous session commands I had entered. But it does at home no problem, is this a simple setting I'm missing between the two computers or does this require something simple in my user file(s)?
    Thank you in advance for any help you could provide!

    Hi Jack,
    Do you know which shell you are using? If you are using bash, then it's strange that history is not saved; by default bash saves 500 last commands in a file ".bash_history" in your home directory.
    What is the output of the following command?
    ls -l ~/.bash_history
    echo $HISTFILESIZE
    If .bash_history does not exists, or if its size is zero, then history is not saved. If the value of HISTFILESIZE is zero then check your .bash_profile (or .bashrc, whichever you are using) and delete the line which sets HISTFILESIZE to zero. Or try setting it to nonzero value such as 500.

  • Using results from a loop

    Hi!
    I have the following code for a loop to print out some ascii characters.
    for(int b=32; b<=126; b++)
                for(int c=32; c<=126; c++)
                    System.out.println("Testing: " + (char)b + (char)c);I would like to use the output of the loop in another piece of code but I'm not too sure how I can do this. Here is the code that I want it entered into:
    char[]  sentence  = sent.toCharArray();I used the above code for an input from a buffered reader and now I would like to take the characters from the loop and enter them like with the buffered reader.
    I tried things like:
    String senten = (char)b + (char)c;and
    char[] senten = (char)b + (char)c;But they do not seem to work and I think I'm missing something really easy out... Can someone help me please?
    Much appreciated

    Java_noob wrote:
    All the options that I have tried so far have still given me the same problem. It keeps saying that is cannot find the symbol and the symbol is one of the variables in the loop i.e. a, b, c etc
    Just to clarify. I want to use the output of each iteration of the loop given by:Does the code:
    for(int b=32; b<=126; b++)
                for(int c=32; c<=126; c++)
                    System.out.println("Testing: " + (char)b + (char)c);give that error message? No, then post the code that does. (i'm guessing you keep the Sys.out, but don't add some {}s.
    Always post the COMPLETE error message, don't try to reduce it. The Goddess gave us Copy and Paste for a reason.

  • How to update multiple tables using results from query

    I'm a bit rusty on this stuff and am hoping for some help.
    Table 1 is:
    location_id, location_name
    Table 2 is
    location_id, employee_id and misc. other columns
    Then there are multiple tables with associated data, keys being location_id and employee_id.
    There are no established relationships.
    Trying to come up with a process to change location_id for all employees assigned to a particular location.
    It seems to me that the basics are
    select employee_id from Table2 where location_id='xxxxxx'
    Then take each employee_id returned and change their location_id in each of the other tables
    I'm not clear on how to load the returned employee id's as variables and then loop through them.
    Thanks

    Thanks for the welcome. I'll read up on the rules now.
    Below is the DDL for a couple of the tables.
    Version = 11g
    I would query the users table for all users with a certain site_id and then use them to update the site_id in the users table (and other tables)
    -- DDL for Table USERS
    CREATE TABLE "USERS"
    (     "USERID" VARCHAR2(8 BYTE),
         "PASSWORD" VARCHAR2(50 BYTE),
         "FIRST_NAME" VARCHAR2(50 BYTE),
         "LAST_NAME" VARCHAR2(50 BYTE),
         "SITE_ID" VARCHAR2(5 BYTE),
         "ROLE_ID" VARCHAR2(1 BYTE)
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "SITES_DATA_TS"
    CACHE ;
    -- DDL for Table EMPLOYEE_PROFILE
    CREATE TABLE "EMPLOYEE_PROFILE"
    (     "EMPLOYEEID" VARCHAR2(9 BYTE),
         "PROGRAM" NUMBER,
         "REQUIREMENT" NUMBER,
         "JOBNUM" VARCHAR2(50 BYTE),
         "STATUS" VARCHAR2(50 BYTE),
         "PROGRAM_TYPE" VARCHAR2(50 BYTE),
         "SITE_ID" VARCHAR2(5 BYTE),
         "NUM_QUAL_TEST_ATTEMPTS" NUMBER(7,0)
    ) SEGMENT CREATION IMMEDIATE
    PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
    TABLESPACE "SITES_DATA_TS"
    CACHE ;

  • Using result from an update rules in another

    Hello all,
    I have the problem that I have a very large update rule for the derivation of the sales division. This sales division is needed in another update rule for the derivation of the sales employee. As well as i know, it's not clear in which direction the updates rules are done so that I can't refer to the result of the update rule for the sales division. Can anybody tell me if there's a way to avoid to do this for a second time?
    Kind regards
       Anja Schlimme

    Hi Anja:
    Best Solution:
    Try to derive Sales Division & Sales Employee in Start Routine of Transfer Rule. Remember, here, you have to write good ABAP Code where you derive Sales Division and assign it to data_package-SALESDIVISION. Use this to derive Sales Employee.
    Better Solution:
    Try to derive Sales Division & Sales Employee in Start Routine of Update Rule. Remember, here, you have to write good ABAP Code where you derive Sales Division and assign it to data_package-SALESDIVISION. Use this to derive Sales Employee.
    Good Solution:
    You can derive Sales Division in Transfer Rule.
    Then, you can use this do derive Sales Employee in Update Rule.
    Ram Chamarthy.

  • Issue with Results from Another Query (Error on Null value)

    Hi All,
    We have a WebI report using "Result from Another Query" option of BO XI R3.1. The report was running fine till recently the dimension object using result from another query had a null value. Report suddenly throwed error as the query filters are invalid.
    Is there a way to make this filter optional if no data/null value is there ? Because we need those null values in report as well.
    Thank you for your time.
    Thanks & Regards
    LN

    Hi Vivek,
    It was not directly solved but I applied alternate logic to over come the issue.
    Here's what I did to overcome:
    I used a sub query in place of the whole result from another query.
    For Ex:
    Dim1 inlist result from another query1
    I made it as
    Dim1 inlist (Dim0)
    where Conditions.
    Here Dim0 is the object which we use for Result from another query and Conditions will be the necessary filter conditions to arrive proper Dim0.  Make sure proper context is formed for the sub query.
    Even though it resolved my problem, It introduces an new issue. It causes increase in query run time when huge set of data is returned from sub query.
    Please let me know if i haven't explained clearly.
    Hi Aris_BO,
    Sorry for not responding earlier.  The logic would probably make more queries null & not null. Thats why I was not advised to use it.
    Thanks
    LN

Maybe you are looking for

  • Does any one know about Classification of Objects

    Hi I have a requirement , in that a field is stored as part of the Vendor Class's Classification Object. How can I add this in my Model (DSO) ?Do I need to create any spl things for this ? I have recieved a flat file for this requirement also for thi

  • Excise RG23C Opening Balance

    Hi friends, I have a doubt. Please anybony can helpus. Let's take an example: On 1st june, 2010 client goes live. so opening balances for RG23C is updated in Table and corresponding FI entry is also posted, giving effect in Excise & FI books. Now if

  • How Transportation of Adhoc Query is done through RSAQR3TR report.

    Hi, How Transportation of Adhoc Query is done through RSAQR3TR report.i want to transport a new usergroup, new infoset and a query from Develpment to Quality and Production. I have gone through the documentation of the RSAQR3TR report and as well as

  • PS4 wont launch in Windows 7

    First off I have legal copies of both Photoshop CS4 and Windows 7.  PS4 Works perfect in XP.  I upgraded my computer and it came with Windows 7 Home.  When i first tried to instal CS4, it came back with error "installer may not have loaded correctly,

  • Regarding BP number search and deletion

    Hi Gurus, I have some doubts in BP. 1) If I open BP and do start it only shows 100 nos max. Can I extend ti to all the bp available. 2) I had created the ord model and this org also treated as a bp master data. I deleted the ord model and deleted the