Doubt in function module relating to delta upload

Hi,
    Is there any ABAPer alive around who can tell me how i can write a funtion module to update data to BW side.
They only tell me data is not going to BW side. Can anyone throw light as to how function module should be structured. I  have a function module that works very finely for full update mode in RSA3. What should be done in my function module for delta update mode to work on BW side?????
<h1> THIS IS CRITICAL </h1>
Regards,
Prakash.K

Critical?  Why?  Should I respond faster because you've a problem that's urgent for you?
Does full extraction work when you run the extraction from BW?  Extraction only stops when you return an empty package.  Hence, RSA3 won't tell you if you've made this mistake. RSA3 will work fine, but the extraction will never end when run from BW.  I refer you to this discussion I had earlier. [Re: Transport Organ9izer]  I'll emphasise one important point: Also SAP supply RSAX_BIW_GET_DATA_SIMPLE as an example of how to write FM extractors 
If your FM is actually working with full, then to get your function module to work as a delta load, you need to be able to determine which data records have changed with since the last extraction, and only send those.  How you do this depends very much on the data.  You'll also have to define the datasource as Generic.
matt

Similar Messages

  • Function module related to procurement type and special procurement type

    Hi Gurus,
    Is there any function module related to procurement type and special procurement type?
    Regards
    Rajib

    Dear Rajib,
    What is your exact requirment?do you want to find out the list of materials based on procurement type
    and special procurement type?
    You can get the details from the table MARC.
    Regards
    Mangalraj.S

  • Function modules related to header and item GUID

    Hi,
    Please tell me the function modules related to header and item GUID.
    Thanq
    brahmaji

    You will need to be clearer about what you want to do. Try searching for function modules with names like "GUID". Also try searching forums first.
    Cheers
    Graham Robbo

  • How to find out the Functional module related to a T-code

    Hi All ,
    Please tell how to find out the Functional module related to a T-code.
    i want it for the T-code RSZDELETE.

    Hi
    There is no direct way to see this.
    You need to Pick the Program(Se37/38) and tables (SE16/11)and to see where its been used
    The FM for RSZDELETE is RSZ_DB_COMP_REORG_AS_POPUP.
    Hope it helps

  • Function Module for retreiving delta bill of materials

    Hi Experts,
      Is there any function module in SAP for retreiving delta bill of materials,please
    repond quickly as it is most urgent to me.
    Regards,
    Sridevi.

    Hi
    Check the following BOM related fun modules
    APS_GET_BOM
    C1L1_BOMPOS_GET
    C1L1_BOM_DATA_GET_NO_DIALOG
    C1L6_BOMDATA_GET
    CA_GR_GET_BOM_APPLS_FOR_USAGE
    CASL_GET_BOM_EXPLOSION_DATE
    CAVC_C_GET_BOM_ITEM_DATA
    CAVC_I_GET_BOM_HEADER_DATA
    CAVC_I_GET_BOM_ITEM_DATA
    CAVC_I_GET_BOM_ITEM_DATA_LIST
    CEV8_GET_BOM_DATA
    CEV8_READ_MAT_AND_GET_BOM
    CE_BOM_GET_PARAMETER
    CK_F_BOM_ITEM_FROM_KALKTAB_GET
    CLEX_BOM_GET_STPO
    CO_OCM_FA_FROM_BOM_GET
    CO_DM_BOM_GET_DOC_LINKS
    CP_BD_GET_BOM_FOR_MATERIAL
    CP_BD_GET_STLKN_FOR_BOM
    CP_CA_GET_VARIANT_BOM_DATA
    C_PDM_BOM_GET_ITEM_STUFE_WEGXX
    C_PDM_GET_BOM_USAGES
    CS_BI_GET_BOM_FILE_REMOTE_HOST
    CS_CA_ORDER_BOM_STRUCTURE_GET
    CSDE_BOM_ALT_BY_ECN_GET
    CS_OV_BOM_GET_ACTUAL_MARKED
    CS_OV_BOM_GET_FIRST_MARKED
    CS_OV_BOM_GET_LAST_MARKED
    CS_OV_BOM_GET_NEXT_MARKED
    CS_OV_BOM_GET_PREV_MARKED
    CS_BOMHEADERS_GET_MAT
    CUBF_GET_BOM_ITEM_FOR_EXT_ID
    CUBX_GET_CUOBS_FOR_BOM_ITEMS
    CUCPOBOM_CHECK_ALLOWED_TARGET
    CUKO_BOM_EXPLOSION_GET_PARAMS
    CUKO_DDB_BOM_HEADER_GET
    CUKO_DDB_BOM_POSITION_GET
    FLT_EXT_GET_BOM_DATA
    ISM_MEDIAISSUE_BOM_ADMIX_GET
    K_ABC_GET_CONV_FACT_BOM
    K_ABC_GET_SPECIAL_FEAT_IN_BOM2
    MGV_BOM_GET_LIST
    OIJ_3WP_GET_BOM_EXPLOSION
    OIRC_GET_BOM_SOC
    OLR3_DMS_RFC_GET_PARENT_BOMS
    PLM_CONSTRUCT_TYPE_GET_MAT_BOM
    PLM_EQUIPMENT_GET_BOMS
    PLM_EQUIPMENT_GET_EQI_BOM
    PLM_FUNCLOCAT_GET_BOMS
    PLM_FUNCLOCAT_GET_FLC_BOM
    PMEVC_BOM_GET_SUBSCREEN
    PMEVC_GET_BOM_ITEMS
    STT_BOM_GETDETAIL
    STT_BOM_GETLIST
    Reward points if useful
    Regards
    Anji

  • Function Module Extractor with Delta

    I'm very new to working with the BW, so I hope I'm explaining my question in a way that makes sense.
    I need to make a BW extractor that pulls data from at least one table, possibly more, and which also calculates some data.
    I think the only way I can do that is by using an extractor with a function module.
    I've been looking at the examples in function group RSAX, and I think I sort of get it, except for one part.
    I'm really confused about how the delta works.
    I'm looking at the example: RSAX_BIW_GET_DATA_SIMPLE
    Does it even use a delta?
    I'm trying to understand how the delta gets passed, and how it gets used to filter the data in the function module.  I'm not sure if it's something I need to code in myself, or if it's something that BW does by itself, or what.
    I'm not sure if I'm making sense, but if anyone could help me, I'd appreciate it.

    Thanks guys, you've been super helpful so far, so I'm just going to keep asking questions.  I promise to award points at the end
    I'm looking at it now, and I think if I change it to read from a table, instead of read from a function module I can use the 'numeric pointer' option for the delta.  (Does that just mean a number?  For example, payroll runid is a number, so I could use that and only get new payroll runs?)
    However, there still are some calculated fields they want.  Someone mentioned doing that on the BW side.  How would that work?
    Sorry for such vague questions, but any help is really appreciated.

  • Extractor on Function Module Not Passing Deltas

    Hi Experts,
    We have created an extractor on a function module in ERD and initialized it in BWD with no issue. However, when we change a record in ERD, the delta is not passed to BWD. We have debugged the function module and it appears the records are being written to the BW Delta Queue tables but they are not visible in RSA7 and are not picked up by BW. We think there may be a problem in the Decode by Playback method writing the records back to the structure.
    The Generic Delta of the extractor is set to Additive Delta and the Delta Mode is AIM (After images by Delta Queue); however we have tried different modes to no avail. Any insight you can share is appreciated.
    Thanks,
    Michael

    Hi
    In FM check on which fields you have written delta logic, data will populate if we have changes to that field.
    we have some good documents on step by step of creating FM based generic extractors. check if you miss any steps
    http://explore-sapbw.blogspot.in/p/sdn-articles-extraction.html
    Regards,
    Venkatesh

  • Doubt in function module BAL_DSP_LOG_DISPLAY

    Hai, guys,
    i have doubt in the function module BAL_DSP_LOG_DISPLAY.
    actually after executing the functin module bapi_acc_document_post, how to pass bapi return table to this function module bal_dsp_log_display.
    if any one know means please tell me with sample coding.
    thanks in advance.
    From Elamaran.

    Hi Elamaran!
    Did you try to use SE37 with this module and use "Where-Used List" (CTRL + SHIFT + F3)? This should give you enough examples to look through.
    Best regards
    Wolfgang
    Message was edited by: Ralf Wolfgang Geithner

  • Function Module Extractor with Delta Functionality

    Hi Friends,
         I have to extract the entire data of CDPOS table in R/3 , as its a cluster table I am unable to build a view, I am planning to go for FM extraction, Could someone help me as how to build it with Delta Functionality.
    I think I need to develop the Datasource, with Extract Structure,( Do I need to create a Structure in SE11)  Please help me out .
    Thanks,
    Krish

    Hi,
    you can either use an existing structure or else create one on your own. (SE11).
    The DeltaHandlig fairly easy.
    When having finished the extractor (FunctionModule, Structur and DatasSource), go to the "generic Delta" button and select the relevant field.
    The Generic Delta and its DeltaPointer is managed within the DeltaQueue (RSA7) and works more or less like a selection. Don't think too hard about it in your function module except taht you need to select by this field in your FM.
    Did that come clear?
    hth
    Cheers
    Sven

  • Doubt About Function Module

    Hi Experts,
    I want one function module which wil allows us to attach a attachment to the material in the SAP PLM System.
    Please clear my doubt . Why Because i got strucked here in this issue of selecting a right Function Module.
    Please clear my doubt. Helpful ANswers wil be Reward.
    Regards
    Khanna

    Hi khanna,
    try this MATERIAL_MAINT_DIAL_GET_DOC Functional Module for attachment in Material Master,
    In DIR try this CV110_DOC_ASSIGN_FILE,
    Regards
    Rehman

  • Need function module related to PCL2.

    Hi,
    Is there any function module that gives me all the related entries in PCL2 for any personnel number (PERNR) that i enter?
    I will reward all the useful answers.
    Thanks,
    Mohit.
    Edited by: mohit goel on Feb 28, 2008 2:51 PM

    Hi,
    This is not the one I want.
    This FM does not exist : RP_PRINT_PCL (Is the name write?)
    The other FM does not suffice to my requirement. It does not mention anywhere PERNR.
    Thanks,
    Mohit.

  • Function module related to release transport request

    Hello experts,
    I am working on product management system hierarchy. The hierarchy is like
      PRODUCTSSUBPRODUCTVERSIONPACKAGE
    we can create transport for VERSION directly from CONTEXT MENU. Next step is download transport to client PC I have done with it. FInal stage to release transport directly from context menu. For this i am searching for appropriate function module. If anybody know which function module to be used for transport request release please share it with me.
    Thanks,
    Avadhut

    Hi,
    You can use TR_RELEASE_REQUEST to release a transport request directly.
    The class CL_CTS_REQUEST is also worth looking at.

  • Doubt on function module

    in function module how to export all the fields in a table ..
    i.e. i am giving these fields..
    in
    IMPORT
    P_EBELN LIKE EKKO-EBELN
    IN
    EXPORT
    BUKRS LIKE EKKO-BUKRS
    and in source code
    SELSCT SINGLE BUKRS INTO BUKRS
    WHERE EBELN = EBELN.
    and i am getting for one record
    but if  i want to export more than one columns
    how to code it in source code.
    and what is the use of  TABLES in FM
    AND HOW TO EXPORT  full table columns ?
    and how to code it ...
    plz help me .......

    Hi
    See the doc on fun modules and create accordingly
    Function Modules;
    Check this matter.
    Function Modules are Global ABAP programs created by SAP for reusable purpose.they have IMPORT,EXPORT and TABLE parameters, and EXCEPTIONS to through when error occurs.
    You can create them from TCode SE37.
    Go through the following doc:
    Function modules are cross-program, reusable procedures that are organized into function groups, and whose functions are implemented between the statements FUNCTION and ENDFUNCTION. Function modules and their interfaces are created in the Function Builder.
    Function Module Interfaces
    The parameter interface of a function module is defined in the Function Builder. It includes the definition of interface parameters and the specification of exceptions that can be triggered by a function module. The Function Builder automatically generates comment lines below the FUNCTION statement in the source code of the function module, which represent the interface of the function module with the following syntax:
    Syntax
    ... [IMPORTING parameters]
    [EXPORTING parameters]
    [CHANGING parameters]
    [TABLES table_parameters]
    [{RAISING|EXCEPTIONS} exc1 exc2 ...]
    The syntax and semantics of IMPORTING, EXPORTING, CHANGING, RAISING, and EXCEPTIONS mainly correspond to the definition of method interfaces with [CLASS-]METHODS. The additional option of defining table parameters using TABLES is obsolete.
    Interface parameters
    The interface parameters are defined on the relevant tab pages in the Function Builder.
    IMPORTING parameters are input parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input parameter. The content of the actual parameter is passed to the input parameter when the call is made. The content of an input parameter for which 'pass by reference' is defined cannot be changed in the function module.
    EXPORTING parameters are output parameters. When the function module is called, a suitable actual parameter can be specified for every output parameter. The content of an output parameter that is defined for 'pass by value' is transferred to the actual parameter if the function module is completed without errors. An output parameter that is defined for pass by reference is not initialized when the function module is called.
    CHANGING parameters are input and output parameters. When the function module is called, a suitable actual parameter must be specified for every non-optional input or output parameter. When the function module is called, the content of the actual parameter is passed to the input/output parameter, and when the function module is completed, the content of the input/output parameter is passed to the actual parameter.
    TABLES parameters are table parameters. Table parameters are obsolete CHANGING parameters that are typed as standard tables with a header line. If an internal table without a header line or a table body is passed as an actual parameter to a formal parameter of this type, an empty local header line is generated in the function module. If an internal table with a header line is used as an actual parameter, both the table body and the header line are passed to the function module. Pass by value is not possible in formal parameters defined using TABLES. Formal parameters defined with TABLES can be replaced by formal parameters defined with CHANGING. A local work area can be created for the internal table in the function module by using the addition LIKE LINE OF itab of the DATA statement.
    Exceptions
    The exception of a function module are defined on the Exceptions tab page in the Function Builder. Here you can select exception classes to define whether class-based exceptions are declared or non-class-based exception are defined. Class-based exceptions are represented in the above syntax by RAISING, and non-class-based exceptions are represented by EXCEPTIONS.
    The addition RAISING is used to declare class-based exceptions that can be propagated from the function module to the caller. Exceptions in the categories CX_STATIC_CHECK and CX_DYNAMIC_CHECK must be explicitly declared, otherwise a propagation can lead to an interface violation. A violation of the interface leads to the treatable exception CX_SY_NO_HANDLER. Exceptions of the category CX_NO_CHECK are implicitly always declared. The declaration of exceptions of the category CX_STATIC_CHECK is statically checked in the syntax check. For exceptions of the category CX_DYNAMIC_CHECK, the check is not performed until runtime. In a function module in which class-based exceptions are declared with the RAISING addition, the statement CATCH SYSTEM-EXCEPTIONS cannot be used. Instead, the relevant treatable exceptions should be handled in a TRY control structure.
    The addition EXCEPTIONS is used to define a list of non-class-based exceptions that can be triggered in the function module using the statements RAISE or MESSAGE RAISING. Exceptions defined in this way - as with formal parameters - are bound to the function module and cannot be propagated. If an exception of this type is triggered in a function module, and no return value has been assigned to it with the homonymous addition EXCEPTIONS of the CALL FUNCTION statement when the call was made, this leads to a runtime error.
    Note
    For new developments after release 6.10, SAP recommends that you work with class-based exceptions that are independent of the function module.
    RFC is a technology which is used to access a functions (Modules) from
    the remote systems.
    If a function module is set as remote enabled which can be access from
    the remote system via RFC.Eg: U can access the Remote enabled function modules in ur VB,Webdynpro,Java,Visual composer program.
    A function module can be set as remote enabled by SE37->Go to ur FM->click the option Button "remote enabled".
    But Normal function modules can not accessd from the remote system.
    Good Example for RFC enabled function module is : BAPI(Business Application Programming Interface)
    Note: All BAPIs are Remote enabled but not all remote enabled function modules are BAPI.
    CALLING A FUNCTION MODULE:
    1)In U ABAP Editor --> Click "Patter" ---> Selection Option Button "Call Function"
    --> Write the Corresponding FM name --> Hit Enter
    2)The appropriate import ,export Parameters will be displayed in ur editor
    3)Pass the Values Here.
    Also check these links.
    http://www.geocities.com/victorav15/sapr3/abapfun.html
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    Check this link:
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/d94b78ebf811d295b100a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
    See the following links:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db970e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Function Modules related to BOM

    Hi BW Gurus,
    I am having a requirement to extract data from the function module for the PP module for the standard BOM.
    I found out some function modules for my requirement csap_mat_bom_read and my problem here when i am trying to create a generic data source on using this function module it displays a error msg " The specified table  does not exist ".
    I am working first on function modules please let me know whether these function modules useful to fetch data in BW or not.
    Give me your input of how to proceed further.
    Regards,
    Syed

    Hi Shahid
    You cannot create a generic datasource directly on a SAP standard function module, you should either create a custom FM and use the standard FM to get the data to a internal table and pass the values to a structure of datasource. Or use SAP tables to extract data to ITAB.
    Rahul

  • Doubt in function module...Urgent!!

    hii all
         I want to find the difference between sy-datum and BLDAT and have to get only the days value...
    for eg...
        sydatum(28.11.2007) - bldat(24.11.2007)= Days(4)
    4 must the result... so i used the function module C14B_DIFF_BT_2_DATES..
    but im unable to get the result...
    my code is.....
    *& Report  ZAGE1
    REPORT  ZAGE1.
    type-pools : slis,icon.
    tables : bsid,kna1,knvv.
    data : d_fieldcat type slis_t_fieldcat_alv,
           d_fieldcat_wa type slis_fieldcat_alv.
    data : begin of itab_bsid occurs 0,
           kunnr like bsid-kunnr,
           bukrs like bsid-bukrs,
           bldat like bsid-bldat,
           waers like bsid-waers,
           belnr like bsid-belnr,
           end of itab_bsid.
    data : begin of itab_kna1 occurs 0,
           kunnr like kna1-kunnr,
           end of itab_kna1.
    data : begin of itab_knvv occurs 0,
           kunnr like knvv-kunnr,
           zterm like knvv-zterm,
           end of itab_knvv.
    data : begin of itab_key occurs 0,
            kunnr like bsid-kunnr,
           bukrs like bsid-bukrs,
           bldat like bsid-bldat,
           waers like bsid-waers,
           belnr like bsid-belnr,
           zterm like knvv-zterm,
           due type i,
           end of itab_key.
    selection-screen : begin of block blk1 with frame title text-001.
    parameters : p_cc like bsid-bukrs.
    selection-screen : end of block blk1.
    select distinct kunnr bukrs bldat waers belnr from bsid into corresponding fields of table itab_bsid where bukrs = p_cc.
    if not itab_bsid[] is initial.
    select kunnr from kna1 into corresponding fields of table itab_kna1 for all entries in itab_bsid where kunnr = itab_bsid-kunnr.
    if not itab_kna1[] is initial.
    select kunnr zterm from knvv into corresponding fields of table itab_knvv for all entries in itab_kna1 where kunnr = itab_kna1-kunnr.
    endif.
    endif.
         loop at itab_bsid.
         itab_key-kunnr = itab_bsid-kunnr.
         itab_key-bukrs = itab_bsid-bukrs.
         itab_key-bldat = itab_bsid-bldat.
         itab_key-waers = itab_bsid-waers.
         itab_key-belnr = itab_bsid-belnr.
         append itab_key.
         clear itab_key.
         endloop.
         sort itab_key by kunnr.
         loop at itab_key.
         read table itab_knvv with key kunnr = itab_key-kunnr.
         if sy-subrc = 0.
         itab_key-zterm = itab_knvv-zterm.
         modify itab_key transporting zterm.
         endif.
         endloop.
        d_fieldcat_wa-fieldname = 'KUNNR'.
        d_fieldcat_wa-seltext_l = 'CUSTOMER'.
        d_fieldcat_wa-col_pos = 1.
        append d_fieldcat_wa to d_fieldcat.
        clear d_fieldcat_wa.
         d_fieldcat_wa-fieldname = 'BUKRS'.
        d_fieldcat_wa-seltext_l = 'COMPANY CODE'.
        d_fieldcat_wa-col_pos = 2.
        append d_fieldcat_wa to d_fieldcat.
        clear d_fieldcat_wa.
         d_fieldcat_wa-fieldname = 'WAERS'.
        d_fieldcat_wa-seltext_l = 'CURRENCY'.
        d_fieldcat_wa-col_pos = 3.
        append d_fieldcat_wa to d_fieldcat.
        clear d_fieldcat_wa.
         d_fieldcat_wa-fieldname = 'BLDAT'.
        d_fieldcat_wa-seltext_l = 'DOCUMENT DATE'.
        d_fieldcat_wa-col_pos = 4.
        append d_fieldcat_wa to d_fieldcat.
        clear d_fieldcat_wa.
         d_fieldcat_wa-fieldname = 'BELNR'.
        d_fieldcat_wa-seltext_l = 'DOCUMENT NO'.
        d_fieldcat_wa-col_pos = 5.
        append d_fieldcat_wa to d_fieldcat.
        clear d_fieldcat_wa.
         d_fieldcat_wa-fieldname = 'ZTERM'.
        d_fieldcat_wa-seltext_l = 'PAYMENT TERMS'.
        d_fieldcat_wa-col_pos = 6.
        append d_fieldcat_wa to d_fieldcat.
        clear d_fieldcat_wa.
    *data : due type i.
    loop at itab_key.
       CALL FUNCTION 'C14B_DIFF_BT_2_DATES'
         EXPORTING
           I_DATE_FROM                     = itab_key-bldat
           I_DATE_TO                       = sy-datum
        IMPORTING
          E_DAYS                          = itab_key-due
         E_MONTHS                        = months
        E_YEARS                         = years
       EXCEPTIONS
         PLAUSIBILITY_CHECK_FAILED       = 1
         OTHERS                          = 2
       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    append itab_key.
    endloop.
        d_fieldcat_wa-fieldname = 'DUE'.
        d_fieldcat_wa-seltext_l = 'DUE DATE'.
        d_fieldcat_wa-col_pos = 7.
        append d_fieldcat_wa to d_fieldcat.
        clear d_fieldcat_wa.
        data : gd_repid like sy-repid.
        gd_repid = sy-repid.
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
          I_INTERFACE_CHECK                 = ' '
          I_BYPASSING_BUFFER                = ' '
          I_BUFFER_ACTIVE                   = ' '
           I_CALLBACK_PROGRAM                = gd_repid
          I_CALLBACK_PF_STATUS_SET          = ' '
          I_CALLBACK_USER_COMMAND           = ' '
          I_CALLBACK_TOP_OF_PAGE            = ' '
          I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
          I_CALLBACK_HTML_END_OF_LIST       = ' '
          I_STRUCTURE_NAME                  =
          I_BACKGROUND_ID                   = ' '
          I_GRID_TITLE                      =
          I_GRID_SETTINGS                   =
          IS_LAYOUT                         =
           IT_FIELDCAT                       = d_fieldcat
          IT_EXCLUDING                      =
          IT_SPECIAL_GROUPS                 =
          IT_SORT                           =
          IT_FILTER                         =
          IS_SEL_HIDE                       =
          I_DEFAULT                         = 'X'
          I_SAVE                            = ' '
          IS_VARIANT                        =
          IT_EVENTS                         =
          IT_EVENT_EXIT                     =
          IS_PRINT                          =
          IS_REPREP_ID                      =
          I_SCREEN_START_COLUMN             = 0
          I_SCREEN_START_LINE               = 0
          I_SCREEN_END_COLUMN               = 0
          I_SCREEN_END_LINE                 = 0
          I_HTML_HEIGHT_TOP                 = 0
          I_HTML_HEIGHT_END                 = 0
          IT_ALV_GRAPHICS                   =
          IT_HYPERLINK                      =
          IT_ADD_FIELDCAT                   =
          IT_EXCEPT_QINFO                   =
          IR_SALV_FULLSCREEN_ADAPTER        =
        IMPORTING
          E_EXIT_CAUSED_BY_CALLER           =
          ES_EXIT_CAUSED_BY_USER            =
          TABLES
            T_OUTTAB                          = itab_key[]
        EXCEPTIONS
          PROGRAM_ERROR                     = 1
          OTHERS                            = 2
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    Urgent plz help me....!!
    Regards
    Asha

    Check the following code for subtract years/months/date from particular date:
    DATA: EDAYS LIKE VTBBEWE-ATAGE,
    EMONTHS LIKE VTBBEWE-ATAGE,
    EYEARS LIKE VTBBEWE-ATAGE.
    PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
    TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
    call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
    exporting
    i_date_from = FROMDATE
    i_date_to = TODATE
    I_FLG_SEPARATE = ' '
    IMPORTING
    E_DAYS = EDAYS
    E_MONTHS = EMONTHS
    E_YEARS = EYEARS.
    WRITE:/ 'Difference in Days ', EDAYS.
    WRITE:/ 'Difference in Months ', EMONTHS.
    WRITE:/ 'Difference in Years ', EYEARS.
    INITIALIZATION.
    FROMDATE = SY-DATUM - 60.
    For difference between two dates.
    data : date1 like sy-datum,
    date2 like sy-datum,
    diff(10 ) type c.
    date1 = '20071003'.
    date2 = '20071104' .
    CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
    EXPORTING
    I_DATUM_BIS = date1
    I_DATUM_VON = date2
    I_KZ_EXCL_VON = '0'
    I_KZ_INCL_BIS = '0'
    I_KZ_ULT_BIS = ' '
    I_KZ_ULT_VON = ' '
    I_STGMETH = '0'
    I_SZBMETH = '1'
    IMPORTING
    E_TAGE = diff
    EXCEPTIONS
    DAYS_METHOD_NOT_DEFINED = 1
    OTHERS = 2
    IF SY-SUBRC <> 0 .
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF .

