Customers whose latest posting date is older than 2 years

How to find out the Latest posting date for a customer in the report from the list of Posting date available.
Sorting option may not be a right Option as i need to create a condition on the formula(Latest posting date(4) -Sy-datum(4) greater than 2 years)
Please suggest me

Please let me know for any inputs

Similar Messages

  • Maintaine error message if posting date is greater than Sch del date in PO

    I have maintained a delivery schedule in a PO for a material
    Say PO qty 100
    Del Schedule
    10.04.09  - 60
    20.04.09 - 40
    While GRN, for 60 qty, if posting date is greater than 10.04.09, system needs to throw error.
    I want to do it for selected materials only.
    Is there a way to do this.
    Regards,
    Rakesh

    Thanx for reply
    If I use OMCQ message , it will be applicable for all GRNs and I want for a particular set of materials.
    Can one please suggest User exits / BADi for the same. I have checkd BADIs but those are based upon MSEG and EKBE table.. and i dont have any material doc no before posting the document.
    requiement is to check the delivery sch date and posting date befor posting the document is posted.
    Any suggestions welcomed.
    Reagrds,
    rakesh

  • MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt)

    MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt) posting date.
    Explanation:
    Miro sholud be posted after the GRN has posted. It means that the Posting date of Miro should be greater than or equal to the Posting date of Migo. But I am facing the issue that I can able to post the Miro before the Migo date..
    For example:  I have posted the Migo(Goods receipt) document with the posting date u2013 10.8.09 and at the same time I can also able to post the Miro(Invoice Verification) posting date as u2013 5.08.09. This is should not be allowed . Kindly give me the solution. Is there any options in SAP standards to restrict this type of Postings(without using user exit).
    regards
    Varadharaj

    Hi
    you  need to use BADi for this INVOICE_UPDATE
    you can give logic as whil;e MIRO system will compare posting date with MIGO doc , then create a Z error msg in se91 nad assign it in that badi
    take help of ABAPer, check following link
    [LINK |GR date lesser than the PO date, the system should show an error message.;

  • Exchange rate coefficient on the basis of latest posting date in invoice.

    Hi,
    I have one query on posting date(picking of exchange rate coefficient from TCURR table) in invoice verification.  Please help.
    Conditions are--
    vender and company code are not in same currencies(ex-USD and INR). exchange currencies are maintained perfectly on every month 1st ie co-efficients in TCURR table ie OB08
    Query---
    1.At the time of parking invoice suppose i enter the date 20th august and i have posted that invoice as parking. It is converting the local currency as per 8th month exchange rate.
    2.And at the time of final posting the invoice supose i posted that date as 10th September. Business wanted that converting the local currency as per 9th month exchange rate But now local currency is converting on the basis of initial entry of posting date ie 8th month only.
    Please advise and guide what configeration that i have to set for picking the exchange rate coefficient on the basis of latest posting date in invoice verification.
    Thanks & Regards,
    MadhuBabu.

    Hi
    I dont think it is possible as once you enter posting date while in parking invoice screen, on that date exchange rate will be calculated and it wil not be different at time of posting invoice. Instead of parking, you have to directly post with current posting period.
    Thanks

  • GR posting date always greater than PO document date.

    Dear SAP Gurus,
    Am working on below requirement in a support project..
    Need to ensure GR posting date always greater than in PO creation date. Only current month is open for GR posting and at present as a standard system allows to post GR any date in the current open period.
    Is there any way, we can control the same via messages without implementing any exits or badis.
    Appreciate immediate response.
    Regards,
    GM

    there is no std sap for this
    you can use user exit to ful fill ur requirement
    in that u can write a code where is u can check all PO dated in GR must be eq to or less than GR posting and document date
    hope this helps

  • 2LIS_04_P_ARBPL - figures are grouped according to latest posting date!!

    We are trying to fill setup table for App 4 and afterwards when we extract the DS 2LIS_04_P_ARBPL we are getting figures clubbed together based on latest posting date
    for ex: a given production order and type, if AFRU table shows below entries:
    16.01.2012      1.5
    17.01.2012      1.0
    19.01.2012      0.2
    then in setup table we have only one row (figures are grouped and shown against the latest posting date!!
    19.01.2012    2.7
    what is the solution?

    Hi,
    Most of the times data won't fill in the base tables, because the reason is, at the time of data entrry by users, there are certain conditions , so until and un less all that conditions fullfill, then only all feilds will fill in the base tables. I faced the same problem for 2lis_04_p_matnr datasource, I'm not getting Batch, so I enhaced teh datasource. So better add ZZ feild to datasource and enhace the ds based on AFUM table (Based on the process order)
    Thanks
    Reddy

  • Latest posting date from table MKPF

    hi all,
    I want to retrive the latest posting date from table MKPF. Here I am using the MARD,MSEG,MKPF tables to get the latest posting date.
    if not it_mard[] is initial.
    select amblnr amjahr amatnr awerks algort bbudat
      into table it_mseg_mkpf
       from mseg as a mkpf as b
       on amblnr = bmblnr
      and amjahr = bmjahr
      for all entries in it_mard
      where a~matnr = it_mard-matnr
      and    a~werks = it_mard-werks
      and   a~lgort   = it_mard-lgort.
    if sy-subrc eq 0.
    sort it_mseg_mkpg decending by matnr werks lgort budat.
    endif.
    loop at it_mard.
    clear it_mkpf_mseg.
    read table it_mseg_mkpf with key matnr = it_mard-matnr
                                                      werks  = it_mard=werks
                                                      lgort    = it_mard-lgort
                                                      binary search.
         if sy-subrc eq 0.
         it_final-budat = it_mseg_mkpf-budat.
         endif.
    endloop.
    from the above code  i need to rereive the latest posting date    , but when I am reading from internal table it is giving the sy-subrc is 4.  i know when we use binary search , the standard table should be ascedning order. but here I need to use descedning order.
    please hhelp i this.
    regards,
    Ajay

    Hi,
    1. Check Storage location (LGORT) value available in the internal
        table it_mseg_mkpf. Some case no value.
    2. Remove the binary search after u try again. Like below.
    loop at it_mard.
    clear it_mkpf_mseg.
    read table it_mseg_mkpf with key matnr = it_mard-matnr
                                                      werks = it_mard=werks
                                                       lgort  = it_mard-lgort.
    if sy-subrc eq 0.
    it_final-budat = it_mseg_mkpf-budat.
    endif.
    endloop.
    3. sort it_mseg_mkpg DESCENDING BY budat matnr werks lgort.
    4. For all material (it_mard) may be or may not be there in the MSEG table.
        So for some case SY-SUBRC = 4  will give.
    Thanks,
    Durai.V
    Edited by: Durai V on Sep 9, 2008 6:50 AM

  • Validation for posting date is less than 7 days of current date

    Hi
    I want to create a validation wherein  system will validate every entry that whether posting date is less than 7 days of current date. If it is than check in a set is that user id available if not than show error message.
    If someone have any idea on this logic pls share with me.
    Regd
    Shiv

    Hi,
    That's certainly possible via usual OB28 validation. Define your prerequisites for the posting date (you will have to do it via user-exit (bkpf-budat greater then sy-datum less 7 days) , and check whether the user is in the set.
    Regards,
    Eli

  • Update Date is older than the Creation Date

    Hi Team,
    In the Oracle Application 11i forms we are seeing the Update Date is older than the Creation Date?
    But the creation date should be older then the updated date.
    Thanks,

    What 11i release are you on?
    Can you please elaborate more on the Creation/Update dates mentioned above? Are you referring to forms or tables or specific rows? Is this happening to all data/forms? Please provide an example for us to understand your issue.
    Thanks,
    Hussein

  • Abap Query on most Latest Posting Date in G/L Account

    Dear All
    This is the new request that has come from the client. What they want to see is the G/L account and the most recent Posting Date. For eg Lets say that 220000 has 3 line items
    1000 in march 06
    2000 in april 06
    3000 in may 06
    End user wants to see Balance as 6000 and the most recent Posting date as may 06. If i Pull Accounting Doc # and Posting Date it will give me all the details and date which i dont really want. How do i do it ?
    Please help me
    Thanks
    Sameer

    Hi,
    what we can do is that get all the line items for a G/L account in an internal table. Sort it descending by date. Pick the first row's date and then simply sum up the quantities.
    Hope this helps.
    Regards,
    Himanshu.

  • Regarding problem in posting date after opening new year

    Hi SAP Gururs,
    I have just opened the new fiscal year thrugh OB52 and also made a new number range by copying the previuos year number range thrugh OBH2.
    Now when i m posting the entries for G/l, Customer & vendors, everything is going fine but vendor entry is not posting thrugh fb 60 and error is coming that (Posting date < Entry date) and when i m taking the help the following msg is appearing Message no. /SAPDMC/LSMW_OBJ_080237.
    Please provide help to the above issue. It is urgent.
    Thanks & Regards
    Inder

    Hi Mark,
    Yes I h ave check that the number range is copied for 2008 & also the posting period is opened for 2008 for vendors.
    Also i have posted few entries using t-codes FB50, FB70 & also FB60.
    Only in case of FB60 the entry is posted for 1st April 2008 but not for 2nd April & onwards.
    Please let me know what u meant by last line i.e entry date as posting date. What i have done is that i have try to do the entry by using the same invoice date & posting date i.e 2nd April, 2008. But still the same error is coming.
    Please help to reslove the issue.
    Thanks & Regards
    Inder

  • Bug: Duplicates not detected when importing photos older than year 2001

    If you import photos taken before 1st of January 2001 00:00:00, duplicates will not be detected even if you select the "Ignore duplicates" option on import. The files will be imported twice into the same location with a "-2" postfix added to their name.
    Technical details (to help developers):
    To detect duplicates, Lightroom uses a so called import hash (AgLibraryFile.importHash in the database) that has the following form:
         <capture_time><original_filename><file_size>,
    where:
    <capture_time> - interval in seconds between 1st Jan, 2001 00:00:00 and capture time recorded in Exif,
    <original_filename> - name of source file before import,
    <file_size> - file size in bytes.
    The problem here is the <capture_time> part, since it gets negative for files older than 2001, since 1st Jan 2001 is sort of  considered the beginning of time (called "epoch" in computing). Lightroom seems to get confused on negative timestamps.

    I will report this bug.  Thanks!

  • Posting date/period 31.12.2014/009 is earlier than existing date/period 17.01.2015/010

    Hi Experts
    While posting of invoice document (T.Code MIRO) I got the below error message;
    Posting date/period 31.12.2014/009 is earlier than existing date/period 17.01.2015/010
    Message no. FI_E050
    Diagnosis
    Commitment postings to Funds Management require that the current transaction's posting date is earlier than the posting date of the original or change account assignment line item of the document.
    I have checked several threads still i am not able to get answer -Invoice posting Error
    Regards
    Sp

    Suraj,
    please check following note
    564439 - FM update date is earlier than an existing postings
    Regards

  • Latest Finish Date

    Hi :
    I am trying to select Work Orders based on
    Planning Plant M600; system status excluding CNF, TECO, CLSD, DLFL including PCNF, CRTD, REL; excluding work order types PM04 & PM09; and excluding “latest finish dates” greater than 42 days in the future.
    How can i write condition for excluding work orders whose
    latest finish date ( mcafvgv-ssedd) greater than 42days in the future.
    Thanks.
    Raghu

    declare a variable & store the latest finish date in it for comparison. ie
    data: w_fin_dt type sy-datum.
    w_fin_dt = sy-datum + 42.
    check mcafvgv-ssedd gt w_fin_dt.
    ~Suresh

  • Linking delivery schedule in a PO for a material into GRN posting date

    I have maintained a delivery schedule in a PO for a material
    Say PO qty 100
    Del Schedule
    10.04.09 - 60
    20.04.09 - 40
    While GRN, for 60 qty, if posting date is greater than 10.04.09, system needs to throw error.
    I want to do it for selected materials only.
    If  OMCQ to be updated, then which msg No. has to be set.
    Is there a way to do this.

    Dear Kumar,
    As per my understanding about your thread
    You created PO from XX country to YY country
    You will recieve the delivery fromm YY to XX so the delivery date and comitted date will be based on the YY calendar not based on the XX calendar so you make the changes accordingly (Saturdat and sunday are holiday) in YY calendar.
    Now try
    I hope this will help you,
    Regards,
    Murali.

Maybe you are looking for