Function Module to get Last date of previous year

Is there any function module to get the Last date of the previous year. e.g, if i give date as 03/02/2009 the output  should be 31/12/2008.

pls use below 2 FM's
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
          EXPORTING
            months  = -1
            olddate = curent_date
          IMPORTING
            newdate = w_prevdate.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
          EXPORTING
            day_in            = w_prevdate
          IMPORTING
            last_day_of_month = w_lastdayprevmonth
          EXCEPTIONS
            day_in_no_date    = 1
            OTHERS            = 2.

Similar Messages

  • Function module to get the dates from the year and the period

    Is there a function Module to get the dates from the year and the period

    Check with :
    To get last day of period use .
    LAST_DAY_IN_PERIOD_GET.
    To get last of month Use :
    RE_LAST_DAY_OF_MONTH
    HRVE_LAST_DAY_OF_MONTH
    LAST_DAY_OF_MONTHS
    ISB_PREVIOUS_PERIOD_DATE_GET
    Thanks
    Seshu

  • Function module to get posting date from posting year and posting period

    Hi all,
    I need a function module which will return posting date when posting period and fiscal year is passed to it..
    Thanks and regards,
    Puja.

    Hi puja
    try this FM
    this will solve ur problem
    G_POSTING_DATE_OF_PERIOD_GET
    G_POSTING_DATE_OF_YEAR_GET
    FCJ_CHECK_POSTING_DATE
    Cheers
    Snehi Chouhan

  • Function module to get md04 data

    I need function module to get below data of the material as per the mrp area.
    Thanks,
    Kiran

    Hello Kiran and Kumar
    As I have explained in the following thread, BAPI_MATERIAL_STOCK_REQ_LIST should be used instead of MD_STOCK_REQUIREMENTS_LIST_API.
    Material shortage report after mrp run.
    BR
    Caetano

  • URGENT - BI Publisher - Get Last Date of Month/Year

    Hello,
    I want to get the last date of a year/month through BI Publisher. We want to do it by creating a list of values containing the month/year name (i.e. January, February, March for month or 2004 2005 2006 for year) and when the user selects one of this values to get the last date of the month or year in order to select the correct number of records.

    Hi,
    try with a LOV like the following:
    select
    to_char(add_months(trunc(sysdate,'MONTH'),-level),'Month - YYYY') display_value,
    last_day(add_months(trunc(sysdate,'MONTH'),-level)) return_value
    from dual
    connect by level <=12
    which gives you the last 12 month from today.
    Regards
    Rainer

  • Function module to get order data from delivery

    hi ,
    is there any function module to which i can pass the delivery number and get the order number (s) and other data .
    basically i want the order currency.
    pls help.
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 21, 2008 9:44 AM

    Hi Surendra,
    If your requirement is just to retreive the Order number for a given delivery then you can go with following:
    Just go to LIPS table, there you can get the Order Number and ITEM from VGBEL and VGPOS fields for given Delivery Number VBELN.
    You can also do the same by using VBFA table.
    Also have a look to the following thread:
    Re: Getting sales order number against Delivery Number
    Hope this will help.
    Regards,
    Nitin.

  • Function module to get due date by terms of payment

    Hi,
    Is there any function module which can give me the due date when I pass
    1) Terms of payment
    2) Baseline date
    Read the terms of payment and use the properties of the terms of payment ( Like Fixed date )  to get to the due date.
    Thanks in advance.,
    Raj

    Hi,
    I had the same problem, as J_1A_SD_CI_DUEDATE_GET does not work when FI document is not created yet.
    This is the way I used and it works:
        CALL FUNCTION 'FI_TERMS_OF_PAYMENT_PROPOSE'
          EXPORTING
            i_bldat               = sy-datum        "if baseline is filled, value here is ignored
            i_budat               = sy-datum
            i_cpudt               = sy-datum
            i_zfbdt               = vbdkr-zfbdt    "baseline due date
            i_zterm               = vbdkr-zterm   "payment terms
          IMPORTING
            e_zbd1t               = lv_zbd1t
            e_zbd2t               = lv_zbd2t
            e_zbd3t               = lv_zbd3t
            e_zfbdt               = lv_zfbdt
          EXCEPTIONS
            terms_not_found       = 1
            OTHERS                = 2.
        IF sy-subrc <> 0.
        ELSE.
          CALL FUNCTION 'J_1B_FI_NETDUE'
               EXPORTING
                    zfbdt   = lv_zfbdt
                    zbd1t   = lv_zbd1t
                    zbd2t   = lv_zbd2t
                    zbd3t   = lv_zbd3t
               IMPORTING
                    duedate = z_duedate.
        ENDIF.
    Hope it helps.
    Regards,
    Fernando

  • Function module to get last fiscal week

    Hi Gurus,
    Can anybody give me the function module to go back to few fiscal weeks.
    For example ,
    if the current fiscal week is 2008030,
    I need to get the value 2008024.
    This can be done with ABAP code. But I am looking for function module.
    Thanks,
    Rajani.
    Points will be assigned.

    Hi Rajani,
    Please try this:
    REPORT Z_CAL_WEEK .
    DATA: Z_DATE TYPE SY-DATUM.
    DATA: Z_WEEK TYPE SCAL-WEEK.
    Z_DATE = SY-DATUM
    Z_DATE = Z_DATE - 42. "CORRESPONDING DATE 6 WEEKS in the past
    CALL FUNCTION 'DATE_GET_WEEK'
      EXPORTING
        DATE = Z_DATE
      IMPORTING
        WEEK = Z_WEEK.
          EXCEPTIONS
         DATE_INVALID       = 1
         OTHERS             = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    WRITE :Z_WEEK.
    Regards
    Joe

  • Is there any function module to get the data from st06?

    Hi,
    I'm new to this forum.
    I would like to know if there is a way (maybe some function modules) to collect information like system architecture, and databases as displayed in transaction st06?
    I would like to call it from external program in order to view part of the data available in st06.
    Thanks,
    Erez Gordon.

    have a look at function group SMON.
    Not sure if these are remote enabled, otherwise create a wrapper function module (RFC).
    Edited by: Micky Oestreich on Dec 11, 2008 9:37 AM

  • Function Module for getting J1IEX Data

    Dear All,
    Is there any F.M available for getting details whatever is posted in  J1IEX, like ED, Ecess, HEcess etc.
    regards,
    paras
    Point Assured.

    Hi,
    I'm not sure what you mean with 'textmodule' but try with function module READ_TEXT.
    Regards,
    Eduardo

  • Function Module to get the data like in LS26

    Hi Gurus,
    We are designing a new program and we need to get information about the "available stock", "putaway stock" and "pick quantity" for some storage types. So this is exactly what the LS26 shows.
    Do you know any Function Module that can extract or calculate this information?
    I would really appreciate any suggestion.
    Thank you in advance
    Edited by: Abel Raya on Jul 4, 2011 11:39 AM

    I don't think there is a function module exists. But you can get the details from table LQUA for item details and LEIN for header records.

  • FUnction Module to Calculate future date after 'x' years

    Hi Gurus,
    Can anyone tell me the Standard Function Module which will take today's date as i/p & return the date after 10 years.
    e.g say input date is 18.05.2010 & input year is 10.
                 output = 17.05.2020
    Regards,
    Rohit.

    why would it be in 10 years 17.05.2010 and not 18.05.2010 ??
    which logic do you want to use to calculate the 10 years after ?
    kind regards
    arthur

  • Function module to get any date format in DD.MM.YYYY

    Hi  Experts,
    i want a FM which can convert any type of date format user entered on selection screen in DD.MM.YYYY
    date format entered by user  can be any of below format
    DD/MM/YYYY
    MM/DD/YYYYY
    DD/MMM/YYYY
    MM.DD.YYYY
    YYYY/MM/DD
    i want date format in DD.MM.YYYY
    Also is there any FM  which can tell  us that  day of today date is  25th or  not .

    Read forum rules of engagement before posting.
    Basic date posts are not permitted.

  • Function module to get the configuration of Individual objects

    Hi all,
    Is there is any std function module to get the data of individual object configuration.
    In table COM_TA_R3_ID, I can able to get the PRODUCT_GUID (for material and serial number) and I dont know how to get the configuration of the product by using the PRODUCT_GUID.
    Pl  through some light on this.
    Regards
    A.Sureshbabu.

    Hi,
    You can get the item configuration using FM CRM_CONFIG_READ_OW.
    This is used to read the product configurations for IPC calls.
    Just pass the configured item guid and it will return the configuration data.
    Use FM CRM_PRODUCT_I_READ_OW to get the product configurations but this FM checks whether any item has this product guid.
    Regards,
    Arun Kumar
    Edited by: Arun Kumar on May 12, 2010 10:20 AM

Maybe you are looking for

  • How do I back up iPhone to time machine?(I'm new)

    How do I back up iPhone to time machine?(I'm new)

  • Can't start Acrobat 9.0 trial version

    I downloaded and installed the trial version of Acrobat 9 Pro.  When I open it, it asks me to accept the user agreement.  When I do, it just closes... no error message or anything.  I have uninstalled it, as well as Reader, and reinstalled--same prob

  • Waveform Chart Update With Relative Time

    Hey, I have a question about how a waveform chart updates.  I am running a test in the pictures attached it is only for 4 minutes and I read in a data value every 90 seconds.  I was wondering why the waveform chart doesn't look like chart 2 (photosho

  • POWL does not update Expense Reports for Approval

    Hi, I am about to replace the UWL with POWL and the configuration have been made successfully when it comes to leave approval and expense reports but the Expense reports for approval refuses to update itself (no items in the list) If I go to Transact

  • Dreamweaver cs5 .spry menu bar

    Hola que tal a todos necesito ayuda con esto. estoy haciendo una pagina en la cual me piden que tenga submenús , entonces utilize la spry bar y me quedo muy bien pero cuando lo subo al hosting , se ve muy mal, no se ve como deberia  . por que pasa es