2013 Dec 05 6:46 AM
Hi,
I have a global class zclass1. It has 4 methods, two of which are static methods. I want to create custom tcode for the static method(meth1) of this class. As in when i execute this tcode it'll call the static method. Kindly help me as to how to create this tcode.
Regards,
Sheetal.
2013 Dec 05 6:52 AM
Hi Sheetal
You can create a tcode in Se91 for instance based method. Inside it you can call static method.
Choose method of a class
Nabheet
2013 Dec 05 6:52 AM
Hi Sheetal
You can create a tcode in Se91 for instance based method. Inside it you can call static method.
Choose method of a class
Nabheet
2013 Dec 05 11:00 AM
Hi Nabheet,
This is working. But can we not create tcode for static method of global class directly?
Regards,
Sheetal.
2013 Dec 05 11:07 AM
Yes that is the restriction.. I tried it and it throws an error message..so learnt a new thing thanks to you:)
Nabheet
2013 Dec 05 11:15 AM
Hi Nabheet,
Thanks. This was new to me as well. I tried it and was getting the error as well. Atleast got it confirmed.
Regards,
Sheetal.
2013 Dec 05 6:55 AM
2013 Dec 05 6:55 AM
Hi,
Create the tcode using Method of a class.
Then link the tcode to the program which has this local class and then call the static method inside that program.
Hope this should work.
Regards,
Josh