Diff of Non leading and Leading ledger

Hi,
In Ecc,6 version , what are differenecs between leading and non leading ledgers and its uses or applicability in different forms?
And How we use the concept of parrallel ledgers
Thanks,
Dharmveer

Hi,
Leading ledger is your base ledger, which will be bydefault present to your company code.
Non Leading Ledger are different from leading ledger, you can post documents to different fiscal year variant and in different currency.
say suppose you post a document in leading ledger with fiscal year variant V3, the same you can see in non leading ledger for a different fiscal year K4. Like wise u can maintain different currencies for Non Leading Ledger.
Non Leading Legers are nothing but parallel ledgers you are maintaining in special purpose ledger.
Difference is in ECC 6.0 directly for a document u can able to see in different ledgers at a time, how it posts.
Also Non Leading ledgers can be maintained as per IFRS and GAAP.
regards
srikanth

Similar Messages

  • Different segment in same document for leading and non-leading ledger

    Hi,
    Is it possible to have different segments derived in the same document for Leading and Non-leading ledgers.
    Is there an exit where we can substitute the segment originally derived so as to update only in one particular ledger
    Please suggest.

    Thanks Alex for your response.
    But would it be possible to update the segment only in one ledger, the other one carrying the default values coming from profit center?

  • Double Posting using Leading and Non-leading ledger...

    Gurus'
    I am at a client that is using the leading (0L) and non leading (PL) ledger set up.  Also, we have configure an additional document document (ZF) for posting to the (PL) ledger.  The following configuration settings have been made:
    1     US GAAP (group accounting) (PLN)                    1     0L
    2     Depreciation on tax limited value (cars)                    0
    3     PAS (Polish Accounting Standards) (PLN)                    2     PL
    10     CIT TAX (Polish taxation accounting) (PLN)                    3     PL
    30     Consolidated balance sheet in local currency PLN       0
    31     Consolidated balance sheet in group currency USD     0
    32     Book depreciation in group currency (USD)                    0
    Can someone explain why I am seeing a duplicate posting on the non leading ledger.  Using the settlement transaction from Project Systems or ABZON from the Asset Module I get the expected (AA) document type posting on the leading ledger but also on the non-leading ledger.  When I run ASKB, the document ZF is also posted on the non-leading ledger.
    Can someone help me figure this out?  Thanks,

    Hi,
    You can check BKPF (document header) and there is a field "ledger group" for which the document was posted onto. If there's no value in the field, it means the document was posted to all ledgers (leading and non leading).
    Kyoko

  • Asset report leading and non leading ledger wise

    Hi,
    We have implemented New Gl and also leading non leading. Leading fiscal year jan to dec and non leading fiscal year April to march. So how to take the asset report for the period of leading and nonleading.
    govind.

    Hi,
    You can execute the asset reports based on depreciation area which will represent a particular ledger.
    Regards,
    SDNer

  • Opening balance upload in Leading and NOn leading ledger.

    Hi All.
    We are in the phase of opening balance upload. We are using Leading and Non leading ledger concept. Our Leading ledger starts on 29th of March 2009 as per UK reporting and Non leading ledger starts from 1st April to 31st of March as per India reporting.
    We were going to upload the opening balance as on 22nd of Nov as per UK reporting. But here We stuck because as per India reporting our 2008 fiscal year has been closed on 31st of march 2009 also financial books has been closed. But due to UK reporting we are carrying 29th to 3st march 2009 P&L balances in Leading ledger which has been considered in the India Balance sheet ( has come in Profit and Loss Account).
    Here I am not able to understand that how I should upload the 29th to 31st march P&L balances in leading ledger because if I will upload these through F-02 or FB50 BDC than these will effect the India balances also. If I am using the FB01l or FB50L to upload the Non leading ledger balances, than system is not allowed me to upload the balances in open item management accounts. System prompt me following message.
    Postings to G/L accounts with open item management are not permitted
    Message no. FAGL_POST_SERVICE012
    Diagnosis
    You use G/L account 213702 in company code 7041 with open item management. However, postings are not permitted to G/L accounts in individual ledgers with open item management.
    Procedure
    If you have not yet made any postings to this account and if the account is to be used for closing processes in non-leading ledgers, deactivate the Open Item Management indicator in the company code data for the G/L account.
    Can any one tell me that how I can Achieve the same with correct P&L affect in Leading Ledger and correct effect in Non leading ledger Profit and loss account.
    Appreciate your immediate response.
    Many thanks

    Hi
    If your problem is solved, can you please let me know the solution for upload of customer, vendor and other open GL items in Non Leading Ledger.
    Regards
    Sourabh

  • Re: Segregate leading and non-leadingledger data in BI Cube

    Hello,
    I would like to share the following Scenario with you all:
    I want to extract leading ledger and non-leading ledger data into a BI cube. Sure, the answer is yes.
    Would it be possible to segregate both leading and non-leading ledger data within a BI cube? Or the only possibility is to load leading and non-leading ledger data into two different cubes?
    Please advise.
    Thanks
    RJ

    Hi RJ,
    Depending on what datasource you are using, it will provide a field that indicates the ledger. The new general ledger datasources provide the field RLDNR for this purpose, and you'll need to make sure to carry through this value to the BW DSO or Cube that you are using - [http://help.sap.com/saphelp_bic706sp01/helpdata/en/45/757140723d990ae10000000a155106/frameset.htm]
    Cheers,
    Ethan

  • 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
    .....

  • How to prohibit leading and traling whitespace in XML Schema

    I want to prohibit the use of leading and trailing whitespace in an element but besides that all other content is allowed.
    For examble <   word? > should give a validation error.
    I do not want to use
    <whiteSpace value="collapse"/>
    Because it doesn't give a validation error.
    Is it possible to make a pattern og in some other way solve my problem?
    Thanks in advance, Martin

    Here is an example schema snippet (not a complete schema!) that does what you want I think, using a regular expresssion pattern, allowing one or more non-white-space characters followed by an optional sequence of any character followed by one or more non-white-space characters:
    Code Snippet
            <xs:element name="foo" maxOccurs="unbounded">
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:pattern value="\S+(.*\S+)*"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:element>
    Here are some example elements with valid contents:
    Code Snippet
      <foo>a</foo>
      <foo>a b</foo>
      <foo>a b c d e f g</foo>
    And here some elements with invalid contents that validation would catch:
    Code Snippet
      <foo> a</foo>
      <foo>a </foo>

  • Trailing and Leading Spaces

    Hi we use file shares on a windows 2003 server for our storage for our macs. some of macs are 10.4 and some 10.5. We have a major problem in that when some of our windows users try and access these files they cant and even in some cases the files/folders disappear.
    After a lot of rooting around we found that the macs were creating these trailing spaces/leading spaces when they either accessed or created a folder on the windows share, please someone out there tell me there is something i can do to fix this and stop this from happening.
    cheers

    Hi,
    Purvesh K wrote:
    One another way using Regular Expressions!!!
    Assumes Alphabets or Numbers follow before and after the Space. If Special characters are to be included, query will have to be modified.This also assumes that the same column has to have both leading and training spaces. (Etbin's solution found rows where any column had either, not necessarily both, leading ad trailing spaces.)
    with data (col) as
    select 'first' from dual union all
    select 'first ' from dual union all
    select ' first ' from dual
    select *
    from data
    where regexp_like(col, '[[:space:]]+[[:alnum:]]+[[:space:]]+')
    COL  
    first Try adding
    select 'This has embedded spaces.' from dual union allto the sample data. The code above finds this row, even though it has neither leading nor trailing spaces.
    Remember that regular expressions are not anchored . The pattern can start and/or end anywhere in the string. In the example above, the substring ' has ' matches the pattern you gave. If you're using regular expressions, anchor them to the beginning and end of the string using ^ and $.
    So
    where regexp_like(col, '^[[:space:]].*[[:space:]]$')would be better. However, that would miss cols tha consisted of a single space. To include them:
    where regexp_like(col, '^[[:space:]](.*[[:space:]])?$')OP: If none of these solutons match your needs, then we don't understand your needs. Post a little sample data (CREATE TABLE and INSERT statements, or a WITH clause, like Purvesh used) and the results you want from that data.
    Regular expressions do wonderful things, but they don't do them very fast. If perfrmance is important, use TRIM (like Etbin suggested), or LIKE, or SUBSTR.

  • My iphone 4 isn not responding the screen is just showing a usb lead and the itunes symbol. When i plug it into my desktop mac and link it to itunes ,itunes is telling me the phone is in a restore mode .can i get it to respond without restoring ?

    my iphone 4 is not responding the screen is just showing a usb lead and the itunes symbol. when i plug it into my desktop mac and try to sync it to itunes ,itunes is telling me the phone is in a restore mode. How do i get it to respond without restoring the phone to new ? there is no option to restore with backup as i have not backed up any of the data on the phone any help would be greatly appreciated thanks

    http://support.apple.com/kb/HT1808
    You can't  not restore if you have reached this point

  • Upload of Campaign and Leads from flat file into SAP CRM system

    Hi Gurus,
    We need to upload Campaign and Leads from our legacy systems to SAP CRM systems. The source data will be available in the form of flat files (tab delimited)
    Please let me know the possible ways of doing this.
    Reward points are assured.
    Thanks in advance.

    Hi
    you can use external list management functionality in CRM 5.0 useing the flat file tab delimited you can upload the contacts and create business partners followed by lead transaction types with business partners created and also external list management will allow you to create target groups for executing the campaigns in SAP CRM
    please do reward points if helpful
    regards
    Dinaker vikas

  • Duplication check for Lead and Contact

    Hi,
    Can i confirm that, there is no duplication check for Lead and Contact during the new reacord adding?
    I also realise that during the Lead convertion, CRMOD also never check for duplication even i have existing contact available?
    Is there anyway for us to activate the duplication check during the Lead convertion?
    Regards,
    SK

    SK,
    System can check duplicate if you add external id for record (Lead and Contact).
    For more information please refer topic 'About record duplicates and external ids' on page no.1303 of OnDemand help.
    Hope this helps.
    Santosh

  • Complaints, leads and contacts are not shown in the account overview

    CRM 5.0, ICWebClient
    Hi,
    in ICWebClient (SAP Standard) there are two account overviews available. The second one provides an overview of complaints, campaigns, orders, leads and contacts related to a specific customer. Although there are several leads, complaints, orders and contacts related to a specific customer existing only complaints are shown in the overview table. The tables related to leads, orders and contacts are empty.
    Regards,
    AV

    hi!
    well i had the same "problem" but have you checked the format in which you saved your numbers. for example as you said you are using t-mobile austria whenever you save a number as 0699xxxxxxxx the iPhone usually wont show the caller id.
    what usually helps is when you always use the international-format
    for example if its an austrian number 0043 699 xxxxxxxx
    Or for a vienna-landline 0043 1 xxxxxxxx
    and so on and so forth. just try it with one or two contacts and see if that is solving your problem. it solved that problem for me and also somebody else.
    (by the way: im using t-mobile austria as well. but originally teh same happened to me with any other simcard i tried)
    hope that was of some help for you
    all the best und grüße aus dem 16ten

  • Linking Surveys with Leads and Opportunities

    Hi,
    We have a survey associated with each lead and opportunity i.e when creating either a lead or an opportunity there is a tab on the GUI in which we can fill up the survey when creating the lead/Opportunity and then save the transaction. The survey goes to a different Infoprovider and leads and opportunity to their respectice Infoproviders.
    We now want to link the survey answers to lead and opportunities. I tried infosets and there doesn't seem to be any linkage between these two . Any ideas or has anyone linked surveys to leads and survey to opportunities. Fyi we are on CRM 4.0 and BW 3.5
    Thanks.

    The CRM Surveys are fed into the cube 0WS_C01. If you have set the correct setting in the transaction CRM_SURVEY_SUITE, the survey results are extracted to the datasource 0SVY_DATA_1. Through the appropriate GUIDs the answers to the survey from the table CRM_SVY_ANSW (do not exactly remember the name) can be linked to the header GUID in CRMD_ORDERADM_H. (May be through the link table CRMD_LINK)
    Doniv

  • HT5957 When I tapped the update for ios 7.0.2 my ipad just has an itunes app centre page with the a charge lead and an arrow from the charge lead pointing to the itunes app. I cant do anything with it. I switch it off and on and it goes straight to the sa

    When I tapped on the ios 7.0.3 update, my screen went blank then an itunes app appeared centre page with a charge lead and an arrow pointing to the itunes app. When I switch it off and on again it just back to the same screen. been like this for 6 days now. Can anyone help?

    1)  Connect to iTunes on the computer you usually Sync with and Restore
    http://support.apple.com/kb/HT1414
    2)  If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/ht4097
    Note on Recovery Mode.
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    Once you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766
    NOTE:
    Make sure you have the Latest Version of iTunes Installed on your computer ( v 11.1)
    iTunes free download from www.itunes.com/download

Maybe you are looking for

  • How can I turn off autocorrect in Word 2013?

    I've read many messages related to this question, with various suggestions, but none of them work.  I find no tools/menu link by which I can find autocorrect options.  Left or right-clicking on "proofing" yields no means by which to access autocorrec

  • Apple Mail with defunct smtp trying to display 800 alerts or so

    Apple Mail, after upgrading to Maverick, now tries to display > 800 alerts for automatic mail forwards that it apparently now cannot send because of some issue I probably have to troubleshoot. It deadlocks to that behavior, too, so each time I force

  • Export project library to iPhoto

    I have created a rough montage in iMovie using only still photos. I need to hand the files and the running order over to a third party to finish the job. He may or may not be using iMovie. Is there a way to print a list of the images in the order tha

  • Group iMessage Issues?

    Is anyone else having issues with iMessage in iOS 8? Here are the problems I am having: - Some group messages are sent as iMessages and some are not, even though everyone in the group has an iPhone - Group messages are randomly adding or removing par

  • Executables throw a widows error when you close the application

    I have this problem on several of my labview executables.  I can open and runt eh program with no errors.  But when I close the program by any method, I get a pop up error in windows. Stating: "Application Name" has encountered a problem and needs to