cancel
Showing results for 
Search instead for 
Did you mean: 

Smart forms - Identifying the calling method and class

Former Member
0 Kudos

Hi Experts,

Is there a way to identify the method and class names that called a smart form..

Any inputs or pointers in this regard woul;d be of great help.

Regards,

Kris.

Accepted Solutions (1)

Accepted Solutions (1)

former_member205763
Active Contributor
0 Kudos

put a breakpoint on function module "SSF_FUNCTION_MODULE_NAME", and run the tcode which prints form and when it stops get the function module name

then using the fm number u can get formname from table STXFADMI

Former Member
0 Kudos

Hi Kartik,

The procedure you suggested is good to identify the class by manual intervention.

But I need the class/mehtod name in the program as the logic of the code depends on which class called the smart form.

Any idea how this can be read?

Regards,

Kris.

naimesh_patel
Active Contributor
0 Kudos

If you have the object reference avaliable in your Smartform, than you can use the Runtime Type Services class to get the class name. Check Method get_class_name of class CL_ABAP_CLASSDESCR.

Regards,

Naimesh Patel

Answers (0)