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

No comments:

Post a Comment