ABAP/exits,function module

Iam new to ABAP. No Idea abt Exits & Routines and fnction modules.
How to use CMOD to do enhancements.
Can anyone pls help me step by step.
I'll be greatful for your reply.
Pls send me if u have any documents which explains clrealy. And also any step by step screen shorts are appreciated. 
[email protected]
regards
pj

Hello Pankaj,
Please go through these links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
Enhancement
User exit
Regards,
Praveen

Similar Messages

  • BAPI , BADI , USER EXIT , FUNCTION MODULE

    Hi Experts
    Can any body pls explain me abt BAPI , BADI , USER EXIT , FUNCTION MODULE  and its uses in details .
    Thanks
    Devashish

    Dear Deba,
    Functional Module:Procedure that can only be defined in function groups and outside of classes. Can be called from all
    programs. Begins with FUNCTION and ends with ENDFUNCTION. Is maintained using the Function Builder of the ABAP
    Workbench.
    Functional Module can be checked using T Code SE37 for a package ,say in standard SAP CS15 will be used for checking
    the where used list for a material and here it can be checked only for one material,in case if we want to check for a list of
    materials a small report can be developed using the fucntional modules like
    CSEP_MAT_BOM_SELECT_WHERE_USED   API Bills of Material: Select BOM(s) (or)
    CS_WHERE_USED_MAT                Bills of material; where-used list
    User Exit:A point in an SAP program where a customer's own program can be called.
    In contrast to customer exits, user exits allow developers to access and modify program components and data objects in the
    standard SAP System. On upgrade, each user exit must be checked to ensure that it conforms to the standard system.
    There are the following types of user exit:
    User exits that use INCLUDEs - These are customer enhancements that are called directly in the program.
    User exits that use tables - these are used and managed using Customizing.
    User Exits can be viewed or checked using the T Code SMOD and using CMOD an user exit will be activated.
    BAdi:
    A template for BAdI objects.
    Business Add-Ins (BAdIs) are the basis for enhancements where BAdI methods in object plug-ins can be called from ABAP
    programs. The calling program controls which BAdI implementations are used by specifying filter values. A BAdI consists of a
    BAdI interface, a set of filters and some settings.
    From Release 7.0, BAdIs are edited in the Enhancement Builder and reside in the global class namepsace. You can switch on
    their implementations via the Switch Framework.
    There are also classic BAdIs, which are edited in the BAdI-Builder and superseded function module exits in Release 4.6.
    Related T Code SE18.
    Regards
    Mangalraj.S

  • Badi's, user exits, function modules and reports

    Hi all,
    Can anybody tell me the exact diff among Badi's, user exits, function modules and reports? I mean what are their functions?
    thanks

    Hi,
         This is a beginners question,but still you can check the below links.
    BAdis:
    Regarding Enhancements/User-Exits in ABAP
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ee/a1d548892b11d295d60000e82de14a/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/779183#
    FM:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    Reports:
    http://it.toolbox.com/wiki/index.php/How_many_types_of_reports_are_there_in_ABAP_and_what_is_the_difference_between_them%3F
    Regards,
    saurabh

  • Inserting records in the ABAP exit function (hashed table XTH_DATA)

    Hi all,
    I want to add records in the logic of an ABAP exit function. Due table XTH_DATA being a hashed table the normal insert or append is not possible.
    My logic MUST move the data to a temporary table (ITAB) where the logic is executed (modifying KYF values and creating new records.
    In order to quickly get to a result I have solved the problem in an awful way through hardcoding the structure of ITAB to be the same as XTH_DATA is in this specific case.
    I would like to know if someone has an exmaple of a nice way to dynamically create an ITAB with the structure of XTH_DATA?
    At the end it should be possible to do: XTH_DATA[] = itab[].
    Greetings,
    Martin

    Hi Martin,
    the only way I know is to solve this problem with sort of pointers, field symbols. Roughly spoken the idea is you lookup the structure of xth_data in table dd03l. you define an internal table of type any. you loop around your xth_data table and assign the value of each column of xth_table to your internal table. then you do your your adding. Hopefully then you can simply assign xth_data to your itab.
    regards,
    Jürgen

  • How to Debug the DMEE exit function module

    Hi All,
    I wants to Debug the DMEE  tree exit function module.
    Could you please guide me.
    Regards,
    Seshadri

    Put a BREAK USER in User-Exit.
    Once the system enters into debugging mode,
    in debuger on setting tab,
    check the Update Debugging and System Debugging.
    Regards
    Bala Krishna

  • Function Module to retrive conversion exit function module names based on conversion routine

    Hi All,
    Can you people help me out in finding a function module, which takes conversion routine name as input and gives all the conversion exit function modules as output.
    Thanks and Regards,
    Shivaraj Naik.

    Curious, I looked for the way SAP do the job in SE11, and they also use the CONCATENATE option...
    From Include LSD11F01 Form OBJ_GOTO
    *       Objektspezifische Navigationsziele
    *      --> GOTOID   Kennung für Navigationsziele
    *      --> DDNAME   Dictonary-Name
    form obj_goto using  gotoid type gotoid
                         ddname.
      case gotoid.
        when 'CNVE'.   "Konvertierungsexit zu Domäne
          data: wb_request type ref to cl_wb_request.
          data: fb_name like tfdir-funcname
                            value 'CONVERSION_EXIT_'.
          concatenate fb_name ddname '*' into fb_name.
          condense fb_name.
    * Request für Infosystem erzeugen
          class cl_wb_infosystem definition load.
          call method cl_wb_infosystem=>create_request
            exporting
              p_object_type        = 'FF'
              p_object_name        = fb_name
              p_operation          = swbm_c_op_search
              p_suppress_selection = 'X'
              p_show_as_popup      = 'X'
            importing
              p_wb_request         = wb_request
            exceptions
              action_cancelled     = 1
              execute_in_batch     = 2
              error_occured        = 3.
    Regards,
    Raymond

  • ABAP program/Function module to assign the roles in SU01

    Hi,
    Is there any ABAP program/function module to assign the roles in SU01. And program/function module which does all teh SU01 related activities.
    Thanks and Regards,
    Rashmi

    Hello,
    Check the function modules that start with BAPI_USER*
    To assign roles :
    BAPI_USER_ACTGROUPS_ASSIGN
    To assign profiles :
    BAPI_USER_PROFILES_ASSIGN
    To change user's metadata (name, settings, ... other SU01 functions) :
    BAPI_USER_CHANGE
    Success.
    Wim

  • Dynamic Call --- User Exit/Function Module

    Hi All,
    We have a User Exit/Function Module which is called dynamically. This is configured and we are missing its configuration path. Could any of you guys let me know more details where this configuration could reside ?
    Thanks much
    Raghu

    Hi,
    When this function module CALL FUNCTION LT_TRWPR-FUNCTION is called, it automatically goes into a Z_XXXXXXXXX function module.
    This function module is called in all transactions where financial postings could happen, however to be precise i would say at the time of Vendor invoice postings.
    Eg: Tcodes MIRO, FB60.
    Thanks
    Raghu Kolla

  • Find Userexit name based on Exit function module

    Hi All,
    Is there any way to find the userexit name based on the function module.
    My exit function module is EXIT_SAPLATPC_001. I want to find the exit name.
    Appreciate your help.
    Thanks,
    Jaffer Ali.S

    Hi
    This is the Exit Name: ATP00001 for the Exit FM you have given. I took the package name this exit FM is stored in the Attributes of FM in SE37. In the search criteria of SMOD,after hitting f4..and selecting Information System, I gave the package name...and it gave me the exit name.
    P.S: The above method may sometimes lead to giving in more than one exit as result.
    Vishwa.

  • Report, back ground job, user exit, function module used

    I have more than 100 Z program and report painter program, user exit, function module for one country, inside this country, there are many company code, for a specific company code, I want to know which Z program/CMOD user exit/function module/back groundjob is used in this company code, any table or transaction can do?
    also can we find all z tables used in this company code?

    May be this url can help you http://it.toolbox.com/wiki/index.php/Find_data_in_your_SAP_system_and_know_which_tables_do_what

  • Call WDA from ABAP via function module

    Hi WDA experts,
    is there any possibility to call a WDA within a ABAP report AND include it in the process.
    The best would be to call a WDA via a function module - make some inputs on the WDA side - press submit and the function module gives me the data from the webdynpro back to my application.
    I know that I can call a WDA via the function CALL_BROWSER, but in this case the WDA application is fully independent from the report and I am not able to post any data back to the report.
    I also know FM WDY_EXECUTE_IN_PLACE, but in this case I need a HTML container to display the WDA and there it seems that I also never get back any data back to the report.
    Any hints are appreciated.

    Not too hard:
    CALL WDA passing in a KEY on start plug.
    write the data to a shared memory object using the key passed as the
    key to a shared memort object on the submit.
    (see blogs on writing Shared maemory objects in ABAP)
    Then simply exit APP.
    On return read the data from the Shared memory Object.
    The shared memory object lives across the 2 sessions.
    cheers
    Phil.

  • How to fetch values at runtime in field exit function module

    Hi all,
    I am creating a field exit for delivery date in Purchase requisition.
    For that I need to capture Delivery Date and Sale Order entered in purchase requisition and pass this to Function module and validate this data.
    I am using import and export parameters but it is giving runtime error.
    please tell me how to solve it.
    Regards,
    Sunny

    Hi,
    There are other ways to access the purchase requisition related values..that is using field symbols..
    pls check the below mentioned link:
    Re: Pricing Routine : Can we get the VBAP Data in this pricing routine.(VOFM)
    Identify the similar data fields for requisition.
    Hope this wil help..
    Sumit

  • User exit function module include how to write the code

    hi all,
    i am creating user exit  for ME22N  using this enhance  MM06E005 .
    in this i created subscreen and set some fields .
    that data has to be stoe in EKPO.
    inside the include i have to write the logic plz guide me how to follow .
    once i enter it will store on wish internal table and wish internal table to shall i move to EKPO .
    If Tcode is ME23N how to display data in disable mode.
    Regards,
    Hari.

    This is the code inside the function module .
    once i enter data in custom field the below wish table it will store.
    FUNCTION EXIT_SAPMM06E_016.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(I_EKPO) LIKE  EKPO STRUCTURE  EKPO
    *"     VALUE(I_AKTYP)
    *"     VALUE(I_CI_EKPO) LIKE  EKPO_CI STRUCTURE  EKPO_CI
    *"     VALUE(I_BSTYP) LIKE  EKKO-BSTYP
    *"     VALUE(I_NO_SCREEN)
    *"     VALUE(I_LFA1) LIKE  LFA1 STRUCTURE  LFA1
    *"     VALUE(I_LFM1) LIKE  LFM1 STRUCTURE  LFM1
    *"     VALUE(I_EKKO) LIKE  EKKO STRUCTURE  EKKO
    *"     VALUE(I_REKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_KEKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_AEKPO) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_REBAN) LIKE  EBAN STRUCTURE  EBAN OPTIONAL
    *"     VALUE(I_MT06E) LIKE  MT06E STRUCTURE  MT06E OPTIONAL
    *"     VALUE(I_EINA) LIKE  EINA STRUCTURE  EINA OPTIONAL
    *"     VALUE(I_EINE) LIKE  EINE STRUCTURE  EINE OPTIONAL
    *"     VALUE(I_EKPO_OLD) LIKE  EKPO STRUCTURE  EKPO OPTIONAL
    *"     VALUE(I_KOMP) LIKE  KOMP STRUCTURE  KOMP OPTIONAL
    *"     VALUE(I_ENJ_CALL) OPTIONAL
    *"  TABLES
    *"      TEKPO STRUCTURE  BEKPO OPTIONAL
    *"      TEKET STRUCTURE  BEKET OPTIONAL
    *"      TEKKN STRUCTURE  EKKNU OPTIONAL
    *"      TKOMV STRUCTURE  KOMV OPTIONAL
    INCLUDE ZXM06U41 .
    ENDFUNCTION.
    inside the INCLUDE ZXM06U41 .  i writen this code
    *&  Include           ZXM06U41
    DATA :
          FS_EKPO TYPE EKPO_CI.
    IF ( SY-TCODE EQ  'ME22N' OR SY-TCODE EQ 'ME23N'
          OR SY-TCODE EQ 'ME22' OR SY-TCODE EQ 'ME23' ) .
      LOOP AT TEKPO.
       IF ( TEKPO-EBELN EQ i_EKPO-EBELN
            AND TEKPO-EBELP EQ i_EKPO-EBELP ) .
        EKPO_CI-ZMATERIAL = TEKPO-ZMATERIAL.
        EKPO_CI-ZQUANTITY = TEKPO-ZQUANTITY.
        EKPO_CI-ZUNIT     = TEKPO-ZUNIT.
        EKPO_CI-ZPRICE    = TEKPO-ZPRICE.
        EKPO_CI-ZCURRENCY = TEKPO-ZCURRENCY.
       ENDIF.
      ENDLOOP.
    ENDIF.
    Regards,
    Hari.

  • Attribute value to exit function module

    Hello group,
    I'm working in a sem-bps project and I have a problem with an exit function, because
    I need the function module to read the value of a characteristic's attribute.
    I read the standard function module UPF_VARIABLE_USER_EXIT_ATTR: it retrieves the attribute value through the import parameters ITO_ATTR TYPE  UPC_YTO_ATTR.
    I put this attribute on my exit function but when I check the content of the attribute it’s always empty. Do you know how I can transmit the parameter from the exit planning function to the function module?
    Any input is appreciated, thanks Andrea

    Andrea, if you want to fill a variable with the characteristic's attribute of another variable look at the document "HowTo_BPS_VarOfTypeExit.pdf" (i send at your e-mail if you want). It Follows an extract in which it's filled the second variable with the characteristic's attribute of another variable: 
    Source code: Attribute values
    SELECT * FROM /bi0/mbps_produ INTO TABLE lt_chavl
    WHERE bps_prodl = ls_varsel-low.
    if sy-subrc <> 0.
    MESSAGE e026(upc) WITH ls_varsel-low '0BPS_PRODL'.
    attribute value not found
    exit.
    endif.
    ls_varsel-seqno = '0000'.
    ls_varsel-chanm = '0BPS_PRODU'.
    LOOP AT lt_chavl INTO ls_chavl.
    ls_varsel-seqno = ls_varsel-seqno + 1.
    ls_varsel-low = ls_chavl-bps_produ.
    APPEND ls_varsel TO eto_charsel.
    ENDLOOP.
    In the example above ls_varsel contains the attribute value to provide to eto_charsel (the output table in which you have the result).
    I suggest you to debug your application to see how ito_attr is passed to the FM.
    Hope it helps.
    Fabio

  • Copy Function using ABAP Exit Function

    Hi Experts,
    I am trying to write a copy function using Exit Function (ABAP Code) for BPS-BW. Can anyone suggest me any how-to document provided by SAP for this purpose which mentions the standard steps as well as exactly where to change if I want to change some characteristics values. e.g. I would like to copy from one submission to another, so I would like to change the values of the characteristics SUBMISSION.
    Points will be rewarded.
    Thanks in advance

    Or alternatively you can suggest me, what changes do I need to make in the following code if I want to append to the xth_data rather than replacing the values. I want to use it for copy purpose to want to add extra record in the cube with modified characteristic value rather than replacing the first with the second.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA
    *"     REFERENCE(I_PLEVEL) TYPE  UPC_Y_PLEVEL
    *"     REFERENCE(I_METHOD) TYPE  UPC_Y_METHOD
    *"     REFERENCE(I_PARAM) TYPE  UPC_Y_PARAM
    *"     REFERENCE(I_PACKAGE) TYPE  UPC_Y_PACKAGE
    *"     REFERENCE(IT_EXITP) TYPE  UPF_YT_EXITP
    *"     REFERENCE(ITO_CHASEL) TYPE  UPC_YTO_CHASEL
    *"     REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"     REFERENCE(ITO_KYF) TYPE  UPC_YTO_KYF
    *"  EXPORTING
    *"     REFERENCE(ET_MESG) TYPE  UPC_YT_MESG
    *"  CHANGING
    *"     REFERENCE(XTH_DATA) TYPE  HASHED TABLE
    FIELD-SYMBOLS: <ls_data> TYPE ANY,
    <ch_struct> TYPE ANY,
    <cl_coorder> TYPE ANY.
    LOOP AT xth_data ASSIGNING <ls_data>.
    now <ls_data> points to a line of xth_data and can
    be used to reference each characteristic and/or
    keyfigure contained within.
    choose first structure which contains the characteristics.
    ASSIGN COMPONENT 'S_CHAS' OF STRUCTURE <ls_data> TO
    <ch_struct>.
    *Assign fields for value assignment in the record (ls_data)
    choose the characteristic '0COORDER' (use uppercase)
    ASSIGN COMPONENT '0COORDER' OF STRUCTURE <ch_struct> TO
    <cl_coorder>.
    *<cl_coorder> now contains the value of the internal order in the
    *record...
    *Make the changes in the values
    <cl_coorder> = '2'.
    When I am changing <cl_coorder> value to '2', I want it to get appened to xth_data as an additional record. That means the earlier <cl_coorder> value must be available in the cube as it is. What changes do I need to do in the code, please suggest.

Maybe you are looking for

  • HT4623 How do I copy photo and music from MacBook Pro to Mini Ipad?

    I have a MacBook Pro that has my collection of Photos and Music. I recently bought a Mini Ipad and wanted to copy/transfer some of my Photos and Music from the MacBook to the Mini Ipad. Have tried but cannot perform drag and drop since the Ipad is no

  • How do I set a link in an HTML file that points to a spot in a PDF?

    I want to go from an HTML file to a spot in a PDF. By spot in a PDF, I mean a location marked by a bookmark. What is the equivalent in a PDF file to the anchor tag in HTML with a name attribute? What HTML code do I use? If I use Word to make the PDF,

  • Dynamic VTI help needed!

    Hi all, I currently have an "ordinary" site-to-site VPN with static crypto maps at the spokes and a dynamic crypto map at the headend. What I'd like to do is replace this with static VTIs at the spokes and a dynamic VTI at the headend. I don't need a

  • HDMI display to LG 42" TV is partially cut off

    When I connect my Lenovo G500 windows 8.1 laptop to my TV the display is cut off on the edges, I've tried changing my screen resolution and that didn't work, does anyone know of fixes for this problem?

  • Error msg: your sys doesn't have required screen resolution

    Just downloaded & installed Presenter 9 trial version on my Win 7 system. My screen resolution only has two available settings, and neither one matches the precise resolution setting that the error msg says my system needs. What do I do?