Function module to get month lists for entered date

Hi Experts,
Is there any function module which gives me output as mentioned below.
Eg Input : 01.10.2010 - 01.02.2011
     OUTPUT :  OCT 2010
                      NOV 2010
                      DEC 2010
                      JAN 2011
                      FEB 2011
Please suggest.
Regards,
Kaustubh.

Moderator message - Please see How to post code in SCN, and some things NOT to do... before posting - post locked
Please do not ask basic date questions
Rob

Similar Messages

  • Standard function modules to get birthday list etc.

    Dear all,
    I need to read the following information, it is nice to have standard function modules, do you know any?
    1. monthly birthday list
    2. anniversaries of people in a month
    3. Entries/Exits of people in a month
    4. reminder for other HR events like Performance Review and Expiry of Probation
    Thanks a lot.

    Alex
    goto t-code SE37 and do a wildcard search:
    type *birth* and hit the F4 key on keyboard
    the list of function modules to extract brithdates will list out.
    you will need to spend time to review if each of them fits your requirement
    likewise for other function, feel free to do the wildcard search using the keyword in Se37
    should you are not able to find any FM for your use, i am afraid you may need to develop your own FM
    Edited by: Gregg Chen on May 19, 2011 3:20 PM

  • BAPI function module to get process orders for certain material

    Dear experts ,
    kindly , I need my vb application to get all CRD , but not DLV Process orders for Material X.
    Into SAP , I use the COIO , then set material to X , then display flag CRTD included , and Exclude DLV.
    Question now , What is the function module that does this. what is the table name , and how to set search parameters.
    my code will be like this
    theFunc = functionCtrl.Add("BAPI_PO_GETDETAIL") ' get po data
       theFunc.exports("purchaseorder") = t.Text
                 returnFunc = theFunc.call
            returnParam = theFunc.imports("po_header")
            retTab = theFunc.tables("po_items")
            For Each rr In retTab.Rows
                tt1.Text &= (rr("MATERIAL")) & vbTab
            next
    Thanks
    Waleed

    Hi,
    Check if the below helps:
    1.  BAPI_SALESORDER_GETLIST for VA05
    2. BAPI_QUOTATION_GETDETAILBOS for VA25.
    Regards,
    Vivek

  • Need a function module to get IT0001 details for a pre-selected set of empl

    Dear All
    We are faced with a requirement of getting infotype 0001 record details for a pre-selected set of employees, based on a date selection (BEGDA and ENDDA). The existing function module HR_READ_INFOTYPE provides this functionality on per employee number basis. This will lead to performance issues in the context in which we have this requirement. Therefore, would appreciate any input on alternate function modules which can act like HR_READ_INFOTYPE with multiple employee numbers selection (like the facility available in function module HR_PERSON_READ_WORK_SCHEDULE).
    Kind Regards,
    Karthik

    Hi Santhosh,
                             Thanks a ton for the reply,your reply actually helped me,but I also checked the FM HRCM_EMPLOYEE_INFO_TABLE_GET
    which was simple and fits to the requirement.
    Regards,
    Karthik

  • How to get week & quarter for entered date

    I need help on below query
    1) when i enter date, it should bring previous & further week of that month. As per my requirement my week starts from Saturday to Friday. Lets say that i am entering 24.01.2006, then it should bring week 1 from 7th Jan to 13th Jan 206, 14th Jan to 20th Jan 2006 & so on.
    2) Similarly when i enter date as above , i want data coming on quarter basis instead of week..
    I will be highly thankfull to you for the help..
    Regards
    [HASAN]

    HI
    try HR_99S_GET_QUARTER.
    type-pools: p99sg.
    data: l_week type P99SG_QUARTER.
    CALL FUNCTION 'HR_99S_GET_QUARTER'
      EXPORTING
        IM_DATE             = sy-datum
      IM_ABKRS            =
      IM_PERMO            =
    IMPORTING
       EX_QUARTER          = l_week.
      EX_RETURNCODE       =
              write:/ l_week-begda.
               write:/ l_week-endda.
    Message was edited by: Harikishore Sreenivasulu

  • Function Module Call Via CMOD Logic for Master Data Enhancement

    Hi Friends Please help me to resolve this, would really be very kind of all of you.
    Requirement. I want to Enhance the field ZFACTREG from VIBDBE table in my datasource 0busentity_attr extract structure l_s_REIS_BUSENTITY_ATTR, I want to create the logic in CMOD exit_saplrsap_002 to call my function module for enhancement of master data. Please help me Step by Step
    Thanks
    Poonam Roy
    <b>Step #1</b>
    I put this code which gives me error in CMOD like this
    ERROR : Das formale Argument 'OTHERS' muss am Schluss der Ausnahmeliste stehen.
    ABAP Code#1 IN exit_saplrsap_002     
    DATA: l_d_fmname(30) TYPE c.
    CONCATENATE 'Z_DS_' i_datasource(25) INTO l_d_fmname.
    TRY.
    CALL FUNCTION l_d_fmname
    EXPORTING
    I_DATASOURCE = I_DATASOURCE
    I_UPDMODE = I_UPDMODE
    TABLES
    I_T_SELECT = I_T_SELECT
    I_T_FIELDS = I_T_FIELDS
    I_T_DATA = I_T_DATA
    C_T_MESSAGES = C_T_MESSAGES
    EXCEPTIONS
    RSAP_CUSTOMER_EXIT_ERROR = 1
    OTHERS = 2
    IF FOUND.
    IF SY-SUBRC <> 0.
    RASIE RSAP_CUSTOMER_EXIT_ERROR.
    END IF
    CATCH CX_SY_DYN_CALL_ILLEGAL_FUNC.
    ENDTRY.
    <b>Step#2</b>
    I simple created the Function module Z_DS_BUSINESS
    and put the code in source code  which gives me error . what should i put in other tabs like"Import", Export", Tables" i kept blank
    ABAP CODE give me error : The Dictionary structure or table "FIELD-SYMBOLS" is either not active. i have to remove include in the FM. WHY SO??
    FUNCTION Z_DS_BUSINENSS
    ""Lokale Schnittstelle:
    *"       IMPORTING
    *"             VALUE(I_DATASOURCE) TYPE  RSAOT_OLTPSOURCE
    *"             VALUE(I_CHABASNM) TYPE  SBIWA_S_INTERFACE-CHABASNM
    *"             VALUE(I_UPDMODE) TYPE  SBIWA_S_INTERFACE-UPDMODE
    *"       TABLES
    *"              I_T_SELECT TYPE  SBIWA_T_SELECT
    *"              I_T_FIELDS TYPE  SBIWA_T_FIELDS
    *"              I_T_DATA
    *"              C_T_MESSAGES STRUCTURE  BALMI OPTIONAL
    *"       EXCEPTIONS
    *"              RSAP_CUSTOMER_EXIT_ERROR
    INCLUDE ZXRSAU02.
      WRITE: / 'INSIDE THE Z_DS_MEASUREMENTS PROGRAM'.
    TABLES: REIS_BUSENTITY_ATTR,
            VIBDBE,
    field-symbols:.<fs_REIS_BUSENTITY_ATTR> like REIS_BUSENTITY_ATTR.
    DATA: BEGIN OF i_c_t_data OCCURS 0.
              include structure REIS_BUSENTITY_ATTR.
    DATA END OF i_c_t_data.
    DATA: i_c_t_data_copy like i_c_t_data OCCURS 0 WITH HEADER LINE,
          begin of i_vibdbe occurs 0,
          INTRENO like vibdbe-INTRENO,
          ZFACTREG like vibdbe-ZFACTREG,
                  end of i_vibdbe.
    i_c_t_data_copy[] = i_c_t_data[] = c_t_data[].
    sort i_c_t_data_copy by vibdbe.
    Select  INTRENO
            into table i_VIBDBE from VIBDBE
            for all entries in i_c_t_data_copy
            where  INTRENO = i_c_t_data_copy- INTRENO.
    if sy-subrc = 0.
      sort i_VIBDBE by INTRENO.
      loop at i_c_t_data assigning <fs_REIS_BUSENTITY_ATTR>.
        clear: i_VIBDBE.
        read table i_VIBDBE with key INTRENO = <fs_REIS_BUSENTITY_ATTR>-INTRENO
        BINARY SEARCH
        transporting ZFACTREG .
        if sy-subrc = 0.
          <fs_REIS_BUSENTITY_ATTR>-ZZFACTORY = i_vibebe-ZFACTREG
        endif.
    null

    (I leave office until Monday morning, Europe time)
    in include from customer-exit ZXRSAU01, etc.
    CASE I_DATASOURCE.
    WHEN '0CUSTOMER_ATTR'.
       PERFORM 0customer_attr changing i_t_data...
    ENDCASE.
    In each perform, doing what you wrote ; select (needed fields) from complementary-database-table into an internal table with a for all entries. sort the table. LOOP and MODIFY on i_t_data.
    In some case i had to insert lines of i_t_data to an internal table of DS_structure when entering subroutine and back at exit. (on 4.6C PI 2003 if i remember)
    Some optimization done when reading small tables (T001 society and the same, these are filled once and not for each packet of data.
    Your idea of creating different FM is of interest, but the cost of passing i_t_data between two programs (two function groups) may overcome the gain of performance. In a job only one DataSource is processed so only one routine is actually called.
    Regards.

  • Function Module to get days by putting input dates

    Hi All,
    could anybody tell me which Function Module can be used to get the number of days by giving two dates.
    for ex: suppose if i will substract 04.01.2008 - 03.01.2008 = 1 day.
    Please reply ASAP.
    Thanks,
    Madhu

    Hello,
    Check this sample:
    DATA: G_F_DIFF TYPE I.
    CLEAR G_F_DIFF.
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
    EXPORTING
    I_DATUM_BIS = ENDATE
    I_DATUM_VON = STARTDATE
    IMPORTING
    E_TAGE = G_F_DIFF
    EXCEPTIONS
    DAYS_METHOD_NOT_DEFINED = 1
    OTHERS = 2.
    Cheers,
    Vasanth
    Edited by: Vasanth M on Jan 25, 2008 10:41 PM

  • Function Module to get planned Quantity from posting date

    hi,
    i need one function module which takes plant and posting date date as an input parameter and get the Planned quantity for that range of that ...i dont want to fetch it from material since the report is run for the whole plant(werks).so it has got a lot of data entries so i need a function for that...
    is there any function module which will fetch this data ...
    Edited by: sonal musale on Jun 23, 2008 3:53 PM

    Hi,
    I have also the same problem. Any solution you have for this one?
    Thanks,
    Raymond

  • Function module to get PRT for the operation in Maintenance Order

    Hi,
    Please tell me the function module to get PRT document for the all operation in Maintenance Order? and also tell me the FM to get all details of those PRT Docs so that I can Print those documents.
    Thanks.

    Hi,
    Please tell me the function module to get PRT document for the all operation in Maintenance Order in TCode IW31/32/33? and also tell me the Function Module to get all details of those PRT Documents so that I can take Print out of those documents.
    Thanks,
    Jay.

  • Function module to get dependencies

    Hi All,
    Is there any function module to get the dependencies for a given characteristic and characteristic value.
    I have tried CUKD_XREF_OBJ_CHARC , CUKD_XREF_OBJ_CHARC_SVAL but not useful.
    Thanks&Regards,
    Manjula.S

    Hi Manjula,
    please Check if following Bapis can help:
    1.BAPI_CLASS_CHARVALUE_READ_ALLO Class BAPI: Read Dependencies for Characteristic Value
    2.BAPI_CLASS_CHARVALUE_LOCAL_DEP Class BAPI: Maintain Local Dependency for Characteristic Value.
    3.BAPI_CLASS_CHARVALUE_DEL_DEP Class BAPI: Delete Local / Global Dependencies for Characteristic Value
    4.BAPI_CLASS_CHARVALUE_GLOB_DEP Class BAPI: Assign Global Dependencies to Characteristic Value.
    5.BAPI_CLASS_CHAR_DELETE_DEP Class BAPI: Delete Global / Local Dependency for Characteristic
    6.BAPI_CLASS_CHAR_LOCAL_DEP Class BAPI: Assign / Delete Local Dependency for Characteristic
    7.BAPI_CLASS_CHAR_READ_ALLOC Class BAPI: Read Dependencies for Characteristic.
    Hope It helps.
    Regards,
    Rahul Sinha

  • Function module to get the difference of dates ..

    Hi ,
    Can somebody pls help me with the function module to get the difference between two dates?
    I need to find the difference value and delete records if >1.
    Thanks in advance.
    Regds,
    Leeza.

    Leeza,
       When I tested the FM in my Program, it is <b>working</b>!!!!!
       Note that the Two Input Dates are to be in the format of <b>DATS</b> type (Eg: <b>vimimv-dmibeg</b>).
      U can want the Day which u have specified in the parameter I_DATUM_BIS (eg: 20050101) to be included for
    the calculation , then put X in the parameter I_KZ_INCL_BIS.
    Sample Code :
    report zkam01.
    data:           
    <b>sav_nlaufz like rf60v-nlaufz, 
    date1 type vimimv-dmibeg,
    date2 type vimimv-dmiend.</b>
    date1 = '20050101'.
    date2 = '20051001'.
    call function 'MONTHS_BETWEEN_TWO_DATES'
         exporting
             i_datum_von   = date1
             i_datum_bis   = date2
             i_kz_incl_bis = 'X'
         importing
             e_monate      = sav_nlaufz.
    write:
    date1,
    / date2,
    / sav_nlaufz.
    Please allot points if the problem is solved.
    Thanks
    Kam
    Message was edited by: Kam

  • BAPI or Function Module to get MSEG table data based on PO Number (EBELN)

    Hi
    1. Is there any BAPI /  Function Module to get PO details based on Plant and PO date?
    2. Is there any BAPI / Function Module to get Material document details(MSEG data) based on PO number?
    Thanks
    Narendra

    Hi,
    check the Bapis Givem below
    BAPI_PO_GETITEMS
    http://abap.wikiprog.com/wiki/BAPI_PO_GETDETAIL1
    you will get the detail.
    Regards

  • Function module to get the month name when start date and end date given

    Hey Experts,
                       I am creating a employee bonus report. In this report each and every employee's month wise working days have to be calculated and displayed in the report. I need to find a function module which helps me split the given dates into that particular month. Please help me with the same.
    Regards,
    G. Shankar

    Hi Shankar,
    I think there are two Function Modules.
    First One is 'HR_RU_MONTH_NAME_IN_GENITIVE' in this u need to pass month number and for that u have extract month number from date.
    And Second One is 'ISP_GET_MONTH_NAME' in this u need to pass date or month number, it directly accepts date.
    Check this two and let me know.
    Cheers,
    Parth Parikh

  • Function Module to get BEGIN and END date of a month?

    Hello everybody,
    Is there any function module to get BEGIN and END date of a month
    GIVEN EITHER THE CURRENT SYSTEM DATE or MONTH?
    Regards,
    Sanghamitra.A.

    hi
         CALL FUNCTION 'PA03_PERIODDATES_GET'
            EXPORTING
              f_abkrs               = p_abkrs1
            IMPORTING
              f_permo               = wf_permo
              f_current_begda       = wf_begda
              f_current_endda       = wf_endda
            CHANGING
              f_current_period      = wf_pabrp
              f_current_year        = wf_pabrj
            EXCEPTIONS
              pcr_does_not_exist    = 1
              abkrs_does_not_exist  = 2
              period_does_not_exist = 3
              OTHERS                = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    this is the function module to get the first date and last date of a particular month
    if u have any doubts ask
    regads
    karthik
    reward points if useful

  • Function module to get the wbs element by entering Assignment No.

    Is there any Function module to get the wbs element by entering Assignment No.???????
    Thanks and regards
    Manish Thakur

    hi Manish,
    Just look at this function module.
    function wbs_assignment_check.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(I_COMPONENT) LIKE  RESBDGET STRUCTURE  RESBDGET
    *"     REFERENCE(I_PSPEL) LIKE  RESB-PSPEL
    *"     REFERENCE(I_RFPNT) LIKE  AFVC-RFPNT
    *"  EXPORTING
    *"     REFERENCE(E_PSPEL) LIKE  RESB-PSPEL
      e_pspel = i_pspel.
    endfunction.
    hope this helps u
    REWARD IF USEFUL
    thanks and regards
    suma sailaja

Maybe you are looking for