Required functional module

Hi
I have a requirement to load the date  with current month& year -3.
for example if my current date is 1st Jan 2010 then i shud get the data for 1st Oct 2009.
Any body knows how to get it.
Regards
Siri

Hi Sirisha,
  U can write this sample code.
Data : l_date type SCAL-DATE.
l_date = sy-datum. ( the date on which you will trigger).
if l_date+4(2) gt  3.
l_date4(2) = l_date4(2) - '3'.
else.
l_date4(2) = l_date4(2) - '3'.
l_date(4) = l_date(4) - 1.
endif.
Regards
vamsi
Edited by: vamsi talluri on Jun 4, 2010 3:48 PM

Similar Messages

  • Required function module to get date one year in the past.

    Hi,
    Required function module to get date one year in the past.
    Thanks and regards,
    M.R.Reddy.

    Hello,
    You can check this:
    DATA:
    V_DATE1 TYPE D,
    V_DATE2 TYPE D.
    V_DATE1 = SY-DATUM.
    TRY.
        CALL METHOD CL_HRPAD_DATE_COMPUTATIONS=>SUBTRACT_YEARS_FROM_DATE
          EXPORTING
            START_DATE = V_DATE1
            YEARS      = 1
          RECEIVING
            DATE       = V_DATE2.
      CATCH CX_HRPA_VIOLATED_POSTCONDITION .
    ENDTRY.
    WRITE:
    / V_DATE1, / V_DATE2.
    Hope this helps.
    Br,
    Suhas

  • Require function module for transaction MI09

    hi,
    i require a Function Module that would perform the operation of transaction MI09 i.e to post count of physical inventory without reference to inventory document number
    please help

    Hi,
      The easiest way to find the FM in MI09 is,
      go to transaction MI09.
      system--> status  and goto the Program name.
    Double click the program name and Search what are the FM are used.
      Search using ' Call Function ' String , to find out the
    Fms are used in MI09.
    Thanks,
    Neptune.M
    Plz Reward if it helps.

  • Required function module to Update MM-classification view

    Hi Floks,
         i got one object on MM, some material having the classificaton view and some material dont have, but my requirement is i need to update the classification view, Do you know any idea about , what is the function module is required ?
    Thanks
    Siva Prasad
    Sap-Practice

    the trick, when looking for these bapis, is NOT to look with material master bapis, but under cross application->classification->objectclassification... (in tcode BAPI)
    you will se the bapis you need.
    one thing, when you look in transaction bapi, all bapis for classification are shown with a _KEY suffix. the ones you want are WITHOUT the _KEY suffix...
    we use these all of the time.

  • Require functional module - catalogs and codes

    Hi all,
    I am looking for a functional module for Catalogs And Codes. as i want to change the non sap data to sap form. for that i need to do custom code as LSMW is not working for me.
    So please help me out in having functional module or BAPI for the same.

    BADI
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/63ee7f486cc143a560799d8803ce29/content.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/srm/badi-general+information&
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
    http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
    The specified item was not found.
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://www.allsaplinks.com/badi.html
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3430https [original link is broken] [original link is broken] [original link is broken]:///people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework /people/thomas.weiss/blog/2006/05/03/source-code-enhancements--part-5-of-the-series-on-the-new-enhancement-framework
    http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
    http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
    http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
    http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
    http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
    FUNCTION MODULES
    http://www.erpgenie.com/abap/functions.htm
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    http://www.erpgenie.com/abap/index.htm
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Rewards if useful.........
    Minal
    Message was edited by:
            Minal Nampalliwar

  • Require Function module or BAPI to create recurring GL entries in FBD1

    All,
    Are there any function modules or BAPI to create recurring GL entries as done through FBD1 transaction.
    Help is very much appreciated.
    Regards,
    Hari

    BDC Session is the best approach available. In order to have a clean BDC, use the Fast Data entry screen available in the transaction, which will help you in opening up all the fields irrespective of the field status groups

  • Require function module for start and end bucket of planning book

    Hello All,
    I need to fetch the start and end bucket date of a planning book. Is there any function module which can directly give first and last bucket date of a planning book ?
    Thanks & Regards,
    Vivek

    Hello dear Sanjeev / Datta,
    Thanks for your prompt response.
    The problem resolved. The solution is as follows.
    Step1) CALL FUNCTION '/SAPAPO/MSDP_PB_READ_DVIEW'
                Input : Plng book and dataview
                output: cs_pbdvwhdr       = ls_header (in changing parameter)
    Step2) CALL FUNCTION '/SAPAPO/SDP_TB_CREATE_COLS'
                Input: bucket Profile of past and future, which we will get from step1.
                          And from date as space in a variable of type datum (As the parameter is mandatory)
                Output: et_cols_ext (Importing table) which will give start and end date.
    Hope, This solution will help others also.
    Thanks & Regards,
    Vivek

  • Function module to input dates

    Hi All,
    Require function module where i can input From Date and To Dates as input parameters.
    This should appear as a dialog box.

    Hi,
    I think, we can create a Module Pool program with a Screen of Input of From / To dates inside a Function Group.
    And call the above screen from a function module.
    Rgds,
    Ramani N.

  • Function module to get 'Date one year in the past' in APO

    Hi,
    Required function module to get date one year in the past in APO.
    Thanks and regards,
    M.R.Reddy.

    Hi Reddy,
    Try these function modules
    /SAPAPO/DATE
    /SAPAPO/FISCAL_BDATE
    /SAPPO/MAPI_MAP_CREATDATE
    /SAPPO/MAPI_MAP_POSTDATE
    /SAPAPO/LCP_CALC_DATE
    /SAPAPO/VS_ORDER_GET_DATES
    /SAPAPO/PERIOD_CONVERT_DATE
    /SAPAPO/PERIOD_DATE_GET_FROMTO
    /SAPAPO/PERIOD_GET_DATE_RANGE
    /SAPAPO/PERIOD_GET_FOR_DATE
    /SAPAPO/PERIOD_GET_FROM_TODATE
    Regards
    R. Senthil Mareeswaran.

  • Copy Standard Function modules  to Z Function modules

    Hello,
    I have a requirement like , I need have a typical requirement where i need to copy few function modules in the same function group , in  this regard i copied 4 function module and calling performs with the program name , but i am unable to achive the requirement , Function module is getting Dump,
    Can any one explain the standarded function modules and place it in Z function group. or is it possible to include standard function group in to Z function group ?
    How to get reslove ?  please guide ...
    Thanks In Advance.
    With Best Regards
    Naganjaneyulu.P.V

    Hi Naganjaneyulu,
    If you copy it will be similar to Standard. But you can modify those FMs as you like which will not be possible in standard. Also if you solely copy the FM, If that FM consists or depends on the screens or Includes which are present in the Function Group then there will be syntax errors and shortdumps. The Reason for your short dump might be this.
    If you are still not happy with this approach, Kindly paste the standard FM that you are trying to clone and the short dump that you are encountering.
    Thanks,
    Sai

  • Require following field from one function module

    Hi,
    This is a issue which I am working on.Can u help me in this issue The issue is as below.
    It ia a Abaper related issue .They want the clarification from Functional side
    We require your help in below mentioned Open order extractions. Basically we want to know.
    Function modules for Open Sales/ Purchase order quantity and for open quantity
    They also require the following field to be fetched in  the table
    Extraction for Open Purchase Order
    Get all Purchase Order (EBELN) , Vendor (LIFNR) , Name (NAME1), Material (MATNR), Material Description (MAKTX), Material Group (MAKTL), Open Quantity (Order Qty (MENGE) -  Received Qty(field)) > 0), Requested Date (BEDAT), Purchasing Group (EKGRP).
    For Sales Organization Plant
    PO No, Vendor, Vendor name, Material,Mat description, Mat group,Open qty,Requested date, Purchasing group
    Thank you

    Hi Sravanthi,
    Maintain a table type in SE11 wich is of type your itab in the program to avoid type conflicts
    you IMPORT EXPORT or SET PARA GET PARA
    here you have to use the system table INDX(hk)
    please go through the example provided in the KEY word documentaion
    hope this will serve your purpose.
    Regards
    Ramchander Rao.K

  • Help required in creating function module which reads payroll clusters.

    Hi ,
    We have a requirement where in we need to create a function module for reading a sequence of tables from payroll clusters. This function module does two functions:
    1.Read the payroll results from one system.
    2.write the payroll results to other system.
    please do the needful as soon as possible.
    Thanks in advance.
    Regards,
    Durga.

    hi
    Refer to the below thread
    Programming with Clusters for HR-Payroll
    Regards
    Sameer

  • Function Module to get a work center's capacity requirements (load) within a given period

    Hi all experts,
    Currently I’m doing a capacity summary report similar to CM01, but with a summarized capacity availability and loading for a period.
    Selection Parameters: Work center range from and to, Period from and to
    List Format: Work Center, Avail Capacity, Loaded Capacity, Free Capacity, Load %
    I have found a standard function module (FM) to get work center's available capacity for a period, but still facing the challenge to find a FM to get a work center’s capacity requirements (load) in a period.
    I have read through all the related threads from the web, and tested the recommended FMs, but still cannot get a right result.
    Please help to provide some leads for a FM or the logic.
    Best Regards
    Philip

    Hello Philip
    The following function modules should be useful:
       - CY_PRIMARY_SELECTION            - Function module for selection of orders for the work center
       - CY_SECONDARY_SELECTION          - Check for additional criteria
       - CR_CAPACITY_AVAILABLE_PERIODS   - Reads the available capacity from work center
       - HR_PERSON_READ_TIME_INFO        - Reads the available capacity from person (modification)
       - CY_GET_PART_CAPACITY            - used only for the first period to read backlog
       - CY_LOAD_DISTRIBUTION            - Distribution key
    Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
    BR
    Caetano

  • Function module to calculate Requirements !!!! Pls Advice

    Hello friends ,
    I need to find the function module used to calculate the Capacity Requirements (Hours) in CM01 transaction . Is there any function module using which this SAP program calculates the Requirements( Hours) . Please advice .
    Thank you

    Hi Hari,
    Try the FM "CBP_EXC_WC_CAPACITY_REQUEST".
    Hope it helps.
    regards,
    Raj

  • Function module to calculate capacity requirements of production order

    HI
    Hav a requirement to calculate capacity requirement  for production orders like we see in cm50... does anyone know a function module to calculate capacity requirement?

    Hi All,
    Just to reopen this issue, even I am looking for a similar functionality.
    To reinstate the requirement:
    I want to find shifts and corresponding capacities for a work center. These details are obtained from CR03 and CR13 transaction.
    If possible do let me know Function module or tables for the same.
    Debs

