SAP Database - The Unofficial SAP Knowledge Base

Free Business and Tech Magazines and eBooks

Should I use Instance Method or Static Method?

Print This Post Email This Post Written by admin on Sep 4th, 2008 | Filed under: ABAP

Instance methods are called using the following syntax:
CALL METHOD instance_name->instance_method_name

A static method which is also called as class method can be called using the class and does not require an Instance. Static methods are called using the following syntax:
CALL METHOD class_name=>instance_method_name

Class Methods are similar to instance methods but can only use static components.

If you like this post, you may as well like these too:

  1. ABAP Programs: Using static variables REPORT ZSOURCE1003.* Calling a form twicePERFORM COUNT.PERFORM COUNT.* Defining a form with a static variableFORM COUNT. STATICS CALLS TYPE I. CALLS = CALLS + 1. WRITE CALLS.ENDFORM.~~~~~ end of post...
  2. Redefined Method A Redefined method is a method in a subclass that provides a new definition of an inherited method from a super class in order to provide a more specialized implementation...
  3. Using IDOC Method in LSMW Download the Article from Rapidshare or Mediafire. ...



This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply

  • Subscribe to RSS

  • Free Ebooks