Function Module to Return MM/DD/YYYY after 6 Months from today's Date

Hi,
I need to find out the Month/Date/Year, after 6 months from the given Date. Can any one please suggest me a suitable Function Module to get the MM/DD/YYYY after 6 months from current date.
Appreciate your help!
Thanks,
Kannan.

You can also use :-
RE_ADD_MONTH_TO_DATE
Kindly reward in case useful.
Regards,
Darshan Mulmule

Similar Messages

  • Function Module - Calculate 5 weeks lookup based on -7 increments from the Key Date

    Hi Guys,
    I am looking to create a variable on Fiscal Period/Year, that automatically populates the variable with the previous 5 weeks based on -7 increments from the key date , when the user runs the query .
    For Example: If key date is 03/11/2014 need to get previous 5 weeks 03/04/2014, 02/25/2014, 02/18/2014, 02/11/2014, 02/04/2014. mm/dd/yyyy.
    Is there any Function Module available/ please provide the logic code - can anyone help?
    Thanks,
    Suresh Narayan

    Hi suresh,
    Please once try with this approach,
    Create a variable with variable represents :  multiple input value, Processing type : customer exit ; variable is ready for input.
    and write the below code :
    if i_step = 1.
    data : fdate type d ,
            wa1 like line of e_t_range,
           n1 type i.
    n1 = 1.
    if n1 <= 5.
    wa1-opt = 'EQ'.
    wa1-sign = 'I'.
    wa1-low = fdate.
    append wa1 to e_t_range.
    fdate = fdate - 7.
    endif.
    endif.
    Hope you got it,

  • What is the Function MOdule that returns the fields in database table order

    Hello Folks
      I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
    FAQ. Please search before posting your question.
    Edited by: Suhas Saha on Oct 10, 2011 10:19 PM

    Hi,
    You can use this BAPI.
    <b>BAPI_SALESORDER_GETLIST</b>
    Reward if useful.
    Regards,
    Vimal

  • Function Module to return WSDL URL

    Hi,
    Is there an ABAP Function Module that returns the URL of the WSDL when passed the name of a BAPI/ RFC?
    Thanks,
    Tristan

    hi there,
    unfortunately, as far as I know, there is no official API for the functionality you are talking of.
    Inofficially you might want to have a look at cl_srt_*, especially cl_srt_registry or cl_srt_tools. those classes supply the required functionality.
    be warned though that things are changing with the latest servicepacks and the new transaction SOAMANAGER and it's underlying data model. the new functionality does again not supply an official API to query the information you (and I) would like to get from the system.
    hope it helps, anton

  • Function Module to get first day of the fiscal year on passing a date

    Hi Experts!!
    Can you please suggest a Function Module to get first day of the fiscal year on passing a date..?
    Example:  if a fiscal year starts from 30 November 2009 and ends at 28 november 2010.
    it should return 30 th nov 2009 (first day of the fiscal year)

    Moderator message - Welcome to SCN.
    I think you'll find that this question has been answered before. Please search the forum before posting.
    Also, Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Rob

  • Can I return my macbook air after two months?

    Can I return my macbook air after two months?

    where did you buy it from?
    apple's return policy is 14 days

  • Want to return my iPad mini after 3 month of use

    I want to return my iPad mini after 3 month of use. Is it possible to sell it back to apple store and get something else?

    Your only option is to sell the iPad and buy a new one.
    How to Sell Your Old iPad  http://tinyurl.com/85d69lk
    Other sources to sell.
    eBay Instant Sell http://instantsale.ebay.com/?search=ipad
    Sell and Recycle Used Electronics - Gazelle http://www.gazelle.com/
    For instant gratification in selling a used iPhone or iPad, Gazelle’s Gadget Trader, an iOS app, is tough to beat. In seconds it detects the device and reveals how much it is worth in good condition. Tap the Sell This Phone to Gazelle button and the deed is done.
    Sell Electronics for Cash - Next Worth  http://www.nextworth.com/
    Buy My Tronics  http://www.buymytronics.com/
    Sell Your iPad http://www.sellyourmac.com/mac-product-guides/ipad.html
    Totem http://www.hellototem.com/
     Cheers, Tom

  • Custome Workflow will send mail after 6 months from a document added

    Hi,
    I have created a custom sequential workflow in Visual studio. As per the requirement, the workflow will send mail to approvers after 6 months from the document added date. Is that possible? I don't want to use timer job, as there is some other issue. Can
    I do the same in workflow itself? Which event will work for the same?
    Thanks

    Hi,
    You can setup retention policy to start workflow after 6 months from created date:
    http://blogs.askcts.com/2013/05/14/creating-a-timed-workflow-in-sharepoint-2010/
    http://community.office365.com/en-us/f/154/t/252993.aspx
    Hope it helps!
    Thanks,
    Avni Bhatt
    If this helped you resolve your issue, please mark it Answered

  • Call RFC Function Module and return 1000 records at a time

    I would like to call a Remote Enabled Function Module from a non SAP system.  This function module will select data from the database and return it to the calling program.
    Suppose there are 100,000 records that need to be returned, but the calling module would like the data in chunks of 1000 records.  Therefore the calling program would call the FM 100 times. 
    How do I code the function module to know on each subsequent call to grab the next chunk of 1000 records? 
    Let me know if additional information is needed.
    Thanks,
    Aaron

    Hello,
    Here is how you can go for this issue:
    1. Create one RFC function module with following parameter. These parameters are with respective of chunking logic.
         Import: Package Size
         Export: Total number of records
         Changing: chunk count
    Implement following logic:
    1. First of you need to know how many chunks you need to fetch for that get the count of total number of records. This is one  
        time activity so you better maintain one flag import parameter will be set to 'X' only first call.
    2. Get the number of chunk using total number of records / chunk size for e.g. 1000 / 100 so chunk count = 10.
    3. Define internal chunk counter in function module which will be used to locate the correct chunk depending on the chunk
        counter value sent from calling program.
    4. Send first call with package size 100 and chunk count = 1, execute select statement and increment internal
        chunk count check if chunk count = internal chunk count in current case chunk count = 1 so exit select statement and return
        with first chunk.
    5. Send second call with package size 100 and chunk count = 2. Execute select statement and check chunk count with internal
        chunk counter, in current case it will be 1 so skip that data and go for next chunk of 100 records increment internal chunk  
        counter. In this case it will match with external chunk count = 2. load output table with that data and return to calling program.
    6. Repeat step 4 until you reach last chunk.
    You need to use SELECT...ENDSELECT with PACKAGE SIZE addition so for every loop it will return number of records mentioned in package size.
    Hope this helps.
    Thanks,
    Augustin.

  • RFC function module without RETURN parameter thows error in XI. Please help

    Hi Experts,
       I have a File to RFC scenario in XI. The RFC function module that I am using at the receiving end does not have "RETURN" parameter. So when I test my scenario I get "RETURN" parameter not found error on SXMB_MONI.
    So is it mandatory that RFC function module must have RETURN parameter when used in XI?
    Is there any work around to avoid the error without changing the RFC function module?
    Please help!
    Thanks
    Gopal

    In my senario the QOS is best effort because it is a Sync.
    But the function module is sync in nature as it is returning a parameter called SO_Docs and Ret_Msg. The Ret_Msg contains the error info but it not of BAPIRET2 type.
    So is there any way to avoid this error when my QOS is best effort?
    Please help!
    Gopal

  • Function module not returning revisision level in Report

    Hello Abap Gurus,
    I am not a regular ABAP programmer, but i do few changes here and there if programmer is busy.
    My dilemma is, When i use REVISION_LEVEL_SELECT function module via SE37 it works fine:
    Import parameters               Value
    AENNR
    AEOBJ                           4
    DATUV                           07/29/2010
    DOKAR
    DOKNR
    DOKTL
    DOKVR
    MATNR                           1234-555-1234-A
    REVLV
    DOKOB
    OBJKY
    Export parameters               Value
    AAENNR                          105145628
    ADATUV                          04/22/2006
    ADOKVR
    AREVLV                          04
    But when i use this in the z report it doesnt give me any thing.
    Import parameters               Value
    AENNR
    AEOBJ                           4
    DATUV                           SY-DATUM
    DOKAR
    DOKNR
    DOKTL
    DOKVR
    MATNR                           1234-555-1234-A
    REVLV
    DOKOB
    OBJKY
    Export parameters               Value
    AAENNR                         
    ADATUV                         
    ADOKVR
    AREVLV                         
    Any help will be appreciated..
    Edited by: Owais Khan on Jul 29, 2010 9:55 PM
    Edited by: Owais Khan on Jul 29, 2010 9:56 PM

    Please post the code where you call the FM and check the return code.
    Rob

  • Function module table returning empty rows but export data is getting

    Hi,
    I am executing function module through JCO after setting importing parameter and when i retrieve the table i get table with empty data 0 rows but i am able get export parameter data . when execute the same function module in abap through sap gui i get table containing 5 rows. what may be the problem. please find below code 
          function = getDefaultJCoConnection().getJCoFunction("ZCRM_ICSS_PROJ_CUST_USR");
                function.getImportParameterList().getField("USER_ID").setValue("MLDL010");
                getDefaultJCoConnection().execute(function);
                exportTable = function.getTableParameterList().getTable("PROJCUSTLIST");
                int rowsNumber = exportTable.getNumRows(); // companies table number of rows
                log.error("rowsNumber----"+String.valueOf(rowsNumber));
      try
         if (rowsNumber > 0)
         int i = 0;
         do
         tempString="table valuesZCOMP_ID"(String)exportTable.getValue("ZCOMP_ID")"ZCOMP_SPC-"+(String)exportTable.getValue("ZCOMP_SPC")
                     + "table valuesZCOMP_DESC"(String)exportTable.getValue("ZCOMP_DESC")"ZPRICE-"(String)exportTable.getValue("ZPRICE")"---" ;
         log.error(tempString);
         while (exportTable.nextRow());
         catch (Exception th)
         log.error("The following error occured: while retrieving table values ", th);
    Do you have any idea where may be the problem
    Regards,
    Pavan
    Edited by: Pavan Reddy on Apr 10, 2010 4:46 PM

    Hi Pavan,
    This could be the case. The function module might be expecting a value converted into its format.
    By this, I mean that the function module might be expecting 0012345678 for 12345678 (Where data element of the ID is of type CHAR 10 ).
    Please check if it is so.
    Best Regards,
    Kris.

  • L_WMPP_WM_POST Function module not returning TO number

    Hello Friends,
    I am using this function module L_WMPP_WM_POST  to create the transfer order.I am not able to get the no of transfer order since
    the function module is not returning that.
    Is there any method to get the transfer order created.
    Thanks & Regards,
    Hari

    solved on my own.

  • Date Conversion Function Modules YYYYMMDD to MM/DD/YYYY

    Hi,
    I have a requirement to Conver the Dats from format: YYYYMMDD into the Format : MM/DD/YYYY. Can you  please suggest me a suitabble Standard Function Module if exists? If not please suggest me a solution for this data conversion.
    Thanks,
    Rajan.SA

    Hi,
    You can use WRITE FORMATING.
    Here the sample code:
    DATA: BEGDA       TYPE TEXT10,
          ENDDA       TYPE SY-DATUM.
      WRITE SY-DATUM TO BEGDA MM/DD/YYYY.
      WRITE SY-DATUM TO ENDDA MM/DD/YYYY.
    And of course you can use other format, like:
    ... DD/MM/YY
    ... MM/DD/YY
    ... DD/MM/YYYY
    ... MM/DD/YYYY
    ... DDMMYY
    ... MMDDYY
    ... YYMMDD
    Or you can use concatenate statement:
        concatenate SY-DATUM+4(2) SY-DATUM+6(2)
        SY-DATUM(4) INTO BEGDA separated by '/'.
    Regards,

  • Function module to return INVOICE DETAILS

    Helo All.
    I am printing invoice details using smartforms. Can anybody tell me a function module which will return the invoice details by taking invoice number as input?
    Thanks in advance.

    Hi,
    LB_BIL_INV_OUTP_READ_PRTDATA. This FM will return u a deep structure that has all the info in an Invoice Document.
    Thanks,
    Utsah Garg.

