Call a smart form from Report

Reports can be used to call a smart form and also pass data to the smart form. Such a report is commonly called as driver program.

Here is a example of a report calling smart from ZAU_SMARTFORM and passing a internal table  and a variable to the smart form which is latter used by the smartform.



Every smart-form generates a function module. The function module name is generated dynamically every time we change and activate a smartform.

SSF_FUNCTION_MODULE_NAME is used to obtain the current function module name of the smart form.

The name of function module created for the smart-form is stored in variable fmname (which is of type rs381_fnam) .Now we just need to call this fmname and pass the required data to be sent to smart form in this function module.