Hi Santhosh,
If you want to find the smartform name, if possible use debugger method as shown below.
Type /h command
Click Print preview button
Then debugger window will appear, press F9 and create breakpoints. In Function tab, enter the FM SSF_FUNCTION_MODULE_NAME as shown below. Click Ok and press F8.
The breakpoint will trigger inside FM SSF_FUNCTION_MODULE_NAME as shown below.
Smartform name is stored in the variable formname.
Regards
Rajkumar Narasimman