Threshold quantity calculation for one previous periods

Hi,
There is a requirement to calculate the Threshold quantity if we give calender month(april 2007) it has to pick the back 12 months shipped quantity (month wise)
starts from march 2007 to feb 2006. and finds the active months(shipped quantity for that month shoulbe > 0) then it calculates the threshold quantity as
for eg.,
jan  feb  mar  apr may jun  jul   aug sep  oct nov dec  total
100 200 100  100 50   100 200  50  100  60 200  100 1360
threshod qty : (1360/12)*8 = 907
here 8 is threshold factor
jan  feb  mar  apr may jun  jul   aug sep  oct nov  dec  total
100 200    0  100 50   100 200     0  100  60 200  100 1210
threshod qty : (1210/10)*8 = 968
the selection screen input is calendar month eg., 04/2007  (april/2007)
Please give the logic for calculating the above with steps
please specify any FM for these.
Thanks in advance

Hi Viswa,
Thank you for your prompt reply. I tried with your answer, when I ran AFAB with posting period 1, I am getting below error.
"You want to carry out a repeat depreciation posting run in period 001. However, the last posting run was for period 006.
Start the repeat run again using period 006".
Kind Regards
Shanid

Similar Messages

  • Posting an unplanned depreciation run for the previous period

    Hi SDN forum,
    May I just ask if it's possible to run an unplanned posting run for a previous period wherein the depreciation run has already been executed?
    The scenario is more like a "repeat unplanned posting run"
    I can't seem to include this unplanned depreciation whenever I select the repeat run for the previous period.
    Please help.
    Thanks

    Hi
    Through T.Code: ABAA  you can able to post unplanned dep for previous period.
    Executing AFAB for previous
    1 - open FI Periods (OB52)
    2 - Post Unplanned Dep T.Code: ABAA
    3 - Run AFAB with Repeet run & Test run
    you feel it is ok with test run execute production run
    Regards
    Viswa

  • Accounting in the General ledger for a previous period after reconversion

    Hi experts!!
    We have just runned the conversion tool in Venezuela for our monetary reconversion. Now we are presenting some problems and we need to do some accounting in the general ledger for a previous period. It's seems that's not possible... what could we do???
    Thanks in advance,
    Frinee

    Hi,
    Depreciation Posted of only of the Previous Fiscal years
    can be reversed using ABZU Write-Up.
    ABZU -->Reverse the Past
    Dep. For current depreciation reversal you have no alternative except reversing
    co code depreciation document posted using OAGL and then repost it.
    Regards

  • I need the calculation for one about apple bought software. how do I receive this?

    I need the calculation for one about apple bought software. How do I receive this?
    Thank you for your answer.

    In iTunes,, go to the iTunes Store. Click on your account. Sign in and the details should be in the list in Purchase History.
    Russ

  • Negative stocks for the previous period when closed MM period

    hi,
    I try to use MMPV to close MM period, error message is displayed "
    Some materials have negative stocks for the previous period."
    how to solve this problem and what cause this message? why system allow negative stock?
    thanks

    Hi
    Negative stock means that for a material in your  plant stock is 0 on current posting date but you still want to  issue the material.
    So  in order to achieve this u need to activate the Negative stock for that material in material master and mark the setting of negative stock for the storage location.
    Using the Transaction OLMB ---Goods Receipt
    If you need further information
    Refer this link
    http://help.sap.com/saphelp_erp2004/helpdata/en/a5/63313343a211d189410000e829fbbd/frameset.htm
    rgds
    Chidanand

  • No authorization for posting previous period running a repeat depreciation

    Hi!
    We are working on 4.7 version, during a repeat depreciation posting run using AFAB transaction (RAPOST2000), error messages F5A 094 is issued because the user's account does not has authorization for posting on previous period.
    Exact Job Log Error from SM37 transaction:
    Period 003 in fiscal year 2008 is open for posting for the variant for posting periods 0020.  However, you do not have the required authorization.
    Please let me know what do I need check for fixing this issue.
    Thanks in advance.

    Hi,
    Please go through SAP notes:337493-Incor.mess.for missing master data authorztn.That notes should be helpful
    Thanks
    Aravind
    Assign points if useful

  • Variances for the Previous Period- Production Order Variances

    Dear All
    I am not able to settle the variances of Previous Period in Ko88. 
    The following steps I have done for the settling the variances
    1. KKS2- Production Order
    2. Ko88- Settlement of Variances
    If i settle the variances production order variances it is increase the stock and in the increase in the profit and loss account
    I need a suggestion there should not be any impact on the either in the profit and loss account and stock
    Please advise me
    Regards
    Ramesh

    Dear Vimal
    I would like to explain further more on this area.
    1. For V Material Item - When there is no stock it will be posted to Profit and Loss account
    2. For V Material Item- When there is a stock it will be posted to Balance sheet acccount- My question whether it can be posted to Profit and Loss account.  When there is a stock - What is the procedure to be followed.
    In further to that Settlement can be done only if the order is completed. settlement cannot be done if the order is not completed.
    I need to understand
    1. Whether V Material item available stock can be posted to Profit and Loss account.
    2. Whether this is based on Order completion.
    Thanks for your reply.
    Regards
    Ramesh

  • Income Tax not Calculated for one employee.

    Hi experts,
    we have updated our patch lvl upto 86. Budget Changes Note is applied already. Now the Problem is with one employee.
    Out of 1000 employees for one employee /436, /446 and /450 generated correctly with correct figure. But /460 is not generated.
    I can see in the log /451 is generated with the amount exactly as /450.
    Why system is not generating /460?
    Can anyone guide me?
    Regards
    Nasim

    Well the reaults are surprising as cross financial arrear /616 is only 1385.96 and relief generated by this is 18776. Which is simply not possible. Even in FY 2010-2011 relief should not be generated as relief only comes when employee is end up paying more taxes than last year tax on arrears. Now since tax slabs are increased, relief will not be egenrated.
    This issue you can check with OSS message.
    IF you want to deactivate the Section 89 relief implementation switch S89SW constant as 0 in table V_T511K. It may also activated on employee level, then you need to check IT0588/ subtype 4. Before deactivating it check out the impact after deactivation in case of retro as i may increase/ decrease the past tax.
    Please note that implementation level switch supposed to be activated/ deactivated only once in lifetime of SAP system.

  • Cost Estimate for the previous period

    Hi,
    For a material we have a inconsistency between Material Master and Info record in base unit of measure.
    in the material master: 1 piece = 1 mm
    in the info record: 1 piece = 1 m
    During the month of December,  user posted a goods receipt posting of this material: 625 m with an s-price-value of u20AC 668.750
    For the stock valuation in year-end closing he says he need  a right s-price calculation of the material in 2010.
    If not, he will post a depreciation of more than u20AC 600.000 for this material.
    Can we save a new calculation for Dezember 2010, if not what is the alternative? Can we suggest MR21?
    Thanks to share your thoughts.
    Kind Regards
    Umapathi G

    Hi Umapathi
    MR21 is your only option... You cant release new price in Dec 2010
    however, what I dint understand is this a purchased material or produced material?
    If it is a produced material, then reverse your GR, make corrections and post it again.. Else, you would have good amount of variances
    Regards
    Ajay M

  • Dax Calculating Same time previous period with nonstandard periods

    I need help dealing with prior period calculations where the periods are not standard.
    In our business we define these time periods based on 8 to 10 week periods that really have no correlation to standard weeks, months or quarters.  Additionally there may be some time between these periods that are not defined. For example:
    Period 1 (p1) = June 18 - Sept 2
    Period 2 (p2) = Sept 17 - Dec 9
    The length of the periods are variable and when one ends another does not necessarily begin.
    I need to figure out how to compare the sum of a metric in Period 2 with the sum of a metric in Period 1.
    I have a standard Date dimension. And I have a period deminsion with the period labels (p1, p2 etc.) the start date, the end date of the periods, and a column called previousPeriod that has the label of the prior period.
    Each Fact has a Period ID so that I can use period as a dimension.One of my measures is Sum(sales).
    I want it so that if I am viewing the Tabular cube by period, I can have the sum of sales for that period, and the prior one. I hope it is clear what I am trying to do.

    You should add to your Date table a column that contains an incremental number for each period, then write something like:
            CALCULATE
                [Sales],
                ALL
    ( 'Date' ),
                FILTER
                    ALL
    ( 'Date'[IncrementalPeriod] ),
                    'Date'[IncrementalPeriod]
                        =
    EARLIER ( 'Date'[IncrementalPeriod]
    ) - 1
    I suggest you this pattern that will be published on March 31 - it contains many more examples, including how to write the make this formula working also with a partial arbitrary selection of days in the selected period:
    http://www.daxpatterns.com/time-patterns
    Marco Russo http://www.sqlbi.com http://www.powerpivotworkshop.com http://sqlblog.com/blogs/marco_russo

  • Need to delete flag "quantity incomplete" for table COSP (periodic repost)

    Hello.
    Step 1. I writed-off fuel to Internal order(unit of measure Liter ) ,
    Step 2  Posted SKF,
    Step 3  Execute Actual periodic reposting.
    The issue is that receivers Internal orders has "empty" field quantity, it is because in table COSP  field MUVO (quantity incomplete)= 'X'.
    So I want to make it(MUVO) empty to see quantity in Receiver orders . How can I do this (BADI, user-exit), and what is the problem that I can face after that?
    By the way, I'm not going to post fuel in Milliliters.

    Hi,
      For primary cost elements, the system keeps a control record in Table COKA for each object, cost element, fiscal year, and origin, which defines for all postings in a fiscal year whether and in which unit of measure quantities are transferred to the totals record. Basically, the posted quantity (COEP-MBGBTR) is updated in the posted unit of measure (COEP-MEINB) in the line item. Whether the quantity is transferred to the totals record depends on the control record valid for the object. If the quantity is transferred to the totals record, the total quantity field (COEP-MEGBTR) is also filled in the line item.
      The control (COKA) record is created with the first posting in the fiscal year an cannot be changed during the year. In the cost element master record, you can store a default value for the unit of measure and set the "Manage quantity" indicator. If the indicator is set, the system sends a warning, if an actual posting is made without an entry for the unit of measure. If the unit of measure is changed subsequently in the cost element master, this does not affect quantity update, if there had already been postings in the fiscal year concerned.
    If another posting is made to the same cost element at a later time, the system checks whether the posted quantity can be converted to the unit defined in the COKA record. If this is the case, the quantity is converted accordingly (e.g. kg to t) and transferred to the totals record. Otherwise, it is not transferred. To indicate that there had been such a posting (which is not contained in the total quantity) in period xxx, the "Quantity incomplete" indicator (COSP-MUVxxx) is set in the totals record.
    Hope this information is helpful for you.
    regards
    Waman

  • Recalculation of Depreciation for the previous periods

    Hi All,
    I am new to this forum, I have one query regarding the recalculation of depreciation.
    Client wants to increase the life of the asset and depreciation change should be effected from 01/07/2010 (FY start). Depreciation has already posted from July to December 2010. We are following SLM & WDV methods.
    I know we have the options like smoothing and catchup. But client wants to update/post to respective periods and in AW01N for each period it should show the depreciation as per the change in life of the asset.
    It would be of great help, if you look into this matter.
    Thanks in advance
    Kind regards
    Shanid

    Hi Viswa,
    Thank you for your prompt reply. I tried with your answer, when I ran AFAB with posting period 1, I am getting below error.
    "You want to carry out a repeat depreciation posting run in period 001. However, the last posting run was for period 006.
    Start the repeat run again using period 006".
    Kind Regards
    Shanid

  • How to skip depreciation Calculation for one year

    Hi Experts
    I got requirement from One of My Client.
    Scenario:
    Fixed Asset Value: 100000
    Useful life: 10 years
    Per year depreciation: 10000
    Asset Purchase date: 01.04.2014
    Depreciation posted up to: 31.03.2015
    Depreciation not required from date: 01.04.2015 to 31.03.2016
    Again Depreciation Start date: 01.04.2016 based on life of the asset.
    Question: As per above information From period 01.04.2015 to 31.03.2015 not required any depreciation posting for this we assigned Asset shutdown in asset master data. if deselect the asset shut down check box again it considering for depreciation.
    As per my scenario we don't want whole one year depreciation.
    Regards
    Madhan Mohan

    Hi
    you should to add two interval in the asset master data under shut down tab " on main asset No. only "
    the first interval in start form 01.04.2015 and click on shutdown box beside this interval.
    and create another one from 01-04-2016 and remove he asset tick on shut down to allow the asset to operates again after the shutdown period elapsed ..
    Regards
    Mahmoud EL Nady

  • Cash Discount Calculated for One Line Item and not for Other

    Hi All,
    We have devloped a Z program which is used to Write of InterCompany AR and AP recon Account to another GL Account. In this program to clear line item we have created a BDC which calls t-code FB05. Thsi program is running perfectly fine for all company codes.
    There is new company code SG20 for which it is not clearing the line items. It has created a Session in SM35, when we analysed the seesin we found that for some line items system is calculating Cash Discount and for some other line items it is not but the payment Term is same for all the douments with 3% 14days.
    I need your help in understanding that why for some line items system calculates the Cash Discout where as for others it is not calculation..also the Posting Date is same for all the documents.
    Please advise what could be the reson for this.
    Thanks!
    Regards,
    VIvek Srivastava

    Hi
    Cash discount is calculated based on the combination of baseline date and payment term conditions.
    Hence please check the baseline date for all the documents, in which the cash discount is not appearing.
    In your case, the possible reasons could be that 1) baseline date is different between these documents or 2) payment terms cash % is manually modified in the line item of the documents.
    Regards

  • Expense claim creation for a previous period

    Hi Experts,
    Can anyone please help me on the below mentioned query?
    Employee has travel privilages maintained till 30.11.2011, on 1st dec 2011 he is trying to create an expense claim for dates ex. 15.11.2011 - 30.11.2011, however SAP system is not allowing him to create since there is no IT0017 record on 1st Dec 2011.
    Can anyone please guide a solution for the above scenario?
    Many thanks
    Best Regards,
    Kanika

    Dear,
    Check the below link which may helpful.
    PR05 - Infotype '0017' does not exist for YYYY/MM/DD
    Create Expense Report ended with error
    http://sap.ittoolbox.com/groups/technical-functional/sap-hr/infotype-p0017-could-not-be-read-1300176#M1305574
    http://www.sapfans.com/forums/viewtopic.php?f=11&t=335240&start=0&st=0&sk=t&sd=a
    Regards,
    Syed Hussain.

