Keep RAR and ERM up to date with Z transactions

Hi all,
As you all know, Z transactions are added on the ongoing dayly basis to a SAP system.
My question here:
What is the best practice to keep RAR and ERM up to date in terms of this information?
Many thanks in advance. Kind regards,
  Imanol

Raghu,
What I meant is the best practice to make such Z transactions available in RAR and ERM database to be available to define new functions and / or define new roles.
Should periodic upload for action-permission file need to be executed in RAR?
AND
action, object job syncronized in ERM?
Hope this clarifies my question.
Thanks for all. Kind regards,
  Imanol

Similar Messages

  • MTD(Month To Date) and YTD(Year To Date) with one example

    can any ont Explain about MTD(Month To Date) and YTD(Year To Date) with one example plz

    Hi,
    Can you please elaborate.
    MTD is from the 1st of the current month till today's date.
    YTD is from 1st Jan till today's date.
    If you trying to build this is query. Create restricted key figure and put restriction on calday with a customer exit for the same.
    Thanks,
    S

  • Hi, I have iphone 4s and is up to date with ios7 but when I change my ring tone again ring the default ring tone

    Hi, I have iphone 4s and is up to date with ios7 but when I change my ring tone again ring the default ring tone
    in the setting shows the ring tone i,ve chosen

    I have been on chat and a telephone conversation with my internet provider SHAW.CA and they cannot seem to assit.
    I do appreciate your replies. When you talk about Exchange Server, do you mean"Microsoft Exchange" because that is what I used to set up mail on iPhone? I also tried iCloud, but i did not like the way you have to choose sending  "from" each time you send an email. I currently use 2 accounts,one for business, one personal.
    In response to your above reply; I went to "mailbox" - sycronise account", but nothing happened.
    Am I missing some other setting perhaps. I did "enable mobile" on internet provider webmail.

  • Want to change payer and update credit limit data with out delete documents

    Hi Expert,
    I have a problem that user feed 50-60 documents ( Sale order & delivery ) with wrong payer. Now we want to change payer and shift credit limit data ( open sale order , open delivery ) from old payer to new payer is any option for this.
    Thanks in advance
    Regards
    Suresh Kumar

    Hi
    Ideally in your case, you may have to delete the delivery documents and then recreate the deliveries after updating the payer in the sales order. This is because the source for the partner function in Delivery will be mostly updated as "from sales order" and hence it is not possible to change the payer in the delivery document.
    In this case, you have to first find out the relevant delivery documents and delete them
    Then you can change the partners in the sales order
    Finally you can recreate the delivery documents.
    However I would request you to do the following test before following this.
    In the SO, change the payer without deleting the delivery. If the partner in delivery gets changed automatically then it is fine. You can ensure this by checking the delivery in DISPLAY mode.
    If payer is not changing automatically then go to delivery in CHANGE mode and now check it. If the payer changes automatically now, you are spared with the pain of deleting and recreating deliveries once again.
    If both of them fails, then the only way is to delete deliveries first, change payer in SO and then recreate deliveries.
    This is applicable only if PGI is not yet done.

  • How do I Identify Lead and Lag in consecutive dates with multiple values?

    I am using:
    Oracle SQL Developer (3.0.04)
    Build MAin-04.34
    Oracle Database 11g
    Enterprise Edition 11.2.0.1.0 - 64bit Production
    I would like to identify the Lead and Lags based on two groups.
    The groupping is that multiple C_ID can be found in a Single W_ID
    and that multiple D_VAL can be found in C_ID
    So I would like to identify and mark with "Lead" and "Lag" related to the "consecutivedaysc" (this already matches the D_VAL and C_ID very well) for example W_ID 2004 has C_ID 2059 with D_VAL of 44 for April 2 & 3, the consecutive days are 2 and I would like to correctly mark April 2 as the Lead and April 3 as the lag.
    Then I would like to mark the "Lead" and "Lag" independent of if there are multiple D_VAL on the same W_ID
    Example that I am having trouble with:
    W_ID 2285 on April 10 for C_ID 7847, I don't understand whay I can't get "Lag" in stead of a "Lead" realted to the consecutivedaysw
    I would like to eventually have it that the data gets summarized based on W_ID and sinlge (non-repeating) dt with Lead and Lags.
    table
    with t as (
    select 4592 U_KEY,0 D_VAL_PRESENT,2004 W_ID,to_date('4/1/2013','mm-dd-yyyy') dt,2059 C_ID, (null) D_VAL,0 GWID,13 GCID,1 CONSECUTIVEDAYSC,1 CONSECUTIVEDAYSW from dual union all
    select 4591,1,2004,to_date('4/2/2013','mm-dd-yyyy'),2059,44,1,11,2,13 from dual union all
    select 4590,1,2004,to_date('4/3/2013','mm-dd-yyyy'),2059,44,1,11,2,13 from dual union all
    select 4589,1,2004,to_date('4/4/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4588,1,2004,to_date('4/5/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4587,1,2004,to_date('4/6/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4586,1,2004,to_date('4/7/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4585,1,2004,to_date('4/8/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4584,1,2004,to_date('4/9/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4583,1,2004,to_date('4/10/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4582,1,2004,to_date('4/11/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4581,1,2004,to_date('4/12/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4580,1,2004,to_date('4/13/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 4579,1,2004,to_date('4/14/2013','mm-dd-yyyy'),2059,389,1,0,11,13 from dual union all
    select 1092,0,2686,to_date('4/1/2013','mm-dd-yyyy'),7210,(null),0,11,3,3 from dual union all
    select 3416,0,2686,to_date('4/1/2013','mm-dd-yyyy'),7211,(null),0,11,3,3 from dual union all
    select 18118,0,2686,to_date('4/1/2013','mm-dd-yyyy'),17391,(null),0,11,3,3 from dual union all
    select 1091,0,2686,to_date('4/2/2013','mm-dd-yyyy'),7210,(null),0,11,3,3 from dual union all
    select 3415,0,2686,to_date('4/2/2013','mm-dd-yyyy'),7211,(null),0,11,3,3 from dual union all
    select 18117,0,2686,to_date('4/2/2013','mm-dd-yyyy'),17391,(null),0,11,3,3 from dual union all
    select 1090,0,2686,to_date('4/3/2013','mm-dd-yyyy'),7210,(null),0,11,3,3 from dual union all
    select 3414,0,2686,to_date('4/3/2013','mm-dd-yyyy'),7211,(null),0,11,3,3 from dual union all
    select 18116,0,2686,to_date('4/3/2013','mm-dd-yyyy'),17391,(null),0,11,3,3 from dual union all
    select 1089,1,2686,to_date('4/4/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3413,1,2686,to_date('4/4/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18115,1,2686,to_date('4/4/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1088,1,2686,to_date('4/5/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3412,1,2686,to_date('4/5/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18114,1,2686,to_date('4/5/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1087,1,2686,to_date('4/6/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3411,1,2686,to_date('4/6/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18113,1,2686,to_date('4/6/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1086,1,2686,to_date('4/7/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3410,1,2686,to_date('4/7/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18112,1,2686,to_date('4/7/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1085,1,2686,to_date('4/8/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3409,1,2686,to_date('4/8/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18111,1,2686,to_date('4/8/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1084,1,2686,to_date('4/9/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3408,1,2686,to_date('4/9/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18110,1,2686,to_date('4/9/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1083,1,2686,to_date('4/10/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3407,1,2686,to_date('4/10/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18109,1,2686,to_date('4/10/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1082,1,2686,to_date('4/11/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3406,1,2686,to_date('4/11/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18108,1,2686,to_date('4/11/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1081,1,2686,to_date('4/12/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3405,1,2686,to_date('4/12/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18107,1,2686,to_date('4/12/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1080,1,2686,to_date('4/13/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3404,1,2686,to_date('4/13/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18106,1,2686,to_date('4/13/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 1079,1,2686,to_date('4/14/2013','mm-dd-yyyy'),7210,51,9,0,11,11 from dual union all
    select 3403,1,2686,to_date('4/14/2013','mm-dd-yyyy'),7211,51,9,0,11,11 from dual union all
    select 18105,1,2686,to_date('4/14/2013','mm-dd-yyyy'),17391,51,9,0,11,11 from dual union all
    select 17390,1,3034,to_date('4/1/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 17389,1,3034,to_date('4/2/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 17388,1,3034,to_date('4/3/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 17387,1,3034,to_date('4/4/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 17386,1,3034,to_date('4/5/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 7305,1,3034,to_date('4/6/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
    select 17385,1,3034,to_date('4/6/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 14123,1,3034,to_date('4/6/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
    select 17384,1,3034,to_date('4/7/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 17383,1,3034,to_date('4/8/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 7302,1,3034,to_date('4/9/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
    select 17382,1,3034,to_date('4/9/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 14120,1,3034,to_date('4/9/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
    select 7301,1,3034,to_date('4/10/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
    select 17381,1,3034,to_date('4/10/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 14119,1,3034,to_date('4/10/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
    select 7300,1,3034,to_date('4/11/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
    select 17380,1,3034,to_date('4/11/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 14118,1,3034,to_date('4/11/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
    select 7299,1,3034,to_date('4/12/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
    select 17379,1,3034,to_date('4/12/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 14117,1,3034,to_date('4/12/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
    select 7298,1,3034,to_date('4/13/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
    select 17378,1,3034,to_date('4/13/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 14116,1,3034,to_date('4/13/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual union all
    select 7297,1,3034,to_date('4/14/2013','mm-dd-yyyy'),5394,44,0,0,7,14 from dual union all
    select 17377,1,3034,to_date('4/14/2013','mm-dd-yyyy'),5395,298,0,0,14,14 from dual union all
    select 14115,1,3034,to_date('4/14/2013','mm-dd-yyyy'),22421,44,0,0,7,14 from dual
    )the script that I am using:
    select
    t.*/
    case
      when lag(dt) over(partition by c_id, d_val order by dt, u_key)+1 = dt
        then'Lag'
      when lead(dt) over(partition by c_id, d_val order by dt, u_key)-1 = dt
        then 'Lead_1'
      when consecutivedaysc = 1
        then'Lead_3'
      else 'wrong'
    end LeadLagD_VAL,
    case
      when lag(dt) over(partition by w_id, c_id, d_val_present,gwid order by dt)+1 = dt
        then'Lag'
      when lead(dt) over(partition by w_id, c_id, d_val_present, gwid order by dt)-1 = dt
        then 'Lead_A'
      when consecutivedaysw = 1
        then 'Lead_B'
      else 'wrong'
    end Lead_Lag2
    from t
    order by
    W_ID,
    dt asc,
    C_ID asc
    ;the results should look like this (but haveing issues)
    u_key     D_VAL_PRESENT     W_ID     C_ID          DT          D_VAL     GWID     GCID     CONSECUTIVEDAYSC     CONSECUTIVEDAYSW     LEADLAGD_VAL     LEAD_LAG2
    4592     0          2004     2059          01-APR-13          0     13     1               1               Lead_1          Lead_A
    4591     1          2004     2059          02-APR-13     44     1     11     2               13               Lead_1          Lead_A
    4590     1          2004     2059          03-APR-13     44     1     11     2               13               Lag          Lag
    4589     1          2004     2059          04-APR-13     389     1     0     11               13               Lead_1          Lag
    4588     1          2004     2059          05-APR-13     389     1     0     11               13               Lag          Lag
    4587     1          2004     2059          06-APR-13     389     1     0     11               13               Lag          Lag
    4586     1          2004     2059          07-APR-13     389     1     0     11               13               Lag          Lag
    4585     1          2004     2059          08-APR-13     389     1     0     11               13               Lag          Lag
    4584     1          2004     2059          09-APR-13     389     1     0     11               13               Lag          Lag
    4583     1          2004     2059          10-APR-13     389     1     0     11               13               Lag          Lag
    4582     1          2004     2059          11-APR-13     389     1     0     11               13               Lag          Lag
    4581     1          2004     2059          12-APR-13     389     1     0     11               13               Lag          Lag
    4580     1          2004     2059          13-APR-13     389     1     0     11               13               Lag          Lag
    4579     1          2004     2059          14-APR-13     389     1     0     11               13               Lag          Lag
    1092     0          2686     7210          01-APR-13          0     11     3               3               Lead_1          Lead_A
    3416     0          2686     7211          01-APR-13          0     11     3               3               Lead_1          Lead_A
    18118     0          2686     17391          01-APR-13          0     11     3               3               Lead_1          Lead_A
    1091     0          2686     7210          02-APR-13          0     11     3               3               Lag          Lag
    3415     0          2686     7211          02-APR-13          0     11     3               3               Lag          Lag
    18117     0          2686     17391          02-APR-13          0     11     3               3               Lag          Lag
    1090     0          2686     7210          03-APR-13          0     11     3               3               Lag          Lag
    3414     0          2686     7211          03-APR-13          0     11     3               3               Lag          Lag
    18116     0          2686     17391          03-APR-13          0     11     3               3               Lag          Lag
    1089     1          2686     7210          04-APR-13     51     9     0     11               11               Lead_1          Lead_A
    3413     1          2686     7211          04-APR-13     51     9     0     11               11               Lead_1          Lead_A
    18115     1          2686     17391          04-APR-13     51     9     0     11               11               Lead_1          Lead_A
    1088     1          2686     7210          05-APR-13     51     9     0     11               11               Lag          Lag
    3412     1          2686     7211          05-APR-13     51     9     0     11               11               Lag          Lag
    18114     1          2686     17391          05-APR-13     51     9     0     11               11               Lag          Lag
    1087     1          2686     7210          06-APR-13     51     9     0     11               11               Lag          Lag
    3411     1          2686     7211          06-APR-13     51     9     0     11               11               Lag          Lag
    18113     1          2686     17391          06-APR-13     51     9     0     11               11               Lag          Lag
    1086     1          2686     7210          07-APR-13     51     9     0     11               11               Lag          Lag
    3410     1          2686     7211          07-APR-13     51     9     0     11               11               Lag          Lag
    18112     1          2686     17391          07-APR-13     51     9     0     11               11               Lag          Lag
    1085     1          2686     7210          08-APR-13     51     9     0     11               11               Lag          Lag
    3409     1          2686     7211          08-APR-13     51     9     0     11               11               Lag          Lag
    18111     1          2686     17391          08-APR-13     51     9     0     11               11               Lag          Lag
    1084     1          2686     7210          09-APR-13     51     9     0     11               11               Lag          Lag
    3408     1          2686     7211          09-APR-13     51     9     0     11               11               Lag          Lag
    18110     1          2686     17391          09-APR-13     51     9     0     11               11               Lag          Lag
    1083     1          2686     7210          10-APR-13     51     9     0     11               11               Lag          Lag
    3407     1          2686     7211          10-APR-13     51     9     0     11               11               Lag          Lag
    18109     1          2686     17391          10-APR-13     51     9     0     11               11               Lag          Lag
    1082     1          2686     7210          11-APR-13     51     9     0     11               11               Lag          Lag
    3406     1          2686     7211          11-APR-13     51     9     0     11               11               Lag          Lag
    18108     1          2686     17391          11-APR-13     51     9     0     11               11               Lag          Lag
    1081     1          2686     7210          12-APR-13     51     9     0     11               11               Lag          Lag
    3405     1          2686     7211          12-APR-13     51     9     0     11               11               Lag          Lag
    18107     1          2686     17391          12-APR-13     51     9     0     11               11               Lag          Lag
    1080     1          2686     7210          13-APR-13     51     9     0     11               11               Lag          Lag
    3404     1          2686     7211          13-APR-13     51     9     0     11               11               Lag          Lag
    18106     1          2686     17391          13-APR-13     51     9     0     11               11               Lag          Lag
    1079     1          2686     7210          14-APR-13     51     9     0     11               11               Lag          Lag
    3403     1          2686     7211          14-APR-13     51     9     0     11               11               Lag          Lag
    18105     1          2686     17391          14-APR-13     51     9     0     11               11               Lag          Lag
    17390     1          3034     5395          01-APR-13     298     0     0     14               14               Lead_1          Lead_A
    17389     1          3034     5395          02-APR-13     298     0     0     14               14               Lag          Lag
    17388     1          3034     5395          03-APR-13     298     0     0     14               14               Lag          Lag
    17387     1          3034     5395          04-APR-13     298     0     0     14               14               Lag          Lag
    17386     1          3034     5395          05-APR-13     298     0     0     14               14               Lag          Lag
    7305     1          3034     5394          06-APR-13     44     0     0     7               14               Lead_1          Lag
    17385     1          3034     5395          06-APR-13     298     0     0     14               14               Lag          Lag
    14123     1          3034     22421          06-APR-13     44     0     0     7               14               Lead_1          Lag
    17384     1          3034     5395          07-APR-13     298     0     0     14               14               Lag          Lag
    17383     1          3034     5395          08-APR-13     298     0     0     14               14               Lag          Lag
    7302     1          3034     5394          09-APR-13     44     0     0     7               14               Lead_1          Lag
    17382     1          3034     5395          09-APR-13     298     0     0     14               14               Lag          Lag
    14120     1          3034     22421          09-APR-13     44     0     0     7               14               Lead_1          Lag
    7301     1          3034     5394          10-APR-13     44     0     0     7               14               Lag          Lag
    17381     1          3034     5395          10-APR-13     298     0     0     14               14               Lag          Lag
    14119     1          3034     22421          10-APR-13     44     0     0     7               14               Lag          Lag
    7300     1          3034     5394          11-APR-13     44     0     0     7               14               Lag          Lag
    17380     1          3034     5395          11-APR-13     298     0     0     14               14               Lag          Lag
    14118     1          3034     22421          11-APR-13     44     0     0     7               14               Lag          Lag
    7299     1          3034     5394          12-APR-13     44     0     0     7               14               Lag          Lag
    17379     1          3034     5395          12-APR-13     298     0     0     14               14               Lag          Lag
    14117     1          3034     22421          12-APR-13     44     0     0     7               14               Lag          Lag
    7298     1          3034     5394          13-APR-13     44     0     0     7               14               Lag          Lag
    17378     1          3034     5395          13-APR-13     298     0     0     14               14               Lag          Lag
    14116     1          3034     22421          13-APR-13     44     0     0     7               14               Lag          Lag
    7297     1          3034     5394          14-APR-13     44     0     0     7               14               Lag          Lag
    17377     1          3034     5395          14-APR-13     298     0     0     14               14               Lag          Lag
    14115     1          3034     22421          14-APR-13     44     0     0     7               14               Lag          Lag     I place the "wrong" showing that neither the when conditions were no able to work.
    any suggestions on a better direction for me to solve this?
    Edited by: 1004407 on May 23, 2013 1:16 PM
    Then I am trying to get this, not to include C_ID
    u_key     D_VAL_PRESENT     W_ID          DT          CONSECUTIVEDAYSW     LEAD_LAG2
    4592     0          2004          01-APR-13     1               Lead_A
    4591     1          2004          02-APR-13     13               Lead_A
    4590     1          2004          03-APR-13     13               Lag
    4589     1          2004          04-APR-13     13               Lag
    4588     1          2004          05-APR-13     13               Lag
    4587     1          2004          06-APR-13     13               Lag
    4586     1          2004          07-APR-13     13               Lag
    4585     1          2004          08-APR-13     13               Lag
    4584     1          2004          09-APR-13     13               Lag
    4583     1          2004          10-APR-13     13               Lag
    4582     1          2004          11-APR-13     13               Lag
    4581     1          2004          12-APR-13     13               Lag
    4580     1          2004          13-APR-13     13               Lag
    4579     1          2004          14-APR-13     13               Lag
    1092     0          2686          01-APR-13     3               Lead_A
    1091     0          2686          02-APR-13     3               Lag
    1090     0          2686          03-APR-13     3               Lag
    1089     1          2686          04-APR-13     11               Lead_A
    1088     1          2686          05-APR-13     11               Lag
    1087     1          2686          06-APR-13     11               Lag
    1086     1          2686          07-APR-13     11               Lag
    1085     1          2686          08-APR-13     11               Lag
    1084     1          2686          09-APR-13     11               Lag
    1083     1          2686          10-APR-13     11               Lag
    1082     1          2686          11-APR-13     11               Lag
    1081     1          2686          12-APR-13     11               Lag
    1080     1          2686          13-APR-13     11               Lag
    1079     1          2686          14-APR-13     11               Lag
    17390     1          3034          01-APR-13     14               Lead_A
    17389     1          3034          02-APR-13     14               Lag
    17388     1          3034          03-APR-13     14               Lag
    17387     1          3034          04-APR-13     14               Lag
    17386     1          3034          05-APR-13     14               Lag
    7305     1          3034          06-APR-13     14               Lag
    17384     1          3034          07-APR-13     14               Lag
    17383     1          3034          08-APR-13     14               Lag
    7302     1          3034          09-APR-13     14               Lag
    7301     1          3034          10-APR-13     14               Lag
    7300     1          3034          11-APR-13     14               Lag
    7299     1          3034          12-APR-13     14               Lag
    7298     1          3034          13-APR-13     14               Lag
    7297     1          3034          14-APR-13     14               Lag     then into this (which I would use where Lead_Lag2 = "Lead_A"
    u_key     D_VAL_PRESENT     W_ID          DT          CONSECUTIVEDAYSW     LEAD_LAG2
    4592     0          2004          01-APR-13     1               Lead_A
    4591     1          2004          02-APR-13     13               Lead_A
    1092     0          2686          01-APR-13     3               Lead_A
    11089     1          2686          04-APR-13     11               Lead_A
    17390     1          3034          01-APR-13     14               Lead_A     but onething at a time.
    Thanks for point out the errors Frank, always helpful to know what others see.
    Edited by: 1004407 on May 23, 2013 2:36 PM
    Edited by: 1004407 on May 23, 2013 4:01 PM

    Is this the first set you expect?
    SQL> with flagged as
      2  (
      3    select w_id,d_val,dt,u_key,
      4           case when lag(dt) over(partition by w_id,d_val order by dt,u_key)
      5                       in (dt,dt-1)
      6                then 0
      7                else 1
      8           end flg
      9    from t
    10  ),
    11  summed as
    12  (
    13    select w_id,d_val,dt,u_key,
    14           sum(flg) over(order by w_id,d_val nulls first,dt,u_key) sm
    15    from flagged
    16  ),
    17  day_count as
    18  (
    19  select  w_id,d_val,dt,u_key,count(distinct dt) over(partition by sm) cnt
    20  from summed
    21  )
    22  select w_id,d_val,dt,u_key,cnt
    23  from day_count
    24  order by w_id,d_val nulls first,dt,u_key;
          W_ID      D_VAL DT             U_KEY        CNT
          2004            01-APR-13       4592          1
          2004         44 02-APR-13       4591          2
          2004         44 03-APR-13       4590          2
          2004        389 04-APR-13       4589         11
          2004        389 05-APR-13       4588         11
          2004        389 06-APR-13       4587         11
          2004        389 07-APR-13       4586         11
          2004        389 08-APR-13       4585         11
          2004        389 09-APR-13       4584         11
          2004        389 10-APR-13       4583         11
          2004        389 11-APR-13       4582         11
          2004        389 12-APR-13       4581         11
          2004        389 13-APR-13       4580         11
          2004        389 14-APR-13       4579         11
          2686            01-APR-13       1092          3
          2686            01-APR-13       3416          3
          2686            01-APR-13      18118          3
          2686            02-APR-13       1091          3
          2686            02-APR-13       3415          3
          2686            02-APR-13      18117          3
          2686            03-APR-13       1090          3
          2686            03-APR-13       3414          3
          2686            03-APR-13      18116          3
    .....

  • HT4623 Can you download and update an IOS 6 on an IPad1. I Tunes keeps telling me it up to date with version 5.1.1

    Can an IPad 1 be updated with an IOS6?

    See the chart below to determine whether you can upgrade your device and what you can upgrade to.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                       iOS 3.1.3
    iPhone 3G                                    iOS 4.2.1
    iPhone 3GS                                 iOS 6.1
    iPhone 4                                       iOS 6.1
    iPhone 4S                                    iOS 6.1
    iPhone 5                                       iOS 6.1
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1
    iPod Touch 5                               iOS 6.1
    iPad 1                                           iOS 5.1.1
    iPad 2                                           iOS 6.1
    iPad 3                                           iOS 6.1
    iPad 4                                           iOS 6.1
    iPad Mini                                      iOS 6.1
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • Can you be on a call and use the internet/data with 4g LTE?

    I am not currently in a 4g area so I can't test this out and answer my own question.  But with the LTE network can we be on a call and do other things now?

    Yes, but only in a 4G area. Both the 4G and the CDMA radio are used, each for a different function; CDMA for voice, 4G for data.

  • Flash keeps crashing and now its saying data execution prevention has closed adobe flash player

    Flash has always given me alot of problems. adobe flash would ocassionaly crash through out the day. i usual refresh the page and its all good for a little while. but now its closing/crashing on every single page im going to. its also saying 'to help protect your computer, data execution prevention has closed adobe flash player'. i was using 11.9 r900. with all the problems i tried downloading the newer 12.0 r0. its made no difference.
    My computer is Windows vista 32 bit
    i use firefox
    problem originaly affected pages with videos on it but now its effecting every single page i open and i get tons of pop ups and alerts saying crashed, closed, stopped working.
    what can i do to stop this problem?

    DEP (Data Execution Prevention) is Windows "protecting you from yourself".
    http://windows.microsoft.com/en-us/windows7/Change-Data-Execution-Prevention-settings?Sign edIn=1
    The options to disable it are there... but "only if you trust yourself not to blow up the whole Internet" (sarcasm).

  • HT1600 keeps flashing and shows a music icon with a plug is on the screen. What do I do?

    Box keeps flashing after I have waited a hour. Music icon appeared with a plug. What does that mean?

    This explains it you you.
    http://support.apple.com/kb/HT4053
    You have to connect the iPad to your computer with the supplied cord and be running iTunes on the computer. You need the latest version of iTunes which you seem to have - but read the article.

  • My ipod 4 16g keeps freezing and is up to date

    My Ipod 4 keeps freezing any suggestions just purchased at christmas and is operating on 6.0.1 system

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • Vim keeps freezing and I cannot highlight text with my mouse

    title says it all.  Vim will freeze on me randomly.  I was having X issues earlier but stopped using the nvidia driver and that seemed to fix that, but now Vim freezes.  I'll be in Insert mode and it simply will not accept any of my keystrokes or attempts to esc to command mode.
    Eventually it'll unfreeze and then process all the keys I pressed while it was frozen (about 1-2 minutes later).
    The only thing going on in my .vimrc is a color scheme.  This happens in urxvt, in an ssh shell, and in screen.   
    And for some reason I can't used my mouse to highlight text in vim either in all the shells previously listed.

    Try resetting the SMC and PRAM.
    Barry

  • HT4623 my ipad keeps saying that is up to date with iso 5, it will not update to ios6?

    i cannot update my ipad to ios6. it keep saying the latest version is ios 5

    If you're using the original iPad, that's correct.
    (74974)

  • To Call Another Form and Save Related MAster Data from a Transaction Form

    Hi
    Our project requires that forms for creating masters be called whenever the value (Key Value) being referenced in other forms are not found. For doing this I had used the When-Validate-Item Trigger and checked for the key value in the master tables and if not present, I use the Call_Form method to call the master form and create the key value and then come back to the Form in which I was working to continue processing the rest of the data.
    It works well if the CAlling forms is in INSERT MODE but Not in UPDATE MODE ( returns a message A Calling Form has unapplied Changes, Cannot Save data (Error: FRM-40403)).
    This same feature I tried to work it out around with a Key-Next-Item Trigger, it works fine for both the cases but as long as the user tabs out of the field from keyboard controls like the Enter Key or the Tab Key. But in case he wishes to click on the next field or some other button with a mouse OR he uses a keyboard shortcut to do some other operation viz. F10 for saving data, the trigger is not fired and that returns a ORACLE error (in case a database Integration issue arises) OR saves an invalid data.
    I would like to know what kind of triggers could we write to exactly call a master form to save a new key value irrespective of whether the calling form is working in INSERT mode or QUERY Mode.
    One way to do it is to use EXIT_FORM(DO_COMMIT, NO_ROLLBACK). But if the Primary/Calling form is closed without a Commit, then the related Master DAta is also Not Saved.
    Please Let me know if we can save the master data whatever be the state of the CAlling Form permanently.
    Thanks and Regards

    You are going to need to POST in the Called Form rather than committing (and make sure that you do not rollback when you exit).
    The Post will insert the master record into the DB but it will not be committed until you issue the commit in the Calling Form.

  • I can't sync/back up iPhone data to my computer b/c iPhone screen is shattered and i cant unlock it to enter in my passcode. How can I sync my broken iPhone with my computer and back up my data so I can sync and transfer the data to my replacement iPhone?

    I can't sync my iPhone and back up my data with my computer because iTunes says to enter the passcode into my iPhone to unlock it, but I am unable to unlock and enter in my passcode on my iPhone because the screen is shattered. I have my replacement iPhone with me and I'm not going to activate it until I can sync/get the data from my broken iPhone. I have the envelope to send my broken iPhone back to the Verizon store or whatever so that's not a problem. I just can't sync my old iPhone with my computer.
    Thanks.

    No I haven't synced my iPhone with the computer I'm currently using. The computer that I normally sync my iPhone with is being repaired.
    I read a nearly identical question to mine (in which you answered) and I found my the answer. Thanks!
    Now I have a few more questions: If I mail my broken iPhone to Asurion, will I be able to get my data off of my iPhone once Asurion has it? And what will happen to my old iPhone and the data on it if I activate my replacement iPhone? Will my broken iPhone just become de-activated and will the data be erased or lost or something? Could I still sync it (with the computer ir originally synced with) and back up the data?
    Thanks.

  • How to include print date with time on SkillBuilders Schedule Plug In?

    Hi,
    Do you have an idea how to include and get the print date with time on the SkillBuilders Plug In? It shows me the date only, time not included. Have tried to put "HH24:MI", "HH24MI" or Tochar(HH24:MI)? No result??
    select p.fullname, sbip_schedule.start_date(e.event_schedule) start_date
    , sbip_schedule.end_date(e.event_schedule) end_date
    , sbip_schedule.duration_seconds(e.event_schedule) duration_seconds
    , sbip_schedule.calendar_summary(e.event_schedule) calendar_summary
    from app_events e
    Thanks!

    I forget to clarify I am looking for the answer is how to get the print of date with time, Start date with time and End Date with time.

Maybe you are looking for