Function Module to Compare Date within date Range

Hi All,
        Does anyone know Function Module to Compare Date within date Range...For example i need to find whether 08/02/2006 falls in between 07/15/2006 and 09/15/2006......

data: datum type sy-datum value '20070802',
      datum_low type sy-datum  value '20070730',
      datum_high type sy-datum value '20070930'.
If datum between datum_low and datum_high.
Endif.
Regards,
Rich Heilman

Similar Messages

  • How to make this function module as RFC to get data from different system?

    Hi
    I am trying to use following function module . This function module is used to copy data from one cube to another cube within same system however I need a this should happen across two different system. How can I use this function module to make it remote call to different system and do the same function what it is doing ?
    Name of function module -
    RSDRT_INFOCUBE_DATA_COPY
    Any help would be really helpful
    AG

    HI,
      let us say you want to copy the data of a cube in system A to a cube in system B .
      1) create a RFC function module in system B (in this function module  call the function module RSDRI_CUBE_WRITE_PACKAGE to update the data), this RFC function module should have same parametersa as RSDRI_CUBE_WRITE_PACKAGE .
    2) write a program in system A .. read the data from the infocube using the function module RSDRI_INFOPROV_READ and call the RFC function module in system B that you have created..
    for the details of the parameters to pass to these two function modules use the RSDRT_INFOCUBE_DATA_COPY and get the required code
    Thanks
    mahesh

  • 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

  • Function Module to change the master data attachments?

    Dear Experts,
    In SAP we can enclose the attachments for the Master data. Do we have any standard function module to change the Master data attachments.
    Let me know if any?
    Thanks and regards,
    Reddy

    Hi Reddy,
    Please make use of function module :
    BINARY_RELATION_CREATE_COMMIT
    For detailed information on how to use the FM please see the thread below:
    USE OF THIS fUNCTION MODULE
    Regards,
    Dilek A.

  • Function Module to read EDIDC table data.

    Dear All,
    I am retrieving data from EDIDC table depending upon the creation date and message type. But it is consuming a lot time and hence while going for more than one month data , it gives run time error.
      I found while going through debugger that maximum time is consumed  by the SELECT query in retrieving the EDIDC data.
    Is there any Function Module for retrieving EDIDC table data.
    If so kindly let me know.

    How can a fm replace this performance issue ? You have only two fields to be passed such as creation date and message type.
    For the table EDIDC there is a secondary index 3 for message type. Did you use that ? What is your query written ?
    If you look into the standard report RSEIDOC2, the field for creation date used is UPDDAT. It implies usage of secondary index 2
    Refer line no 114
    Regards
    Kesav

  • 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/Document to change Reversal date for FI  document.

    Can anyone please provide me with the Function Module/Document to change Reversal date for FI  document.

    Hi Vikram,
    Normally, you post a reversing document in the same period you posted the original document.  The period of the original document must be open to post a reversing document. If the period is not open, you can overwrite the posting date field with a date in an open period, such as the current period.
    Regards,
    Manoj.

  • Can generic function module extractions possible with CRM data sources.

    Hi Friends,
    can generic function module extractions possible with CRM data sources.
    90% extractions are generic function module extractions.
    How is it possible without BW adapters..
    It's very urgent ...Please.
    Thanks,
    Basava Raju

    Hi Madhu,
       Just curious ... if you already have a generic FM extractor then just go into it and find out where it is reading the data from. If its reading data from the CRM system then thre is no need for any BW adapter ... just in case you need any ABAP help ... post here ... I may be of use to you.
    Best regards,
    Kazmi

  • Function module to create Inspection setup data

    Hi all,
    Please tell me a function module to create inspection setup data(The tab found in MM01).
    Thank you.

    HI Sanu,
    Check with
    QIBP_INSPPOINT_CREATEFROMDATA
    QPLEXT_INSPECTION_LOT_CREATE
    QPLEXT_INSP_CREATE_REQ_CONF
    for more info search wiht QINSPCREATE*  in the SE37.
    hope it helps you.
    Thanks!

  • If there is any function module  to compare whether  there is any digit

    Dear all,
    If there is any function module  to compare whether  there is any digit except 0 in a string.....pls provide me

    Hi,
    IYou can use the following logic i guess,
    DATA: w_str TYPE string VALUE '00001'.
    IF w_str CN '0'. "If there is a digit other than zero thjis is true
      WRITE: / 'There are digits other than zero'.
    ENDIF.
    Hope this helps you.
    Regards,
    Manoj Kumar P

  • Function module for comparing contents of two internal tables

    Hi All,
    Is there any function module to compare contents of two internal tables of same structure?
    If yes please let me know.
    Thanks in advance.
    Amol

    Hi
    call SE16 with table TFTIT in order to get a full list (it will be long...)
    A list of FMs with parameters can be found in table FUNCT.
    Finally go to sm37rsdf4
    that will give you all the function modules with description
    Here is the list:
    http://www.erpgenie.com/abap/functions.htm
    hope this helps...
    Regards
    CSM Reddy

  • Function module for getting periods for date range

    Hi,
    Can anybody tell me the function module which will return the periods along with the year, when we give a date range.
    e.g
    01011999 to 120112000
    so it shoud return peroids between these date with year. Its possible thru programatically, but i m checking if there is any FM, so i can use FM.
    Thanks,

    Hi,
    You can use function module which works exactly what you are expecting FIMA_DAYS_AND_MONTHS_AND_YEARS.
    please reward points to useful answers.
    Thanks,
    Sriram Ponna.

  • Function module for comparing dates and times

    Hi,
    I have a date and time stamp in one filed for example as below:
    20070125183045
    (the first 8 are date in YYYYMMDD format, the next 6 is time in HHMMSS format). Now I want to compare this value to another such value in terms of date and time. First I want to compare dates and then times. Do you know any function module that can serve this purpose?
    Thanks very much!

    You can compare these using the function module DURATION_DETERMINE.  This fuction will give you the difference, and it can be in a view different units, such as the difference in days, months, etc.
    Funciton module takes in Start date and time and end date and time.
    Regards,
    RIch HEilman

  • Hiding a column in ALV GRID function module if it doesnt have data

    Hi ,
    I am using alv grid function module, in output i dont want to display the fields which dont have data

    we dont know which column has no data..... we have to do it dynamically
    This code does that dynamically, Here the field2 & Fiels4 are not displayed.
    TYPE-POOLS:slis,abap.
    TYPES:BEGIN OF ty_stru,
          field1 TYPE c,field2 TYPE c,field3 TYPE c,field4 TYPE c,
          END OF ty_stru.
    DATA:itab TYPE TABLE OF ty_stru,
         wa_stru TYPE ty_stru,
         lv_repid TYPE sy-repid,
         wa_fieldcat TYPE slis_fieldcat_alv,
         it_fieldcat TYPE TABLE OF slis_fieldcat_alv,
         it_details TYPE abap_compdescr_tab,
         wa_components TYPE abap_compdescr,
         lf_ref_descr TYPE REF TO cl_abap_structdescr,
         lv_field TYPE abap_compname.
    FIELD-SYMBOLS:<fs> TYPE ANY,
                  <fs1> TYPE ANY.
    lf_ref_descr ?= cl_abap_typedescr=>describe_by_data( wa_stru ).
    it_details[] = lf_ref_descr->components[].
    wa_stru-field1 = 'A'.wa_stru-field3 = 'C'.APPEND wa_stru TO itab.
    wa_stru-field1 = 'X'.wa_stru-field3 = 'Y'.APPEND wa_stru TO itab.
    IF NOT itab[] IS INITIAL.
      LOOP AT it_details INTO wa_components.
        ASSIGN wa_components-name TO <fs>.
        CHECK sy-subrc = 0.
        SORT itab BY (<fs>) DESCENDING.
        CONCATENATE 'WA_STRU' '-' <fs> INTO lv_field .
        ASSIGN (lv_field) TO <fs1>.
        CHECK sy-subrc = 0.
        READ TABLE itab INTO wa_stru INDEX 1 TRANSPORTING (<fs>).
        IF sy-subrc = 0 AND ( NOT <fs1> IS INITIAL ).
          wa_fieldcat-fieldname = wa_components-name.
          wa_fieldcat-seltext_m = wa_components-name.
          APPEND wa_fieldcat TO it_fieldcat.
          CLEAR wa_fieldcat.
        ENDIF.
      ENDLOOP.
      lv_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program = lv_repid
                it_fieldcat        = it_fieldcat[]
           TABLES
                t_outtab           = itab[].
    ENDIF.

  • Save_text Function module is not update the data in the notification, Help!

    Here is the code snippet, does anybody know why? Thanks!
    form update_root_causes
       tables p_it_root_causes type zqmtxt_t
       using notif_no.
      data:
          ls_header type thead,
          lit_lines type standard table of tline,
          lwa_line like line of lit_lines,
          lv_index type i value 0.
      field-symbols:
          <fs> like line of p_it_root_causes.
    fill the header
      ls_header-tdobject = 'QMEL'.
      ls_header-tdname = notif_no.
      ls_header-tdid = 'LTXT'.
      ls_header-tdspras = sy-langu.
    fill the lines table
    fill from line #2 ...
      lv_index = 0.
      loop at p_it_root_causes assigning <fs>.
        if lv_index gt 0.
          lwa_line-tdformat = '*'.
          lwa_line-tdline = <fs>-qmtxt.
          append lwa_line to lit_lines.
        endif.
        lv_index = lv_index + 1.
      endloop.
    update the save_text
      call function 'SAVE_TEXT'
        exporting
          header          = ls_header
          insert          = 'x'
        tables
          lines           = lit_lines.
      call function 'COMMIT_TEXT'
       exporting
         object                = ls_header-tdobject
         name                  = ls_header-tdname
         id                    = ls_header-tdid
         language              = ls_header-tdspras.
    endform.                    " UPDATE_ROOT_CAUSES

    Hi Anthony,
    Two things you can check:
    1. Ensure the notification number you are passing is valid, i.e. it has the requisite number of leading 0s (apply CONVERSION_EXIT_ALPHA_INPUT to ensure to the field notif_no before passing it to ls_header)
    2. In the function module to SAVE_TEXT - INSERT should be 'X' not 'x'
    Please check.
    Adi