Maybe you are looking for

  • ITunes won't open after update to leopard

    I just updated to OSX10.5.8, thats as far as a PPC G5 will go, however when trying to use iTunes it says I need a later version of Quicktime, which doesn't come up when I check for updates. 7.5.5 and I have 7.3.0. Is there a solution for this? Thanks

  • EQUIPMENT ASSIGNMENT TO ASSET MASTER RECORD

    Hi All: I am trying to assign the Equipment Number in the Asset Master Record but am not able to do so. Is it even possible, has anyone had any success with the configurations and can share them with me? I know that I can create the Equipment Number

  • Duty calculation for import PO for a specific material group

    Hi All, As per company requirement, we need to do changes in duty calculation for import PO for a specific material group. Current scenario :  Currently  duty calculating on MRP with abatement  35% ( We have ABTT condition @ 35% of MRP). For example:

  • Use of XQuery Update Facility

    Dear all, I am looking for some database systems that use the W3C XQuery Update facility specification to modify their data. To the best of my knowledge, no of well-known commercial database systems uses XQuery Update primitives. For instance, Oracle

  • Applescript: Packaging and exporting PDFs for multiple files -- need some tweaks

    I found and tweaked a droplet script that isn't quite working right. I am hoping for some help with getting it to work the way I want. I tried and failed to learn to do this myself. Your help is greatly appreciated! Here's an example: I drag two file