Maybe you are looking for

  • Dyamic execution of report for every month and data through mail.

    Dear Friends, We are using ECC6.00 With EHP4. My requirement is to send the list of pending notifications with the list details as appearing in transaction QM10. Every month i am supposed to change the from date and to date for example 01.07.2010 to

  • Edge Commons Spotlight not working any more on the new version of Edge Animate CC 2014.1

    Hi, i am trying to use the Edge Commons Spotlight but with the new version of Edge Animate cc 2014.1 is not working right. The result is a black transparent background with a little white spot on the center. Please help!!! CompositionReady: yepnope({

  • Webcam Problem

    Hi everyone. I'm new here so don't know I should post my problem here or not I'm having trouble with my built in cam on LENOVO N500. My camera software is not detecting any camera. When I go to Device Manager, its drivers are not there. There is noth

  • Set as default application

    how can we possibly set an application to run when a specified filetype are opened.. for example: when we open a txt file(Doubleclick), notepad will automatically be launched to view the text file.. what i want to do is set my own notepad-like app to

  • Workflow for DVD from HD+SD source...

    Based on the lengthy so-called "single-field conversion" issues with iM09, I'm looking for some inputs on the best workflow to retain high quality for DVD distribution for mixed media - video shot with HD & SD camcorders.. Here's what I did: A> Conve