cancel
Showing results for 
Search instead for 
Did you mean: 

Get Otf From Smartform

darren_bambrick2
Active Participant
0 Kudos

Hi All

Is there a way to get the otf data from a smartform without doing a print, or a print preview.

I have an action in CRM that fires of a class method that sends a smartform as an email.

I have modified the code to attach this smartform to an email.

The problem is that when the action is kicked off the Device is set to 'MAIL' and I get errors when I set the getotf = 'X' flag on the control_parameters of the smartform. This abends the process.

Is there a way to get the oft data from the smartform without getting any dialogs.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Yes!

When you call the fm of the smartforms set CONTROL_PARAMETERS-GETOTF to X, and get the OTF from JOB_OUTPUT_OPTIONS-OTFDATA

Max

darren_bambrick2
Active Participant
0 Kudos

Hi Max

Thanks for replying.

I am currently doing this.

The problem is when the device is set to mail and I use getotf='X' I am getting email errors and no email is sent.

So is there a way of getting the otf data from a smartform by calling the function module. I don't want any dialogs to pop up when I call the smartform function module.

Thanks

Former Member
0 Kudos

Hi

I suppose you have to change the device type, if you need the OTF format you should transfere the divece PRINTER instead of MAIL.

Max

darren_bambrick2
Active Participant
0 Kudos

Hi Max

Can I get it to go to printer without any dialogs poping up ?

i have set NO_DIALOG = 'X' but it doesn't work