Upto previous period data

Hi
how to get upto previous month data
if select aug-11 then i get upto jul-11 data for the aug-11
how to do this
i have gldate,startdate,enddate

Hi
thanks for ur reply but
but my requirement is different
actually i have some date columns
my condition is gldate<startdate
my values are
gldate values are like 1/31/2011,2/28/2011,3/31/2011,4/30/2011,5/31/2011 ...
startdate values 1/1/2011,2/1/2011,3/1/2011,4/1/2011,5/1/2011 ..
periodname --jan-11,feb-11,mar-11  likethsi
if i select periodname nov-11 then
startdate is 11/1/2011 and gldate is 11/30/2011
my condition is gldate<startdate its false then all gives 0's
my requirement is if i select periodname nov-11 then startdate is 11/1/2011 then iget the amount for the all gldate values <startdate
startdate i compare all gldate values its not filtered
then this condition get upto oct-11 values
i nees for nov-11 values are upto oct-11 values sum
plz how to dothis
if ur not understand plz reply to me

Similar Messages

  • Getting Previous Period Date

    Hello - I'm wondering if anyone can help.
    Im currently developing a tool which filters and aggregates some data. I have the user to be able to select a period for example - 01/01/2010 to 07/10/2010.
    Then, I want to compare the selected data with the same period of the previous.
    I understand that I think I get do this with the .getTime function but Im at a loose end as to how to achieve this. Another example is if the user selects 2 years, e.g. 01/01/2010 - 01/01/2008 the comparison period would be 01/01/2006 - 01/01/2008
    Please help!
    Thanks
    Craig
    public function filterAll(evt:Event):void
                    var tmpDate:Date = selectedFrom.selectedDate
                    var tmpDate2:Date = selectedTo.selectedDate
                    tmpDate.time = tmpDate.getTime();
                    tmpDate2.time = tmpDate2.getTime(); // this needs to be the previous period
                    trace (tmpDate)
                    trace (tmpDate2) // trace previous period

    Think I've done it! Here is the function for anyone that is interested!
    public function getPreviousPeriod(From:Date,To:Date, fromOrTo:String):Date
                    var diffNum:Number = From.getTime() - To.getTime();
                    var tmpDate:Date = new Date
                    var tmpDate2:Date = new Date
                    tmpDate.time = From.getTime();
                    tmpDate2.time = To.getTime();
                    tmpDate.time = tmpDate.getTime() + diffNum
                    tmpDate2.time = tmpDate2.getTime() + diffNum
                    if (fromOrTo == "From")
                        trace ("FROM")
                        return tmpDate;
                    else
                        trace ("TO")
                        return tmpDate2;

  • Current Period data from MBEW

    Hi Experts,
    Currently in my program previous period data can be pulled from MBEW using MBEW_EXTEND putting XVPER = X . How can I pull the current period data from MBEW and which stock field should I need to consider for it?
      call function 'MBEW_EXTEND'
      exporting
             xvper              = 'X'
        tables
          mbew_tab           =  tab_temp.
    Thanks in advance.

    hi,
    table MBEW is for material valuation table, irrespective of the period. here there is no bifurcation of this current period and previou period.
    MBEWH- is material valuation history table.
    here current period running active period in which the posting is beeing done.
    previous period is one month before the current period.
    here in MBEWH, an option is given to fill the last current month as required for fetching the data.
    Edited by: manipal on Jan 10, 2008 4:56 AM

  • Table for previous period stock

    Please provide me the table name or report from which I can get only quality stock in previous monht
    I just need the quality stock in previous month
    need a table

    xxxxH tables certainly have correct data, just not in good readable form.
    you need to use a function module to retrieve the previous  period stock:
    A calculation of previous period data for table MARD could have the following form.
      select * from mard into table mard_tab where werks = 'ABCD'.
      call function 'MARD_EXTEND'
        exporting
          xvper = 'X'
        tables
          mard_tab = mard_tab.
    table MARD_TAB is filled with the previous period information.

  • To Run the Costing for Previous period

    Dear Firends,
    I need some help for costing run for Pervious period.
    In my sap system Current period is 04-2009. But i want to run costing RUN upto 03-2009 (Previous Period ) because i have some pending documents is there for 04-2009 period. So we plan run the costing for 03-2009 period before go to 05-2009 period.
    How to give the period date.....
    Thanks & Regards
    Saravanan R

    Dear Saravanan,
    It is not possible to create a cost estimate for the past period and to release the same.
    1.If your Costing Run date is some future date ,but the Costing Date from,Qty Structure Date,Valuation date is on
    system's date,then the system will allow to release the cost and the same can be checked under Planned Price,Standard
    price under Current Column in Costing 2 view.
    2.If your costing run date is current date & the valuation,Qty structure date is some future date,then the system will not
    allow you to release the cost.
    So with this check & revert back.
    Regards
    Mangalraj.S

  • Billing Document cancelled in previous period

    Hi Experts,
    There is an issue that an invoice was created in the month of Jan. 2010, it got cancelled due to some reason and while cancelling it user has manually put date of Dec.2009. It has impacted the customer ledger. Here the previous period is opened as client's requirement.
    Kindly suggest the solution.
    Thanks & Regards
    Girish

    Pass a manual accounting entry for reversing the effect of cancellation in Dec09 month.  Pass another entry in Jan10 month too.
    I am sorry but since the document is totally closed and cancellation sets itself off against the invoice document, you can't do much.  You cannot cancel a cancellation document to reset its effect.
    Thanks
    Kapil Sharma

  • Is it possible to post the Excise invoice previous month date.

    Dear All,
    We want to post a excise invoice with previous month date. Is that possible?
    We have created a billing document (VF01) last month (October) and not created Excise Invoice (J1IIN).
    Now our finance people requirement is to create the excise invoice with last month date.
    Kindly let me know whether it is possible.
    Regards,
    Mullairaja

    Yes quite possible provided your FI period is still open.  Once you execute J1IIN and clicked the tab "Billing", you can see a field Posting Date where you maintain the billing document date itself if FI period is open.
    But from excise point of view, this is wrong due to the fact that excise returns should be submitted on or before 3rd of every month in which case, the excise team would have submitted the returns for October.
    thanks
    G. Lakshmipathi

  • In previous period posting system is allowing less qty for goos issue

    Dear All,
    I am doing goods issue in previous period.Though in material master previous period system is showing 0.125 MT of material ,in MB5B same quantity of material in previous period is available also I checked in MB51 for all material document and transactions ,still system is allowing me to issue only 0.046 MT not
    0.125MT. What may be the reason--but it is allowing 0.125 MT for current period.
    Thanking you in advance
    Mrinmoy Chakraborty

    Hi,
    Please check your stock detail for your material with MB5B in back date.
    And check in back date the stock is available for your requirement.
    Regards,
    Mahesh Wagh

  • COPA Report current period and previous period issue

    Hi Gurus,
    I have defined COPA report (Tcode KE94) based on line items. Now I want all values to be displayed based on an entry parameter in terms of period. That is to say that  If I give input values of "010.2013" as a period entry , my report should display the values for the the period specified i.e. 010.2013 in the first column and in second column  values for the period 009.2013 should be displayed and in the third column values for the period 001.2013 till 010.2013 should be displayed cumulatively.
    For this, I choosed the character "period/year" in General data selection tab, clicked "Variable on/off" tab and gave values "From"  as well as "To" for the Global Variable "OFP"  which is Curr.fisc.per./year.
    For the 1st column (1st column which is suppose to display the values according to selection parameter), along with the character "company code" , I choosed the character "period" and clicked "Variable on/off" tab and gave value "From"  as well as "To" for the Global Variable "OFP"  which is Curr.fisc.per./year.
    For the 2nd column (2nd column which is suppose to display the values for the immediately preceeding period of the selection parameter), along with the character "company code" , I choosed the character "period" and clicked "Variable on/off" tab and gave value "From"  as well as "To" for the Global Variable "OFP"  which is Curr.fisc.per./year. While doing so, I selected operator as "-" and choosed offset as 1.
    For the 3rd column (3rd column which is suppose to display the cumulative values from the beginning of the fiscal year till the period mentioned in the selection parameter), along with the character "company code" , I choosed the character "period" and selected 001 in "From" and 016 in "To" tab.
    Company Code selected in all the three columns is same and I have selected actual values i.e. 0 for "plan/actual indicator" tab.
    When I run the report through Tcode KE30 , I give values as "010.2013" for the From and To selection tabs. System shows the values as per the selection parameter in the 1st column which is correct  but display values same as per coulmn 1st in the 3rd column which is wrong because it should be cumulative. 2nd column is blank. 
    How to display the values for the immediately preceeding period and for cumulative period?
    Regards,
    makrand

    Dear Ajay,
    Thanks for the reply. Here are the screen shots.
    For the general data selection tab
    For the first column "current month" i.e. for the month
    For the second column "Last Months"
    For the third column "Cumulative" i.e. year to date
    Following is the result of KE30
    Values for the period 010.2013
    You can see that values in the report for the period 011.2013 contains value for the previous period which is 59090.21
    This value is matching when the report is run for the period 010.2013.
    But in both the reports,the figures for Current month and YTD (year to date) are same.
    Please let me know what setting is required in the current month column.
    Regards,
    makrand

  • Vendor evaluation report to be run for previous period

    Hi,
    Is the possible to run the Vendor evaluation report for back date.
    i.e. if the period of evaluation is 30 days, can we run the report for previous periods
    Regds,
    Ritesh

    Depending on the library you are using, can you verify whether you can use one of the following variables?
    1PERIK   
    1PERW   
    5ACPERI  
    6-PERIK  
    8WPERIO
    All these variables use fiscal periods and not calendar periods, that way you don't have to bother about number of weeks in a period, unless you really need to do the calculation based on number of days in a period.
    If your library does not support these variables, then pl copy one of these variables (GS11) with appropriate details into a custom variable and use it in your report.
    Let me know.
    Regards
    Subodh

  • Costs of previous period not getting settled in current period ?

    Dear All,
    Scenario - Ours is an investment project. User has forgotten to settle costs in previous financial period i.e. 2007. And is now trying to run the settlement via CJ88. Since the financial year/period has already been closed , the system is throwing error as shown below -
    "First settle items from previous year in previous year 2007: 400031819/001
    Message no. AW624 "
    We cannot open the period .
    Tell me how to resolve above issue so that user can post the costs.
    thanks in advance

    hi friend.
    kb11n cant be used here as this is used only for repostings, and this is not required in this scenario,
    i suppose you are getting the error message: AW624 : first settle the items of previous year.
    this error comes when you create a wbs and you are using that wbs as a AUC and posting the expences to that AUC and finally you capitalize that asset to final asset through CJ88  settlement.
    when the capitalization date lies in the next year where in you have the expences posted to that are in previous year.the system dose not allow you to do that as that period is closed. postings cant happen in the previous period thats closed.to rectify this issue go to OBA5 and give the selection AW and select the number 624 and in online and batch column give W. After giving this settings save it and you will be able to perform the settlement.
    this will resolve your issue.
    arman
    sap fico

  • Clearing Line Items in previous periods (F.13)

    My customer was not aware that an automatic clearing process had to be performed at the end of each month for a GR/IR Account (Transaction F.13). So, in Transaction FS10N, all line items by Purchase Order with balance = 0 are shown open. (They display with red light).
    We were able to fix the problem by executing the automatic clearing process (transaction F.13) for the current period which it is Period #10. Now, all line items by Purchase Order with balance = 0 are displayed on green which it is correct.
    We tried to execute the same process for previous periods (Period 09, 08, 07 .... 01) but we get the message Can't process, the period is not open. In previous periods, the line items still are shown on Red light even if the balance = 0.
    Any suggestions?
    Regards,
    MP

    Hi,
    F.13 clearing won't possible previous periods. can be possible present month and previous month only.
    Before previous month won't possible. the reason is Material period will allow only backpostings upto one month.
    Thanks
    Chandra

  • Confirmation Cancellation in Previous Period

    Hi all,
    I am getting an error message saying that I cannot cancel a confirmation from the previous period ( which is now closed ). Is this there a work around to this or if not, can you please explain to me why the system doesn't permit this. Thank you so much.

    Dear,
    Without opening the periods you can not cancel any confirmation on back date open period thro transaction MMRV . othere wiseu keep the current date as posting date then you can.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • Current & Previous month data based on condition

    Hi All,
             Thanks in advance.
    I have some problem in reporting......
            I have to display curr and pre months data .
    If i give fiscal period as 009.2006 i should display no of contracts for 1_90 , 90_180 based on last adjustment date .
    No.of contracts for  <b>last day</b> of given period- <b><b>last adjustment date</b> <=90 .
    Like i should display for given period and previous period.
    If given period is 009.2006 .last day of this month is 31/12/2005.
    like last day for previous period is 30/12/2005.
    Thanks & Regards,
    Sarada .<b></b><b></b>

    Hi Eugene,
               Here is the code..
    WHEN 'LDAT_PRV'.        " Get last day from the given period.
    IF I_STEP = 2.
        REFRESH E_T_RANGE. CLEAR E_T_RANGE.
        LOOP AT I_T_VAR_RANGE INTO TEST WHERE
          VNAM = 'PRV_PER' and IOBJNM = '0FISCPER'. "Contract Enddt
    CONDENSE TEST-LOW.
        V_GJAHR = TEST-LOW+0(4).
        V_BUPER = TEST-LOW+4(3).
    call function 'LAST_DAY_IN_PERIOD_GET'
           EXPORTING
            I_GJAHR = V_GJAHR
            I_PERIV = 'T1'
            I_POPER = V_BUPER
           IMPORTING
            E_DATE = ENDDT.
    IF SY-SUBRC <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ELSE.
           CLEAR LS_RA_SID.
           LS_RA_SID-SIGN = 'I'.
           LS_RA_SID-OPT = 'EQ'.
          LS_RA_SID-LOW = ENDDT.
          APPEND LS_RA_SID TO E_T_RANGE.
          EXIT.
       ENDIF.
            EXIT.
        ENDLOOP.
      ENDIF.
    Like i have created for one more variable for given period.
    I need last dates for the given and previous periods....
    Best Regards,
    Shradda

  • Current Period & Previous Period in MBEW

    Hi,
    I have to generate a report in BIW to show the material stock of current year to back three years month vice.
    For which i will fetch data from table MBEW(for current period data) & MBEWH(for past periods data).
    As i am a technical personal so i want to know what exactly the current period stands for and previous period.
    If i am not wron the MBEW stores current period data for material valuation.
    1. Suppose as this is January 2008, will the MBEW store data only for this period ?
    2. And as this month is not complete yet then will this table wil be updated daily ?
    3. what happens with the data of this table when a month ends ?
    4. Now when i look up at the data in the MBEW its showing me current period as 001 & current fiscal year 2008 - what does this signifies ?
    Our client follows V9 fiscal variant, i.e. fiscal period is OCt- Sep.
    Can anyone please provide me some functional details regarding my query's ?

    hi,
    table MBEW is for material valuation table, irrespective of the period. here there is no bifurcation of this current period and previou period.
    MBEWH- is material valuation history table.
    here current period running active period in which the posting is beeing done.
    previous period is one month before the current period.
    here in MBEWH, an option is given to fill the last current month as required for fetching the data.
    Edited by: manipal on Jan 10, 2008 4:56 AM

Maybe you are looking for

  • Internal tables in WS_download

    HI    i have defined 2 internal tables one for invoice header details and another for line item details.(both have different details) now i have to download this data to text file in this format invno1   text.... line1    text... line2    text.. invn

  • Mint 17 with 2 virtual machines losing network connectivity

    Ethernet 

  • Multiple Documents in Same Window

    I hate bothering people with such a trivial question, but this is driving me nuts... I had been using Acrobat 9.0 Std and opening several documents within the same window, and toggling thru the docs using Ctrl+Tab.  Somehow, something changed and now

  • Connected my new iPhone to my existing iTunes

    I have just connected my new iPhone (old iPhone replaced due to faults) to my existing iTunes and it has started the 'start up' instructions but when I selected continue the next page is in a different language? All other tabs in itunes is still in e

  • To see whole orders of the month

    I want to see all the sales orders/deliveries/ invoices...in this month...how???how should i do it????