Skip to Content

OverWrite Exits for Classes


I am trying to create Overwrite exit for the class, while doing this SAP is creating local class in some include and giving me chance to put my code in the same method for which i am trying to create over write exit.

Problem is from this local class i am not able to access the global class methods in which i am doing all this stuff.

How can i use the methods of global class, though instation of this global class requires some mandatory parameters which i cannot provide...

is there any restrictions in using exits for class enhancements..

need your inputs....


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 18, 2010 at 05:04 AM


    May be possibility is that,the data of the class which you are accessing through your class is first inherit the global class in your local class so that variables are visible to your local class ......

    another way is through access any public method method of that global class in which required data is passed....



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 12, 2010 at 11:53 PM

    Hi kranthi (or who feels good for),

    please let me learn how to "create Overwrite exit" and where and how SAP creates what kind of local class.

    I really do not understand what you are talking about.

    Thank you.



    Add comment
    10|10000 characters needed characters exceeded

  • Feb 12, 2010 at 02:44 PM

    You need to call another public method in your class and call that public method in the OverWrite method. Since this public method would be a part of the main class itself, you would be able to access all method / attributes of the class.


    Naimesh Patel

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 08, 2010 at 10:40 AM

    Just wondering if anybody has answer for this??

    when i create over-write exit for a method in class by using new enhancement framework, it creates local class i mentioned earlier in this thread.

    using this local class i need to call private method of the global class is it possible or forbidden by SAP??

    please let me know in general,

    whether local classes in Global classes can access private methods of global classes??

    • whether global classes which itself has local classes def and implementations in it can access local classes methods????*

    Please Suggest!!!!

    Edited by: kranthi kumar on Sep 20, 2010 4:57 PM

    Add comment
    10|10000 characters needed characters exceeded