Function Module for getting the desired date

Hi All,
I need a function module where in get the date value from Current date - 540 days.
i,e System Date - 540 days = ????
Thanks
Suresh

previous FM works good , this is for ur info , to give in month, date and year instead of onlly days
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
    EXPORTING
      date      = sy-datum
      months    = '00'
      days      = '07'
      years     = '00'
      signum    = '-'
    IMPORTING
      calc_date = w_due_date.
Message was edited by: chandrasekhar jagarlamudi
Message was edited by: chandrasekhar jagarlamudi

Similar Messages

  • Functional module for Getting Material classification data.

    Please tell me Functional module for Getting Material classification data like class type , class, characteristics and characteristics values for material.

    Dear,
    FM:
    CLAF_CLASSIFICATION_OF_OBJECTS
    Table KLAH Class Header Data
    - KSML Characteristics of a Class
    Regards,
    R.Brahmankar

  • Function Module for getting the Sales Price for a condition type

    Hi,
    I am looking for a standard function module to which I can pass my condition type(new customizing) and it will return the sales price. The customer is going to create some new condition type to manitain the sales price. I'll have the necessary information like material/sales org/distribution channel, customer and need the standard function module to read the condition records for that condition type(as configured) and give me the price. PLease help if you know of a standard function module performing this.
    Thanks in advance.
    Regards
    Malthi

    Hi malthi ,
    welcome to sdn
    for material sales area u can look for the validations is table MVKE.
    the classification of the conditions is in tables like A901, a902 etc which in my opinion holds the condition types per classification .
    put a A* in se11 and this will give the list of tables per classification .
    u need to get the conditions as per kschl and dmbtr and
    etc..
    like this ..
    Get Condition Values for Material/Plant combination
      IF NOT i_a916[] IS INITIAL.
        SELECT knumh kappl kschl krech
               kbetr konwa kpein kmein
               INTO TABLE i_konp
               FROM konp
               FOR ALL ENTRIES IN i_a916
               WHERE knumh EQ i_a916-knumh AND
                     kappl EQ i_a916-kappl AND
                     kschl EQ i_a916-kschl AND
                     loevm_ko NE 'X'.
      ENDIF.
    Get Condition Values for Material/Plant/Ordertype/
    Customer combination
      IF NOT i_a925[] IS INITIAL.
        SELECT knumh kappl kschl  krech
               kbetr konwa kpein kmein
               APPENDING TABLE i_konp
               FROM konp
               FOR ALL ENTRIES IN i_a925
               WHERE knumh EQ i_a925-knumh AND
                     kappl EQ i_a925-kappl AND
                     kschl EQ i_a925-kschl AND
                     loevm_ko NE 'X'.
      ENDIF.
    just check this Fm if u can apply ur condition over here ..
    ME_GET_PRICE_CONDITION
    regards,
    VIjay.

  • Function Module for getting Payroll start date and end date

    Hi Gurus,
      If I give one date then is there any function module to find the payroll period start date and enddate for that given date?
    Points will be awarded
    Thanks
    Ravi

    Hi,
      Try these FMs
    HR_PAYROLL_PERIODS_GET
    HR_BEN_PAY_GET_PAYROLL_PERIODS
    HR_PAYROLL_PERIOD_GET
    HR_P06I_GET_PAYROLL_PERIOD
    Regards,
    PRashant

  • Function module for getting the open qty

    HI experts,
                      I have a PO quantity(EKPO_MENGE).against same PO and item item(EBELN and EBELP) if Goods receipt has happened (MSEG_ERFMG) then i need to calculate the open qty.and also by netting the open quantity if multiple GRs has done against the same PO and item.
    Can you suggest any function module to get this open PO quantity.

    Hello,
    Hope this link can help you.
    [Po Open Quantity;
    Thanks
    Jayant

  • Function module for getting the all PO waiting for release

    Hi,
    Is there any standard Function module for gettting all the PO's which all waiting for release.
    Regards
    Bala.

    hi Bala,
    ECC 6.0 Exits for VA01
    go through the above link i think that will help u...
    Regards,
    sindhu.

  • DDIF Function Module for getting the description of a BAPI structure

    Hi,
    I need to find a function module that returns the description of a structure...well a BAPI structure, not that that makes any difference.
    The DDIF_ function modules I've tried will all return the descriptions of data elements in tables, but not structures.
    Thanks,
    Tristan

    Check FM : CACS_DBNAME2TABNAME

  • Function module for getting the text.

    Hi ,
    Is there any funcion module to get the message text if i pass the message no and message class as the exporting parameter.
    Useful answers will be rewarded.
    Regards,
    neslin.

    hi...
    use this one
    BAPI_MESSAGE_GETDETAIL
    ok and following are for display
    LMON_MESSAGE_DISPLAY
    LTIF_MESSAGE_DISPLAY
    reward..points

  • Function module to get the same date of the previous month

    Hi
    Can anybody tell me how to get the
    same date of the previous month.
    example if i am entering date as 30 may 2007
    i want the date as 30 april 2007

    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
    EXPORTING
    date = pa_end
    days = '00'
    months = '01'
    signum = '-'
    years = '00'
    IMPORTING
    calc_date = pa_end.
    ENDIF.
    nd try below FMs as well...
    CCM_GO_BACK_MONTHS
    HR_PT_ADD_MONTH_TO_DATE
    RP_CALC_DATE_IN_INTERVAL
    Hope it will solve your problem...
    Reward points if useful..
    Thanks & Regards
    ilesh 24x7

  • Function module for getting the partner details and Classifications

    Hi,
    Can any one tell me FMs for getting the Partner Details and for getting the characteristics associated with an equipment??
    Thanks

    Hi Anu,
    are you talking about the SAP Business Partner???
    Well, if yes, then just check the FM 'BAPI_BUPA_CENTRAL_GETDETAIL'.
    Or just search for oher FMs with BAPI_BUPA*.
    Hope this helps...
    Ciao Bernhard

  • Function Module for getting the System time.

    Hello All,
    Which is the Function Module used in APO to get the system time?
    Thanks for your response in advance.
    Regards, Chirag

    Hi Chirag,
    Please try the following function modules
    1) /SAPAPO/CRES_GET_TIMESTREAM_BT
    2) /SAPAPO/OM_TIME_GET
    The field name for system time is UZEIT under
    structure SYST
    Also try
    3) CALENDAR_GET_TIMESTAMP
    4) SAL_CSM_RECEIVER
    I guess the third one will have your required data
    Regards
    R. Senthil Mareeswaran.

  • Need a Function Module for fetching the prior date-Urgent!!

    Hi All,
         I need a function module which will give the prior date with respect to the no: of days days that are entered as input.
    Can anyone please help me to fing one function module which acts as the above.
    Required very urgently!!!
    Thanks and Regards,
        Neethu

    Hi Neethu,
    Please run the report 'ZRECTIFY_FM_DOCUMENTS' in your system.
    Before running the report, create the following selection texts for the parameters/select-options as given below:
    P_BUKRS:  Company code
    S_GJAHR:  Fiscal year
    S_BELNR:  FI document no.
    P_TEST:   Test run
    For More information please refer <b>SAP Note: 309619</b>
    Best Regards,
    Johnny.

  • Urgent: Function module for getting the input from user  using a pop up

    Hi all,
    My requirement at user commmand a pop up should appear asking the user to enter the session name for the bdc session to be created.
    My report allows the user to enter the session name of his choice.
    I need the name of the function module which can do this.
    Thanks
    Pritish

    better to create one FM  to pop-up.
    check this :
    function y_pop_up_get_distributor_time.
    *"*"Local interface:
    *"  IMPORTING
    *"     REFERENCE(W_ROUTE) LIKE  VBAP-ROUTE
    *"     REFERENCE(W_VBELN) LIKE  VBAK-VBELN
    *"     REFERENCE(W_VGBEL) LIKE  VBAK-VGBEL
    *"     REFERENCE(W_VSTEL) LIKE  VBRP-VSTEL
    *"     REFERENCE(W_AUART) LIKE  VBAK-AUART
    *"  EXPORTING
    *"     REFERENCE(W_FROM_DATE) TYPE  SY-DATUM
    *"     REFERENCE(W_FROM_TIME) TYPE  SY-UZEIT
    *"     REFERENCE(W_TO_DATE) TYPE  SY-DATUM
    *"     REFERENCE(W_TO_TIME) TYPE  SY-UZEIT
    *"     REFERENCE(W_TKNUM) TYPE  VTTK-TKNUM
    *"     REFERENCE(W_RC) TYPE  SY-SUBRC
    *"     REFERENCE(W_DEPT_DATE) TYPE  SY-DATUM
    *"     REFERENCE(W_DEPT_TIME) TYPE  SY-UZEIT
    *"     REFERENCE(W_REPO_DATE) TYPE  SY-DATUM
    *"     REFERENCE(W_REPO_TIME) TYPE  SY-UZEIT
    *"     REFERENCE(W_PLNT_DATE) TYPE  SY-DATUM
    *"     REFERENCE(W_PLNT_TIME) TYPE  SY-UZEIT
    *"     REFERENCE(W_TRUCK_NO) TYPE  YW2_TIMEENTRY-TRUCKNO
    *"     REFERENCE(W_LIFNRN) TYPE  YW2_TIMEENTRY-LIFNR
    *  SET PF-STATUS 'STATUS_100' OF PROGRAM SAPLZ2SLS.
    *CLEAR:W_DATE_FROM, W_DS_TIME_1, W_ADATE,
    *      W_ATIME,W_BDATE,W_BTIME, W_CDATE, W_CTIME.
    clear : w_route1, w_vbeln1,w_vgbel1,
            w_vstel1,w_auart1.
      w_route1 = w_route.
      w_vbeln1 = w_vbeln.
      w_vgbel1 = w_vgbel.
      w_vstel1 = w_vstel.
      w_auart1 = w_auart.
      clear: w_date_to, w_date_from, w_adate,w_atime,
             w_ds_time_1, w_ds_time_2,
             w_bdate, w_btime, w_cdate, w_ctime.
      call screen 100 starting at 10 2 ending at 115 13.
      if w_ok_code = 'SAVE'.
        w_rc = 0.
        w_from_date  = w_date_from.
        w_from_time  = w_ds_time_1.
        w_to_date    = w_date_to.
        w_to_time    = w_ds_time_2.
        w_tknum      = w_tknum.
        w_dept_date  = w_adate.
        w_dept_time  = w_atime.
        w_repo_date  = w_bdate.
        w_repo_time  = w_btime.
        w_plnt_date  = w_cdate.
        w_plnt_time  = w_ctime.
        w_truck_no   = sg_truckno.
        w_lifnrn     = w_lifnr.
      else.
        w_rc = 1.
      endif.
    *  IF w_ok_code = 'CANC'.
    *    W_rc = 1.
    *  ELSE.
    *    W_rc = 0.
    *    W_FROM_DATE  = w_date_from.
    *    W_FROM_TIME  = w_ds_time_1.
    *    W_TO_DATE    = w_date_to.
    *    W_TO_TIME    = w_ds_time_2.
    *    W_TKNUM      = W_TKNUM.
    *    W_DEPT_DATE  = W_ADATE.
    *    W_DEPT_TIME  = W_ATIME.
    *    W_REPO_DATE  = W_BDATE.
    *    W_REPO_TIME  = W_BTIME.
    *    W_PLNT_DATE  = W_CDATE.
    *    W_PLNT_TIME  = W_CTIME.
    *  ENDIF.
      clear w_ok_code.
    endfunction.
    Regards
    Prabhu

  • Function module for getting the created or changed by user

    hi ,
    iam using the t-code ob 52
    inthat iam i not getting the created or changed by user
    so is there any function module which gives created r changed
    by user .
    it shhould take the input as t-code and it has to display
    the created r changed by user ........
    pls help ..........

    In OB52, in menu : Utilities, change log. This use Database log analysis. Try calling transaction [SCU3|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=scu3&adv=false&sortby=cm_rnd_rankvalue].
    SCU3 transaction call report [RSTBHIST|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rstbhist&adv=false&sortby=cm_rnd_rankvalue] which call [RSVTPROT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rsvtprot&adv=false&sortby=cm_rnd_rankvalue]. You may also use FM like [DBLOG_EVAL_CALL_FOR_SEL_OBJECT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_object&adv=false&sortby=cm_rnd_rankvalue] or [DBLOG_EVAL_CALL_FOR_SEL_CHAP|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_chap&adv=false&sortby=cm_rnd_rankvalue], perform some where-used on RSVTPROT.
    Regards

  • Any Function Module For getting Shipment Details

    Hi All,
    I want to get all details of shipment. i tired , but unable to get any function? I was able to find the creation or change shipment function modules, but not able to find the function module for getting the details for Shipment.
    like BAPI_SHIPMENT_CHANGE           Change Shipment
    BAPI_SHIPMENT_CREATE           Create Shipment
    similary
    Do you have any idea for getting (display)the details of Shipments?
    Regards,
    Raju

    hi,
    you can use
    VTTP,VTTK
    or
    RV_SHIPMENT_READ

Maybe you are looking for