ERP Database - The Unofficial ERP Knowledge Base

Facebook Twitter del.icio.us Digg it
ERP Database contains a huge collection of articles related to ERP System and Software. Many of the articles are specifically related to SAP. All these ERP/SAP articles are freely available to everyone.

If you would like to submit an article or share any document related to ERP or any specific ERP software. Please mail it to support@erpdb.info. Please make sure that the documents are not copyrighted.
Social Bookmarks:

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.

Share

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

  1. What is an Instance? An ‘Instance’ is an administrative unit that groups together components of an SAP R/3 system or simply an Application Server, which has its own set of work processes. A Client...
  2. 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...
  3. Using IDOC Method in LSMW Download the Article from Rapidshare or Mediafire....
  4. 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...
  5. Parallel Cursor Method in ABAP A program with the right functionality and smartly written, but with poor performance will not satisfy the client requirements. Business programs usually handle huge amounts of data. ABAP programs in...



Leave a Reply