How to link a Methods of a Class to SAP TCode?

Linking Class Methods to Transaction Code in SAP

You can create a transaction code linked to a public method o f a class.

You can also do it for local method defined in an ABAP program.

Goto SE93. 

Enter the transaction code you want to link to, Choose "Method of a class" option and click the Create button.


Image to How to create OO transaction in ABAP

By default, you will have Method to link from Class Builder which is a global class.
Enter the Class Name and Method in the input field. Choose the update mode as per your requirement.

Image to How to create a transaction code from Global Class in ABAP


If you want to link your Local method of class from an ABAP program which is a Local Class,
just uncheck the checkbox "OO transaction model"

This will include you with an option "Local in Program". Check it and enter your ABAP program name and then the class and method.

Image to How to create a transaction code from local Class in ABAP Report




For more Tutorials, visit ABAP Tutorials, Tips & Tricks and Certification Questions

How to create documentation for ABAP Programs?

Documentation Creation for ABAP Programs

Open the ABAP program in SE38, that you w ant to create documentation
In the menu path, select G o t o • D o c u m e n t a t i o n.

ABAP Documentation for reference



When you open documentation, the system proposes a template where you can enter the documentation of the program . It has headers to let you organize the documentation into groups such as purpose, functionality, and integration . Enter the documentation as required, save the documentation. Now the documentation is available for reference.




For more Tutorials, visit ABAP Tutorials, Tips & Tricks and Certification Questions