Enhancements in SAP ABAP

download Enhancements in SAP ABAP

of 2

Transcript of Enhancements in SAP ABAP

  • 8/12/2019 Enhancements in SAP ABAP

    1/2

    Enhancements in SAP ABAP [ Introduction ]

    Enhancements are the means by which we add our own/ modify existing functionality to SAP'sstandard business applications.

    If you try to modify any SAP standard program, it will ask you for access key which you can get fromSAP market place by requesting SAP.But enhancements normally dont require any special access key and can be implemented directly

    There are 4 ways of doing enhancements in SAP:

    1. User exits:

    These are technically modifications. SAP provides many subroutine(s) with name USEREXIT_ * (i.eex: FORM USEREXIT_001 )These are saved in many includes which can be found via SE80 >> Search for Package VMOD.These are also called as Form exits.

    Custom coding can be done in the subroutine. But the main disadvantage of these exits are : Itrequires Access key and only SD module supports this kind of enhancements.

    2. Customer exits:

    Technically enhancements. Will not affect the source code of SAP program and hence no problemduring upgrade. There are 3 kinds of Customer exits

    a) Function exits:Provided by means of FM's(Function modules) .The code for the function module is written by thedeveloper. You are not writing the code directly in the function module, but in the 'Z' include that is

    implemented in the function module.

    Ex: open any Function module EXIT_* in se37

    Ex: EXIT_SAPMF02K_001. but in the SAPMF02K program you will see this asCALL CUSTOMER-FUNCTION '001'It will have a Z include file , just edit the file directly . No Access key required.

    b) Menu Exits:Enhances the menu available in standard SAP program. Developer can add his/her own text andlogic for the menu. Function codes for menu exits all start with "+".

    Format: +CUS (additional item in GUI status)

    c) Screen exits:Used to enhance the screen, add elements in screen etcFormat: CALL CUSTOMER-SUBSCREEN CUSTSCR2

    3. BADI's:

    Business Add-Ins may be simply defined as an object-oriented extension of the SAP enhancementtechnique. Multiple implementation for same BADI can be done as BADI supports encapsulation of

  • 8/12/2019 Enhancements in SAP ABAP

    2/2

    data.

    4. Enhancement Frameworks:

    This is the new kind of enhancement technique provided by SAP. These provides some hooks orplaces where custom logic can be coded in the standard program.There are 2 kinds of Enhancement

    frameworks:

    a) Implicit andb) Explicit Enhancements

    I am giving an example of enhancement that I took part in recent future. When you are creating a POat that time there is the option for mentioning about the Down payment, But it can be done on lineitem level. But the client requirement was down payment should have to be done at PO level as onwhole PO amount. And also after that when create down payment at f-48 with reference of therespective PO number. there is the option for down payment at line item basis.So In this scenariowe have to went for Enhancement With the ABAPers.