Maybe you are looking for

  • Open Crystal report from SAP BW

    Hi, is it possible to open and refresh (thus passing parameters/values) a certain Crystal report (version 2008 SP3) from a SAP BW system (version 7.10), e.g. with a RFC call? If it's possible, which transaction do I have to call to setup this call? W

  • Regarding Smartforms printing - multiple pages

    Hi Friends:     Please help me out on this query. I know how to make a smartform. I've made smartforms but the condition is that it triggers only one smartform. I've a requuirement that I've to trigger smartform for multiple vendors.The format of the

  • File Sharing With the BEFW11S4 in Vista....

    I have two computer connect to my router on a network, Both computers are running Windows Vista. I am able to see each computer on the network map in the network and sharing center. But when I go to the network folder the computers do not apper at al

  • Reg clearing items

    Hi,    while i am trying to clear an g/l account number through f-03, it is giving th error as open item system not maintained for this account, i want to know whetehr can we clear all g/l accounts or only balancesheet accounts and in t-code fs00 it

  • ServiceConfigurationNotfoundException

    Hello I installed LCES(Japanese) on Linux+Oracle.When deploy aodbe-printPDFPackage.lca,the ConfigruationManager throwed a ServiceConfigurationNotfoundException like this: Exception ALC-DSC-0130-000: com.adobe.idp.dsc.registry.ServiceConfigurationNotf