cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform from class

Former Member
0 Kudos

Hi All,

CAn you please tell me.

How to call a smart form from the class.

Thanks

Ritika

Accepted Solutions (0)

Answers (3)

Answers (3)

narin_nandivada3
Active Contributor
0 Kudos

Hi Ritika,

When a smartform is generated and executed there is a function module generated by system which can

be used to call the smartform in a program.. So if you want class.. then implement the functionality of that

in a function module... so implement the functionality of SSF_FUNCTION_MODULE_NAME which gets the

smartform name in a class and then use that class in presence of the function module and then use the

function module which calls the smartform and implement the functionality of

CALL FUNCTION <smartform name> which is generated by the system..

This completes your task calling a Smartform from classes.

In general we don't consider everything to be done using classes and if this Smartform related should be

done using classes then one has to implement the functionality of function modules in the classes.

Hope this would help you.

Good luck

Narin

Former Member
0 Kudos

Hi ritika,

When you create a smartform a function module is automatically genrated you can call it anywhere in ur class.Please get back in case of any queries

Regards

Lalit

Sm1tje
Active Contributor
0 Kudos

every smartform has its own function module generated. The name of this function module can be retrieved from another function module. When you know this smartform function module you can call it from virtually 'everywhere'.

Use this FM to retrieve the name of the function module generated by the smartform.