Any reason Iterator does not extend Iterable?

This has been knawing at me for a few weeks now (like a spinter in my mind). Is there any reason Sun did not have Iterator extend Iterable in 1.5? It seems to me that the for-each loop would operate perfectly on an Iterator. Yet, since Iterator is in no way related to Iterable (which even from a linguistic standpoint seems downright odd), I can't do it. I did write the following:
public final class SimpleIterator<E> extends Object implements Iterable<E>, Iterator<E> {
     private final Iterator<E> nested;
     public SimpleIterator(final Collection<E> nested) {
          super();
          this.nested = Collections.unmodifiableCollection(nested).iterator();
     public final boolean hasNext() {
          return nested.hasNext();
     public final E next() {
          return nested.next();
     public final void remove() {
          throw new UnsupportedOperationException("SimpleIterator is immutable");
     public final Iterator<E> iterator() {
          return nested;
}But IMO the above seems like a hack. I have two questions:
Is the above safe (e.g., am I breaking some hidden rule in generics)?
Why didn't Sun have Iterator extend Iterable?- Saish

I think we should also consider that an Iterator has state. Generally when we talk about an Iterable we're referring to something like a Collection which may return an Iterator to iterate over the Collection. If Iterator implemented Iterable it would indeed be able to iterate, but not over itself and not even necessarily over the Collection (or whatever it is) that the Iterator was supposed to iterate over to begin with. Instead it would be relegated to iterating over something else and potentially only from the position where it started with a fun side effect of silently interfering with it's use elsewhere. My personal opinion is that aside from the fact that it just doesn't make much sense for an Iterator to be Iterable since the Iterator is not usually what's being iterated over to begin with, it would also likely lead to various annoying bugs when the same iterator is being iterated over in more than one place with little apparent benefit. After all, how often to you have a reference to an Iterator but not an Iterable where you want to use a for-each loop? I've never had that happen.
Besides all of that, it would break backward compatibility. Sun making mistakes elsewhere does not justify it here.

Similar Messages

  • Yahoo e-mail page is distorted and hard to read (once in a while its OK) - box does not extend to the right side making e-mail info hard to read. Info displayed in the reading panel is OK.

    When I open the Yahoo email page, the box does not extend across the screen and the script is distorted making it hard to read the source, subject etc. The reading panel info reads OK. All other pages of Yahoo are not distorted.

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Hello everyone. I have recently installed a Samsung SSD (solid state hard drive) into my destop PC. For some reason Lightroom does not see it ? So i cannot ingest photos from it, or copy photos from a card to it. It is not listed as a drive option. LR see

    hello everyone. I have recently installed a Samsung SSD (solid state hard drive) into my destop PC. For some reason Lightroom does not see it ? So i cannot ingest photos from it, or copy photos from a card to it. It is not listed as a drive option. LR sees every other drive. My computer sees it fine, so i was able to create a catalogue there. Im running windows 8.1. Any ideas ? I will also add that this drive became corrupt and was repaired by Samsung. Maybe they didn't do a very good job.. ..

    Yes pretty much that, but to clarify sorry
    Opened Lightroom.
    Create new catalogue.
    This opened the Windows 8 file explorer window and Windows recognises the drive. So I was able to create a catalogue there and save.
    I then inserted my memory card into my card reader which LR recognised. I selected it, chose all the photos within and then navigated to the right side of the Lr import dialogue window to locate this problem drive as on this occasion i want the RAW files on the same drive as the lrcat. However all my other drives are listed but not this Samsung SSD.
    In addition this Samsung SSD is not listed a drive to import from in the same dialogue window.

  • 'My Application Page' is not allowed here because it does not extend class 'System.Web.UI.Page'

    I have a custom SharePoint 2010 solution that includes an aspx page. The aspx page in is in the /layouts folder within the solution and I created it by just adding an application page to the solution. I am trying to create a parent-child relationship between
    two different lists in SharePoint. From the parent I have a custom button on the ribbon that creates a child item with the ID of the parent stamped on it.
    The page is just a processing page that forwards on parameters from the parent to the new child item. (i.e. the ID value)
    The code generated when I add the aspx page is below:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    </asp:Content>
    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    </asp:Content>
    <asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server"> Processing Page </asp:Content>
    <asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" > Processing Page </asp:Content>
    The code behind is as follows:
    using System;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.Utilities;
    using System.Reflection;
    namespace MY.Solution.Layouts.MY.Solution
    public partial class processingpage : LayoutsPageBase
    protected void Page_Load(object sender, EventArgs e)
    try
    //Get a reference to the SPWeb object
    SPWeb oWeb = SPContext.Current.Web;
    //Use the Parameters That Are Passed In
    SPList thisList = oWeb.Lists[new Guid(Request.QueryString["List"])];
    SPListItem thisItem = thisList.GetItemById(int.Parse(Request.QueryString["ID"]));
    sContentType = thisItem["ContentType"].ToString();
    sContentTypeID = thisItem.ContentTypeId.ToString();
    if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["ID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/Blist" + "/NewForm.aspx?AIID=" + sAIAuditID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAIID = thisItem["AIID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/AList" + "/NewForm.aspx?AIID=" + sAIID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else if (sContentType == "Some Content Type")
    sContentTypeID = "";
    sAICID = thisItem["AICID"].ToString();
    //Redirect to newform.aspx with the Appropriate parameters.
    Context.Response.Redirect(oWeb.Url + "/Lists/CList" + "/NewForm.aspx?AICID=" + sAICID.ToString() + "&ContentTypeId=" + sContentTypeID + "&ParentItemID" + Context.Request["ID"]);
    else
    LoggingService.LogError("MY.Solution - Processing Page", "No Applicable Content Type Found.");
    catch (Exception ex)
    LoggingService.LogError("My.Solution - Processing Page", ex.Message);
    finally
    //DO SOME FINAL THINGS HERE WHEN REQUIRED.
    In the page I need to use Request.QueryString to get the values from the URL. But when I deploy the solution and load the page I get the error:
    'MY.Solution.Layouts.MY.Solution.processingpage' is not allowed here because it does not extend class 'System.Web.UI.Page'.
    When I change the line:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="MY.Solution.Layouts.MY.Solution.processingpage" MasterPageFile="~/_layouts/application.master" %>
    to inherit as follows:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" MasterPageFile="~/_layouts/application.master" %>
    it does not work either.
    If I change it to inherit like below:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="processingpage.aspx.cs" Inherits="System.Web.UI.Page" MasterPageFile="~/_layouts/application.master" %>
    it also does not work.
    What does this error actually mean?  And why doesn't the default code generated by Visual Studio work?

    @NadeemYousuf I have tried this too and it didn't work.  
    What does the error even mean?  And why does the error appear with default Visual Studio code?  In my example I have just added a basic application page with no other code in it and it still does not work.

  • I updated my computer to os x 10.5.8 so I can synchronize iphone with itunes.  For some reason computer does not noticed it has been updated.  Can anyone advise?

    I updated my computer to os x 10.5.8 so I can synchronize iphone with itunes.  For some reason computer does not noticed it has been updated.  Can anyone advise?

    Try what Terence Devlin posted in this topic:
    Terence Devlin
    Apr 14, 2015 11:21 AM
    Re: Is Iphoto gone ? i want it back!
    in response to Johannes666
    Recommended
    Go to the App Store and check out the Purchases List. If iPhoto is there then it will be v9.6.1
    If it is there, then drag your existing iPhoto app (not the library, just the app) to the trash
    Install the App from the App Store.
    Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.

  • I am not able to change credit card or billing info, it writes that I should alter the reason, but does not show me any problems. Im am not even able to put my account to no credit card. What is happening??

    For two days I have tried to bye some apps, navigation programs and charts within the program.
    I have tried on the Ipad and the PC, but I am not able to alter any info in my account, every time I try to change anything,the result is it writes that I should alter something beforeI can continue, but it does not show me what is wrong. I even tried make it without credit card and still it says that there is something wrong.
    I am not even able to delete the credit info I have on one of the Ipads, I have 4 i am working on. Please advise

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • My mobile-me email accout does not receieve any emails and does not show the file system

    hi - my mobile me email account does not recieve any emails - plus, the file structur is not available on my mac. I am using iphone and ipad, there at least the file structure is visible. I received the notification, that my icloud storage is not sufficiant, I extend this to 80 GB, should not be an issue anymore. However, does not work - I can however sent emails...many thanks for any help

    Just to confirm ... by Verizon Web Portal, you mean the Verizon branded Yahoo! web portal page?  Correct?    Just want to be sure you're looking in the right place.
    If you go into your account settings on Verizon, does it say there that you are the "Yahoo!" experience (probably also has an option listed to allow you to change to AOL as well).
    If it says Yahoo! and you are looking on the Yahoo! web portal inbox, then it sounds like your mapping over to the Yahoo! side is not setup properly within the Verizon cloud.   That would take a call to tech support to fix.
    Just for giggles, have you tried changing your mailbox password (and not recofniguring any mail clients, etc.).   Just to make sure something isn't quickly grabbing the mail and downloading it before you can see it via the web portal.   Might want to do that just as an experiment.
    Another think to try is creating a sub-account for email and see if mail gets delivered to the address.

  • I am having trouble using reverb of any kind; it does not sound natural, but rather "pixilated." Does anyone have any ideas for a solution? I have used Silververb and Space Designer and am having the same problem...

    I am using Logic Pro 9 with two MXL 990 microphones in my piano and a Rode NT1A for vocals. I have tried recording with added reverb and keeping getting not a natural reverb sound, but a rather "pixilated" one that does not sound natural. Does anyone have any ideas on how to solve this issue? I have tried using Silververb and Space Designer, and both result in the same problems. Thank you!

    This is asking for the impossible! It does not sound natural because maybe it isn't and in judging so whats your reference anyway. If you are in dire need of some natural sounding room you can go and record it yourself. But even then, the chances that it sounds like you imagined it, are very slim.
    There are very decent sounding reverberation plugins, based on artificial reverb generators or convolution-style, the last one is said to sound more 'natural' then the first one. Be it as it maybe, it really is like cooking food. You got all the ingredients for this delicious taste at hand and believe it or not to reach a satisfying result this is not enough, because if you do not mix the ingredients in the right proportion you will end up with a different dish you thought you'll get. This is exactly the same when one would mix audio, I dare say.
    So treat yourself to some good ingredients and the rest is up to you, namely: taste and experience!
    And looking at some of my past music productions I always find the same plugins for the 'ambient' task:
    Altiverb by Audio Ease when I have acoustic ensembles (classical music mostly), the Sony Oxford Reverb in studio productions, Bricasti when I have to deal with drums and MMultiBandReverb from MeldaProduction for all-round stuff. Thats the base I start from, after that I can end up with dozen Reverb plugins which basically all are doing the same thing but just in a tiny different way.

  • Chart size does not extend with the data

    Hi,
    One of my reports has a horizontal bar and the chart size does not grow with the data. The chart displays fine if I have minimal amount of data. If the data grows, the display is bizarre, it's just messed up. Is there an option I need to set? Please provide your inputs.
    Thanks
    Arch

    Hi,
    I tried with all these options, but no success. I remember I used to get full visible charts initially. Not sure what has happened charts are getting chopped off by at least 50px right and bottom. Interestingly When I export the chart to Excel it looks perfect.
    Any suggestion. Has anyone faced this issues. I am using 11.1.1.5 version.

  • Trial (student) for cs6 extended doesnt show up cs6 does, not EXTENDED

    the download assistant gives me options, but none show EXTENDED photoshop cs6, I am not sure if I should download the photoshop CS6 because I wanted the trial of the adobe photoshop CS6 extended version as I am a student insterested in trying it.

    There is only one installer for Photoshop CS6.  If you are using the trial and you meet or exceed the system requirements listed at http://www.adobe.com/products/photoshopextended/tech-specs.html then you will be given access to the Extended features after installation.  If your system does not meet the system requirements for Photoshop CS6 Extended then you will be given the option to try Photoshop CS6 instead.

  • IMac 20" 2007 display dims itself for no reason; "calibration" does not help

    Using a 2007 white plastic iMac with 20" screen and 2 GHz Intel Core Duo, running OSX 10.6.8.
    Has worked fine since being purchased many years ago.
    Recently a user "did something" (she can't remember what) which immediately caused the screen to become a bit dimmer. Whatever action she took, it wasn't something complicated -- she just accidentally struck a single key or clicked on something in the main Finder window. She was not fooling around with System Preferences or anything like that.
    Since that moment, I have not been able to successfully get the screen back to full brightness.
    Obviously, I have tried pressing the "brighter" and "dimmer" keys on the keyboard, and those do make the brightness go up and down, but the top brightness setting is much dimmer than it used to be. All the way to brightest setting = still noticeably dimmer than normal.
    And obviously I have tried using the "brightness" slider in the System Preferences > Displays > Display window. That also does indeed adjust the brightness up and down, but as with the keyboard brightness keys, the highest setting is still too dim.
    Readjusting the "Calibration" in the System Preferences > Displays does not help, even when going into Expert mode and adjusting every little aspect of the screen display's default settings. Those all seem to be about color balance anyway, not about brightness. I now have three different new calibration settings, and clicking back and forth between them and the default setting makes no real noticeable difference. Whatever setting I choose, it is still dimmer than it should be, even though in all my attempts at calibration I tried to make it brighter.
    Key detail: NEITHER THE SCREEN NOR THE BACKLIGHTING IS BROKEN OR DYSFUNCTIONAL
    I know this is true because the following thing happens consistently:
    When I put the computer to "sleep," and then wake it from sleep by pressing a random key or moving the mouse, the screen comes back on and momentarily it is at full brightness, but then "remembers" whatever mysterious settings it has, and then visibly dims itself.
    So the screen has the physical capability of being fully bright -- it's just that some System setting is telling it to be dim.
    Why? How can I change this? It is practically rendering the computer unusable. Help needed ASAP.

    Did you try running the computer from a copy/clone backup of the system?
    How about a testing with second Admin user account? Or, secure erase &
    a complete reinstall of the system from scratch? (With full backup in archive.)
    Check to see if there is a weak or dead PRAM battery on logic board?
    In your other similar thread, there were issues in replying to there based on
    problems with this site. A different reply was botched, and lost, so there it
    is. Then a followup didn't appear. But it may still, though not what I wanted.
    There still can be a hardware problem, not matter what someone else may
    have done with the settings while using the computer. Several builds of the
    early 20-24" Intel-based iMac had various graphic issues. Hardware failure.
    So that is unfortunate that even after significant time attempting to resolve
    the issue or the symptom, you haven't gained much traction. The time may
    have arrived to consider my suggestion to seek Apple trained specialists
    in an AASP, to look into this matter from a diagnostic standpoint. And be
    sure you have complete backup (clone, plus timemachine, etc) beforehand.
    Good luck & happy computing!

  • How do i sunc my calendar on my iphone with my computer?  It used to sync and now for some reason it does not.

    When I sync my iphone using a usb my calendar does not backup to my computer anymore.  What could be wrong?

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities
    sdelight8500 wrote:
    John, did you ever get a resolution to your question?  I have the same issue.  The computer is LONG gone and I have no way to recover the library from it.  What did you end up doing?

  • The issue is the monitor picture does not extend to all four corners?

    When turning on my computer, I get the HP blue screen with the display not extended to the corners, but when windows 7 came up, it would properly go to all four corners. Testing windows 10, after startup, once the display boots up it is not extending to all for corners? 

    AP7663, welcome to the forum.
    I believe that you don't have the correct driver for the monitor or the Aspect Ratio is set incorrectly; most likely the correct AR is 16:9.
    Please click the "Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • I have an ipod touch which i am trying to authorize to napster by rhapsody but it cannot find a device!  any help. it does not show in my computer but it works fine in itunes.

    any help on this would be appreciated.
    we think that is is because the system (xp) is not seeing the ipod in the my computer therefore the napster software has nothing to lach on to.!

    Does it say that it works with iOS devices (iPhone, iPod touch or iPhone)? iOS devices have a different format/file system than other iPods.

  • Depreciation does not extend after the Shortened Fiscal Year

    Fiscal Year variant setup in OB29:
    For Company Code assignment in FI year 2010 to 2020-
    Z6 year-dependent July - June, 4 special periods 12periods 4special periods
    For 2012 it is shortened to 11 periods, all other FY have 12 periods.
    For Asset Accounting FY Variant assigned to Company Code assignment in FI-AA -
    Z7 year-dependent July - June, 4 special periods 24periods 4special periods
    For 2012 it is shortened to 22 periods, all other FY have 24 periods.
    Period Control Method set is Z7/Z7/Z7/Z7
    where Z7 is defined in OAVH as (for year 2010, 2011, 2013, 2014-2020):
    Z7 Z7 15th of every month 2010 1 15 11
    Z7 Z7 15th of every month 2010 1 31 11
    Z7 Z7 15th of every month 2010 2 15 13
    Z7 Z7 15th of every month 2010 2 28 13
    Z7 Z7 15th of every month 2010 3 15 15
    Z7 Z7 15th of every month 2010 3 31 15
    Z7 Z7 15th of every month 2010 4 15 17
    Z7 Z7 15th of every month 2010 4 30 17
    Z7 Z7 15th of every month 2010 5 15 19
    Z7 Z7 15th of every month 2010 5 31 19
    Z7 Z7 15th of every month 2010 6 15 21
    Z7 Z7 15th of every month 2010 6 30 21
    Z7 Z7 15th of every month 2010 7 15 23
    Z7 Z7 15th of every month 2010 7 31 23
    Z7 Z7 15th of every month 2010 8 15 3
    Z7 Z7 15th of every month 2010 8 31 3
    Z7 Z7 15th of every month 2010 9 15 5
    Z7 Z7 15th of every month 2010 9 30 5
    Z7 Z7 15th of every month 2010 10 15 7
    Z7 Z7 15th of every month 2010 10 31 7
    Z7 Z7 15th of every month 2010 11 15 9
    Z7 Z7 15th of every month 2010 11 30 9
    Z7 Z7 15th of every month 2010 12 15 11
    Z7 Z7 15th of every month 2010 12 31 11
    (for year 2012 where it is a shortened FY):
    Z7 Z7 15th of every month 2012 1 15 13
    Z7 Z7 15th of every month 2012 1 31 13
    Z7 Z7 15th of every month 2012 2 15 15
    Z7 Z7 15th of every month 2012 2 28 15
    Z7 Z7 15th of every month 2012 3 15 17
    Z7 Z7 15th of every month 2012 3 31 17
    Z7 Z7 15th of every month 2012 4 15 19
    Z7 Z7 15th of every month 2012 4 30 19
    Z7 Z7 15th of every month 2012 5 15 21
    Z7 Z7 15th of every month 2012 5 31 21
    Z7 Z7 15th of every month 2012 6 15 0
    Z7 Z7 15th of every month 2012 6 30 0
    Z7 Z7 15th of every month 2012 7 15 1
    Z7 Z7 15th of every month 2012 7 31 1
    Z7 Z7 15th of every month 2012 8 15 3
    Z7 Z7 15th of every month 2012 8 31 3
    Z7 Z7 15th of every month 2012 9 15 5
    Z7 Z7 15th of every month 2012 9 30 5
    Z7 Z7 15th of every month 2012 10 15 7
    Z7 Z7 15th of every month 2012 10 31 7
    Z7 Z7 15th of every month 2012 11 15 9
    Z7 Z7 15th of every month 2012 11 30 9
    Z7 Z7 15th of every month 2012 12 15 11
    Z7 Z7 15th of every month 2012 12 31 11
    Depreciation in 2012 for assets are as expected with 11 periods. Half month's depreciation posted in the month of acquisition, and the following months are calculated accurately up to period 11.
    In FY 2013, June and July are in Period 1.
    For FI Posting, this is true and correct.
    For Depreciation Posting, only one year's depreciation is calculated but we need 1 year + 1 period (because the previous year was shortened by one period).
    Is there a setting to increase the depreciation or extend the depreciation for 1 period in 2013 that was reducde in 2012?       
    The shortened Fiscal Year changes are not in productiveness. The assets created are new assets such as in a normal operation when shortened Fiscal Year has been in place. As such, new assets have no expired useful life yet and it is newly capitalized.
    No user exits or custom development is in place.
    I have checked all the following notes, either they made no changes or were not relevant:
    58443
    183546
    397925
    1572545
    210214
    26891
    83213
    506632
    1021326
    1010159
    515571
    123026
    799719
    672255
    428292
    160093
    The depreciation calculation is lacking/missing one period of depreciation eventhough depreciation is not reduced.
    Please suggest any possible solution to this issue that we are facing. Thanks!

    Please check SPRO transaction AFAMA for the Depreciation Keys:
    Setting:
    Depr to the day
    No reduct in short year
    Period control according to fiscal years
    Check which is appropriate starting with the above order as I think this will fit your logic. But this depends on whether postings have already been made in the periods you want adjusted. If so then you need to use AFAR and choose repeat run after you have changed your config settings for the periods already posted. Additionally you may have problems if you have rolled forward your Fiscal Year in Assets and you will/may need to roll it back if possible before running AFAR etc.
    SAP normally calculates depreciation for straight line by taking the number of periods in a year and dividing total depreciation for that year by the periods and posting that figure for the month. If you set Depr to day then it will take into account different months day length etc.
    No reduc in short year would also solve your problem but would reflect the full year depreciation in the shortened year (12 periods not 11).
    Hope this helps if its not to late.

Maybe you are looking for