cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms generating in same spool.

Former Member
0 Kudos

Hi ,

I'm generating the smarforms from my driver program with a loop. i.e. calling the function module more than one times. Right now this is my requirement. Now my question is whenever the output is coming it's coming in same spool. If i delete the spool then it's ok.

In the driver program how can i solve the problem. I need to generate different spool whenever i will run the smartforms.\

Thanks

Abhijit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

To Create New Spool Requests for Smartform in the same Program , Use OUTPUT_OPTIONS in Smartform FM Export Parameter.

Set the Value of TDNEWID as 'X' and Pass this Parameter into FM.

Like the Below Code.



data: w_options type SSFCOMPOP.


w_options-TDNEWID = 'X'.     " To create New Spool Request

  call function fm_name
    exporting
     OUTPUT_OPTIONS   =  w_options.

Best Regards

Kesavaperumal

Answers (0)