Maybe you are looking for

  • ThinkPad Mini Dock (75y5730) Support Gigabit 10/100/1000?

    Hello, I have been trying to find the tech specs for my docking stations but have had no luck. Some of my employees have said that the network connection is slow for them and the only thing they have in common is all 3 of them use the same Lenovo doc

  • Data exchange Mainscript (SCRIPT) with script block (DAC)

    Is there any way to exchange data beetwen a Mainscript (SCRIPT) with user-dialoges and script block (DAC) in this way that the script in scriptblock can access to this data? Background: I write a DAC-Application with some script-blocks for reading an

  • Partner function in SRM and R3

    hi  Experts, we are having SRM 7.0.(ECS).we have a requirement as mentioned below. We maintain multiple Ordering adress(OA),IP in R3 for a vendor master.When we replicate this vendor ro SRM.we dont ahve this data copied to BP in SRM? But we have a pr

  • Created iweb on one computer, but want to work on it on my home computer

    How can I open up my iweb page on another of my computers. I used Idisk and saved the file, but everytime I open Iweb, it wants to start a new page and there is no option to open an existing page.

  • Updating Software

    Since a week or so, Sony PC Companion tries to update the software on my laptop. It breaks with the message that the installation has failed. No further details. So the event viewer shows the error below. Got Windows 7 Pro, completely updated with al