Posts

Global interface with example using parameters.

Image
* Interface is the collection of methods which are defined & not implemented. * In interface all methods are public by default. * In interface all methods are abstract  methods. Steps to create global interface in SE24. 1. Goto T-code  SE24 . 2. Give  name  and click on create, select  interface  and press enter. 3. Give  description,  Press enter. 4. Give  method name, level, description.  5. Save and activate. 6. Click on  parameters  and give parameters. 7.  Save  and  activate  and go back. 8. Create a sub class.      * Goto T-code  SE24.     * Give  name , Press enter, select  class  and press enter.     * Give  description  and press enter.     *   Goto  Interface  and give  interface name  and press  enter .     * Goto  methods  double click on method and write ...

Local abstract class with example using parameters.

Image
1. Goto SE38. 2. Give program name and click on create. 3. Give description and select type executable program . 4. Write code. REPORT  zab_cl_abstract . DATA :  lv_erzet  TYPE  erzet ,       lv_erdat  TYPE  erdat ,       lv_vbtyp  TYPE  vbtyp ,       lv_ernam  TYPE  ernam . PARAMETERS :  p_vbeln  TYPE  vbeln . PARAMETERS :  p_r1  TYPE  c  RADIOBUTTON  GROUP  g1 ,             p_r2  TYPE  c  RADIOBUTTON  GROUP  g1 . CLASS   cl_abstract  DEFINITION   ABSTRACT .    PUBLIC  SECTION .      METHODS  display  ABSTRACT        IMPORTING  pvbeln  TYPE  vbeln        EXPORTING  perzet...

Global abstract class with example using parameters.

Image
* A class which contain  at least  one or more than one abstract method then  it's  called as Abstract class.  * Abstract   method is the method which has only definition but not be any implementation. * We cannot create object for abstract class. * We can create objects for sub class of abstract  class. Steps to create abstract class in SE24. 1. Goto T-code SE24 . 2. Give name and click on create, select  class and press enter 3. Give description  and select generation abstract and uncheck the final. Press enter. 4. Give method name, level, visibility, description. 5. Click on parameters and give parameters. 6. Save and activate and go back. 7. Click on ' go to properties ', Select abstract , select ok and click on change. 8. Save and activate the class. 9. Create a sub class.     * Goto T-code SE24.     * Give name , Press enter, select  class and press enter.     * Give descri...