View creation - filtering receiving time intervals

I want to create some new views for my team.
We handle e-mails in shifts (most of the time there are 6 of them) so in each hour it looks like the below (we use 24 hour clock from 14:00 to 21:59 so 2PM to 10PM):
6/1 - 14:00 - 14:09 // 15:00 - 15:09 // 16:00 - 16:09 // .................... // 21:00 - 21:09
6/2 - 14:10 - 14:19 // 15:10 - 15:19 // 16:10 - 16:19 // .................... // 21:10 - 21:19
6/3 - 14:20 - 14:29 // 15:20 - 15:29 // 16:20 - 16:29 // .................... // 21:20 - 21:29
6/4 - 14:30 - 14:39 // 15:30 - 15:39 // 16:30 - 16:39 // .................... // 21:30 - 21:39
6/5 - 14:40 - 14:49 // 15:40 - 15:49 // 16:40 - 16:49 // .................... // 21:40 - 21:49
6/6 - 14:50 - 14:59 // 15:50 - 15:59 // 16:50 - 16:59 // .................... // 21:50 - 21:59
I would like to create the view based on that.
So first mail shift (6/1) can only see what is coming in between 00-09 in every hour, second (6/2) can only see what is com in in between 10-19...and so on...
I did it with the advanced view settings, but I have 2 issues:
1. It is using the date of the creation so is it possible to put in a function which takes the actual date, like CURDATE() ?
2. Somehow a few e-mails are missing, so it works almost fine, takes almost everything but it seems that a few e-mails are missing from the new view and they are there in the original view. I checked and no other filters are turned on, so this must
be something else. The filter is based on the 'Received' timing and I'm not sure if anything else interacts.
For example in the 4th shift (6/4) there were like 10 e-mails missing during my test day at minute :30, but there were some at 15:30, 16:30 and 18:30 which  were in the filtered view. I first thought it's the <= and >= settings, but it shows
that it is not. I have no idea why it skips e-mails...
The SQL code is the below for the first shift (6/1):
(("urn:schemas:httpmail:datereceived" >= '2014.04.07
14:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 14:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 15:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 15:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 16:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 16:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 17:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 17:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 18:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 18:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 19:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 19:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 20:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 20:09') OR
("urn:schemas:httpmail:datereceived" >= '2014.04.07 21:00' AND
"urn:schemas:httpmail:datereceived" <= '2014.04.07 21:09'))
Please if you have any idea what could be wrong, maybe I should add something else to the filter please get back to me. This way it is useless and I really want us to use view because we have about 50 emails per shift in every hours.
Thank you!

1.  I can't help you with this.
2. What about mail that comes in at 14:09:30?  It would be dropped, no?  I think your logic should be:
...("urn:schemas:httpmail:datereceived" >= '2014.04.07
14:00' AND
"urn:schemas:httpmail:datereceived" < '2014.04.07 14:10') OR...
You didn't ask, but a problem I would have with your approach is that it's based on views, which isn't exactly best for accountability.  I would think you'd want to be using some kind of code that routes mail to the mailboxes of those responsible rather
depending on them seeing it in a shared mailbox.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

Similar Messages

  • Materialized view creation taking long time

    Hi All,
    We are creating a dimensional OLAP model with the Materialized views. In that we are having 7 dimensions and 1 fact table. I have created all the dimensions with the materialized views with out any problem. But when im trying to create my Fact materialized view it is running for 14 hours and is still running. I'm waiting to see when it will complete. The select statement in the Fact MV returns only 19 records and that too in seconds. But when i use the same select statement for MV creation it is taking a long time. I dont know how long it gonna take. How can i reduce this long running time. Mean while my fact MV is having nearly 15 joins with other physical tables and dimensions.
    Thanks in advance,
    Karthick

    Hi all,
    Thanks for your reply..
    I think i dint clearly mention my problem..
    The select statement for the MV will return 19 records. But when im trying to create the MV it is taking quite a long time. it ran for >14 hours but still it dint create a MV. Why is it happening like this? Is it possible to increase the performance.
    Thanks,
    Karthick

  • How to view sent or received time for messaeges in iOS7

    i am new bie for using ios. tell me any body
    also check  counter strike free download for pc subway surfers for laptop download

    Just go to the message and the date and time is included in the message.
    Also the two links you included seem to violate the terms of use of this forum Since it includes links to irrelevant sites.

  • View and Print 15 minute time intervals

    Hi there
    I've hunted high and low but I can't figure out how to set my Week view up to show 15 minute time intervals. I also need to print this view out.
    Any suggestions would be welcome.
    Cheers
    Cat

    I don't think you can.
    AK

  • View creation very slow - not materialized view

    I have a view creation script which is running in a fraction of a second in the dev environment but takes over an hour to run in the test environment.
    The test environment is off-site, so I have no direct access to it. It does have a lot more data in than dev, but this is not a materialised view so as far as I understood it the amount of data in the system shouldn't affect the time to create the view.
    I haven't been able to find any information on what can make this happen. In the development environment I can be querying the view (or can lock it directly), and am still able to run the CREATE OR REPLACE statement without any performance impact. The view does contain function calls and is created with the FORCE keyword, but I can't find any evidence that this should affect the speed of creation.
    I am running Oracle 10g (10.2.0.4.0) on Solaris in both dev and test environments.
    Any ideas on what could be causing this are very welcome.
    CREATE OR REPLACE FORCE VIEW DB_OWNER.PER$AGE
    SYSTEM,
    LOCATION,
    EVENT_START,
    SURNAME,
    DOB_STRING,
    DESCRIPTION,
    GENDER,
    OLD_ID,
    URN,
    COMBINED_SCORE,
    LOAD_DATETIME,
    AGE,
    EVENTDATE_FROM,
    EVENTDATE_TO,
    DETAILS,
    AOB
    AS
    SELECT /*+ leading(ad) */
    p.system,
    p.location,
    p.event_start,
    p.surname,
    CAST (
    NVL (
    NVL2 (
    p.dob,
    TO_CHAR (p.dob, 'dd/mm/yyyy'),
    TO_CHAR (
    p.apparent_age
    + ROUND ( (SYSDATE - p.created_datetime_from) / 365, 0))),
    0) AS VARCHAR2 (10))
    AS dob_string,
    p.description,
    p.gender,
    p.old_id,
    p.urn,
    NVL2 (
    p.dob,
    db_owner.app_age_score (p.dob, ssearch.get_target_age),
    db_owner.age_score (p.apparent_age,
    p.created_datetime_from,
    ssearch.get_target_age))
    AS combined_score,
    p.load_datetime,
    psd.age,
    psd.eventdate_from,
    psd.eventdate_to,
    e.details,
    NVL (e.aob, 'N/A') aob
    FROM db_owner.person p,
    db_owner.psd psd,
    db_owner.entity e
    WHERE p.db_key = psd.db_key
    AND psd.age IS NOT NULL
    AND e.system(+) = p.system
    AND p.system IN (SELECT internal_name
    FROM ops$tomcat.feed_details
    WHERE inSearchList = 'true')
    AND e.urn(+) = p.urn;

    Hi,
    Thanks for the response.
    Trying the same thing without the FORCE keyword made no difference, the view still takes a long time to compile and there are no compilation errors.
    On the development system, I have run a long-running query on the view and checked V$Access. This returns a record for the view, but I can still successfully run the CREATE OR REPLACE statement on the view in another session. This appears to show that a record in V$Access doesn't mean that the view can't be recompiled.
    On the test system there are no other sessions connected and no records for the view in V$Access.
    Does anyone have any other ideas?

  • View creation fr generic extraction

    Hai Experts,
    when we are create view from two different table ,wht is the crieteria that should  satisfy  between tables..... and at the time of datasource creation which type we need to select (master/trans)..as i found both master and transaction field in one table
    Can any one send the step by step process to create view..
    I have one more scenario ie .,i need to create a datasource from tables which belong to diff applications and their primary key is different ,can any one tell me how to create a datasource using function module,step by step process..
    thnks in advance,
    Regards,
    Suri

    hi,
    try these links for view creation...
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/35c83ecedc636be10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/43473ccf20514ee10000000a114084/content.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    http://www.sapdb.org/7.4/htmhelp/ee/1c5be2eba711d4aa2800a0c9430730/content.htm
    hope it helps...

  • MAT View Creation Performance Issue

    Hello Experts,
    Below query is executing approximately in 1-3 sec.
    select
    COMMITMENT_ID,
    FUNDING_RULE_ID,
    reporting_year||'-'||reporting_period as RepPeriod,
    GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
    GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
    from
      (select
      COMMITMENT_ID,
      FR_ID as FUNDING_RULE_ID,
      COMT_START_DATE,
      --COMT_TERMINATION_DATE,
      GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
      GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as  reporting_period
      from
        select
        COMMITMENT_ID,
        COMT_START_DATE,
        --COMT_TERMINATION_DATE,
        COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
        from
        (COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
        a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
        on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
        left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
        b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
        on
         COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
    The query is returning 4.5 lacks of rows.
    I want to create a MAT view by using above query and refresh this on daily basis.
    But the MAT view creation is taking more time near about 401sec (6.68min).
    Why the MAT view is taking more time?
    MAT_VIEW
    CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
    AS select
    COMMITMENT_ID,
    FUNDING_RULE_ID,
    reporting_year||'-'||reporting_period as RepPeriod,
    GET_START_DAY_OF_PERIOD (FUNDING_RULE_ID, reporting_year, reporting_period) START_DAY_OF_PERIODt,
    GET_END_DAY_OF_PERIOD(FUNDING_RULE_ID, reporting_year, reporting_period) END_DAY_OF_PERIOD
    from
      (select
      COMMITMENT_ID,
      FR_ID as FUNDING_RULE_ID,
      COMT_START_DATE,
      --COMT_TERMINATION_DATE,
      GETREPYEARFROMDATE(COMT_START_DATE,FR_ID) as reporting_year,
      GETREPORTINGPERIOD(to_char(COMT_START_DATE, 'mm') ,FR_ID) as  reporting_period
      from
        select
        COMMITMENT_ID,
        COMT_START_DATE,
        --COMT_TERMINATION_DATE,
        COALESCE(CB_FUNDING_RULE_ID,NC_FUNDING_RULE_ID) FR_ID
        from
        (COMMITMENT_TABLE left outer join (CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE a on
        a.FUNDING_RULE_ID = CB_FUNDING_RULE_ID )
        on COMT_BENEFICIARY_REF = CB_BENEFICIARY_REF
        left outer join (NON_CHILD_BENEFICIARY_TABLE left outer join FUNDING_RULE_TABLE b on
        b.FUNDING_RULE_ID = NC_FUNDING_RULE_ID)
        on
         COMT_BENEFICIARY_REF = NC_BENEFICIARY_REF)
    Is there any way to make the MAT view creation within 3 minutes?

    CREATE MATERIALIZED VIEW "REP_PERIOD_START_END_DATE"
    AS
    with tab as
    select /*+ materialize */ commitment_id,
                           comt_start_date,
                           --COMT_TERMINATION_DATE,
                           coalesce (cb_funding_rule_id, nc_funding_rule_id)
                              fr_id
                      from (      commitment_table
                               left outer join
                                  (   child_beneficiary_table
                                   left outer join
                                      funding_rule_table a
                                   on a.funding_rule_id = cb_funding_rule_id)
                               on comt_beneficiary_ref = cb_beneficiary_ref
                            left outer join
                               (   non_child_beneficiary_table
                                left outer join
                                   funding_rule_table b
                                on b.funding_rule_id = nc_funding_rule_id)
                            on comt_beneficiary_ref = nc_beneficiary_ref)
    select commitment_id,
           funding_rule_id,
           reporting_year || '-' || reporting_period as repperiod,
           get_start_day_of_period (funding_rule_id,
                                    reporting_year,
                                    reporting_period)
              start_day_of_periodt,
           get_end_day_of_period (funding_rule_id,
                                  reporting_year,
                                  reporting_period)
              end_day_of_period
      from (select commitment_id,
                   fr_id as funding_rule_id,
                   comt_start_date,
                   --COMT_TERMINATION_DATE,
                   getrepyearfromdate (comt_start_date, fr_id) as reporting_year,
                   getreportingperiod (to_char (comt_start_date, 'mm'), fr_id)
                      as reporting_period
              from tab);

  • Reg View creation in Generic

    Hi SDN,
    Im trying to create Generic Data source of View Method. I wanted to create View on BSID ( Closed Customer Invoices) and BSAD ( Open Customer invoices) Tables, But while creating its giving error as "THERE IS NO RELATION BETWEEN THE TABLES"  I want to know how to create Relation Between the tables. Both BSID & BSAD are standard tables, so we cant make any changes.
    Please let me know the procedure to bulid Rlation between the tables.
    Regards
    Sujan

    Hi Siva,
        You have to give relation between these two tables in tab "Table/Join Conditions".
    Creating Views:
    http://help.sap.com/saphelp_webas620/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    View creation fr generic extraction
    Hope it Helps

  • Text Message with sent/receive time

    I had a LG Voyager before the DX. When I got a text message it would show the time when the sender sent the message and the time I received it. So if I turned my phone on at 10 am and somebody sent a text at 8 am it would show sent at 8 received at 10. I noticed the DX doesn't do this. I looked in the marketplace for a app that could probaly do this but could not find one. Does anybody know of one or do I need to do something in the settings.

    It looks like "SMS Time Fix" is to address the old issues of Timezone offsets not working properly.
    I did find an app called "SMS Timestamper Fix" on the market that is suppose to help address this issue.
    Google really needs to store both times in the message database and make them available to the applications.
    I also ran across this patch which is suppose to patch the Android OS to store the sent time as opposed to the received time.
    You can also follow this as Issue 2989 over at Google.

  • Set operator NE in Database View creation in  join condition

    Hi Experts,
         I have a requirement to set NE(not equal) operator in join condition of Database View creation. Could you please help me how to set in operator.
    Join condition :
    Ex : BSAK-AUGBL NE BSAK-BELNR.
    You know that by default operator is '='. i want to set NE in place of '='.
    Thanks,

    Hi Chinna,
    Check whether if there is any possibility or not to include more key fields like bukrs, lifnr, gjahr etc in the where condition, so that you query may result faster. Then, there won't be any necessary to create the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • Automatic storage location view creation in maintenace order (IW31)

    Hello,
    Seems like I need some help.
    Have configured automatic storage location view creation for GR and reservation. Configured movement types are 101, 201, 261. While creating reservations (201, 261 mvmnt. types) with mb21 the sloc view is automatically created in material master, and everything seems fine.
    But in iw31 when I specify material number and sloc in a Components tab, I get an error message CO312: "The storage location data is not created". Automatic reservation is not created, and maintenance order can not be saved. Movement type 261 is used for automatic reservations for the maintenance order.
    If I configure message CO312 as a (W)arning  message, then it allows me to save the order and reservation, but sloc view in material master still is not created. Think that's not good and may lead to MRP issues.
    How can I configure automatic sloc view creation in iw31? Is that possible?
    Edited by: Konstantin Dudura on Nov 17, 2009 8:11 PM

    Hi,
    The customization required for Automatic Storage location creation at reservation are:
    Goto : SPRO -> MM -> inventory Management and physical inventory -> Goods issue/ Transfer posting -> Create storage location automatically
    first of all go to Plant and tick the automatic Storage location creation for the Plant. After that goto Movement type and tick the automatic Storage location for movement type 261.
    Regards

  • Personalized view creation in OA Framwork

    HI ,
    I am developing a search Trasaction in OAF using Query Region (AtuoCustomization Mode ). I developed the simple search and advanced search with dyamanic where caluse (I am setting the where clause and not using the where caluse genrate by Search Framwork ) . now i have to develope the personalized View page . i am using same method used in simple search and advance search for genrating where caluse dayanamiclly . but problem is that in personiazied view i am not able to invoke that method as i am not getting the how to handle the apply and apply & view result button in view panal . if anyone work on personalized View creation or know anything about creation of personalized view , please share your knowladge . its urgent , please help me
    regards,
    Vishal

    Looks like you are running a page which is part of a multipage transaction. Check the page function and make sure that page is not expecting any parameter, all the corresponding class files are present in the myclasses folder.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • HT204370 I recently purchased a movie at 1080p and when I went to view it, I received a message stating 1080p is too large for playback.  How can I re-download the movie at 720?

    I recently purchased a movie at 1080p and when I went to view it, I received a message stating 1080p is too large for playback.  How can I re-download the movie at 720?

    Not sure what happend there. But ATV only streams, no HD so if you leave it too long, the whole download gets lost.
    Check with iTS.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • How to change the view criteria at run time for af:query

    Hi,
    I've a usecase where I need to change the view criteria of the af:query at run time.
    Use case:
    =======
    1) Consider a check box (Show Emps Under Dept 10) in the query panel when user selects and clicks 'Search' button should show the employees under dept 10. If user searches without selecting the check box, the results should show all the employees in all the departments.
    2) I need to have a check box always in the query panel. Its mandatory.
    The way I implemented:
    ==============
    1) Created a transient variable 'Show Emps Under Dept 10' in the EmployeeVO and also created a bind variable bind_DeptNo.
    2) Create a view criteria 'AllEmployees' which has only the transient attribute as the view criteria item and whose value set to 'false' by default.
    3) Created another view criteria 'EmpUnderDept' which has 'DepartmentId' as the view criteria item and whose value set to the bind variable 'bind_DeptNo'.
    4) Dropped the view criteria 'EmpUnderDept' as the 'af:query' panel in the jspx page.
    5) Overridden the queryListener as '#{EmpBean.empSearch}'
    6) Has the below code in the empSearch method as below. When user selects the check box, applying the other criteria 'EmpUnderDept' and setting the bind variable to '10'.
    public void empSearch(QueryEvent queryEvent) {
    // Add event code here...
    QueryDescriptor queryDesc = (QueryDescriptor) queryEvent.getDescriptor();
    ConjunctionCriterion conCrit = queryDesc.getConjunctionCriterion();
    List<Criterion> criterionList = conCrit.getCriterionList();
    List criterionValues = new ArrayList();
    Object criteriaValue = null;
    int criteriaNo = 0;
    DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    FacesContext facesContext = FacesContext.getCurrentInstance();
    for (Criterion criterion : criterionList) {
    AttributeDescriptor attrDescriptor = ((AttributeCriterion)criterion).getAttribute();
    System.out.println("============== attrDescriptor.getName() =================== " + attrDescriptor.getName());
    criteriaValue = ((AttributeCriterion)criterion).getValues().get(0);
    if(criteriaNo==0) {
    Boolean val = (Boolean) ((AttributeCriterion)criterion).getValues().get(0);
    if (val.equals(true)) {
    OperationBinding method = (OperationBinding) ADFUtil.findOperation("ExecuteWithParams");
    if(method!=null) {
    Map params = method.getParamsMap();
    //params.put(key, value)
    method.getParamsMap().put("bind_DeptId", 10L);
    method.execute();
    ADFUtil.invokeMethodExpression( "#{bindings.EmpUnderDeptCriteiaQuery.processQuery}", queryEvent);
    } else {
    //ADFUtil.invokeEL("#{bindings.ExecuteWithParams.execute}");
    ADFUtil.invokeMethodExpression( "#{bindings.AllEmployeesCriteriaQuery.processQuery}", queryEvent);
    But this approach is not working and its always showing all the employees in all the departments.
    Please let me know if there is a way to change the view criteria at run time depending on the values set at run time for one of the view criteria items.
    JDev version am using is '11.1.1.5'
    Thanks,
    Lakshman

    Hi Shay,
    It worked for me without overriding the executeQuery() method in the ViewImpl.java.
    Instead of creating 2 view criteria, I created only one which has both transient variable and the DepartmentId = <bind_DeptId>. With the above code, it worked properly. Now I am using only one view criteria.
    Thank you.

  • Is there a way to view how much charging time is left when charging iPod?

    Is there a way to view how much charging time is left when charging our iPods (without having to disconnect and play a song to see the little battery icon)? The iBooks tell us the percentage and approximate time left to full charge. This would be a great feature for iPods as well, right? How can we suggest such a feature to the Mac techs for the next update?
    5th Generation iPod, iBook G4   Mac OS X (10.3.9)  

    determining an ipods estimated remaining battery life is difficult because it doesnt know how long the backlight will stay on, how many times you change a songs, etc.
    those are all variables that change the amount of battery

Maybe you are looking for

  • Adobe no longer working

    I have had adobe reader on my computer for many years and have downloaded pdf files which are still in my documents folder.  Now suddenly i cannot read them or download any new pdf files.  I have microsoft XP and Adobe Reader X. The message that appe

  • Getting Open In... to work with an iOS AIR app

    Hi, I am making a music player for iOS.  So far, I have figured that I am supposed to: in the InfoAdditions section of the app manifest, add:  UIFileSharingEnabled = true, so that users can place mp3s in iTunes within the app's documents directory, w

  • Device offline in PE 3

    I've been using PE 3 for years on my old Windows XP PC.  I'm trying to get it to run on my laptop which is now my main computer. The laptop uses Vista. Installation goes OK, but when I try to capture (through a Firewire connection) I get the 'Device

  • PadMail in Captivate-7

    Does the padMail function still get called at the end of a quiz in Captivate-7? Our current utility which captures the results via the padMail function, is no longer working. Format of  function I have been using up until now is; padMail(strAddress,

  • Can anyone help me to sync the numbers app between my mac and iPhone?

    As above really. I've purchased the numbers app for both my phone and mac. I've got spreadsheets saved to the mac ad I'm trying to work out how to sync them with the iPhone Many thanks