Maybe you are looking for

  • Run Report From Workflow Item

    Hi All I want to create work item that will run a Transaction/Report. when the user will execute the work item from his inbox It will run a Transaction "z*"  with some parameters and display the result (ALV Rp) Thanks in Advance For Any Help.

  • G6-2321dx Windows 8.1 Spinning Wheel on startup

    Hello hp, I am trying to fix an hp pavilion g6-2321dx running Windows 8.1. Every 10 or so restarts, the computer gets stuck at the hp logo with the spinning wheel when trying to boot. I then have to hard reset the computer which either loads Windows

  • IX400-200D - Disk firmware update

    Hi.... I change ONE disk on a IOMEGA IX4-200D .... now I have 3 DISK 1TB with FW C38 and ONE (the replaced...) with C37. Setting mirror utility I have available only 1TB and not 2TB .... I'm trying to update the firmware... using DRIVER FWUPDATER 1.8

  • Will anyone can explain J1is process

    hi I have done import PO, MIRO,them MIGO,then J1iex Now i have done vendor return using 122 mvt, now i have to do J1is right??? above steps are correct or not plz explain how to do J1is??? thanks ramesh reddy Moderator message: Locked. Reason: basic

  • DMZ setup for SBS 2011

    Any suggestions on a low end router capable of providing a decent firewall that would begin to meet the security requirements needed for a DMZ setup?  (example Cisco PIX 506 Firewall)  And whether it can be done with just a couple of wireless routers