Monday 25 July 2016

Global Class: Creation of Constructor


  • Go to Transaction Code : SE24.

  • Enter the Object Type as Class name start's with Z< class name > and click on create button.
  • Pop-up will appear.
  • Enter the short description.


  • Click on Save button.



  • Either save it in Local Package or Package.


  • To add Constructor , click on Constructor i.e Instance Constructor.

  •  Looks like,




  • To add Constructor , click on Class Constructor i.e Static Constructor.
  • Looks like,
  • Double click on Class_Constructor.
  • Enter the code.

  • Click on  Save and click on Back button.
  • Double click on Constructor.



  • Enter the Code.



  • Click on  Save and click on Back button.
  • Save -> Check -> Activate.
  • Go to Transaction Code SE38.



  • Enter the program name which start's with Y or Z < program name> and click on create.

  • Enter the Title.
  • Enter the Attribute Type as Executable Program.
  • Click on SAVE.
  • Save it in either in Local Package or Package.

  • Create the object.

  • Save -> Check -> Activate.
  


  • Execute.

      




 

No comments:

Post a Comment