cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORM: How to send to spool?

Former Member
0 Kudos

Greetings!

I need to send my SmartForm output directly to the spool (no dialogs). I found one post on here that wasn't very helpful so I'm asking again.

Does someone have some sample code I can use?

Thanks!!

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

Pass this parameters to your Smartform FM.


CONTROL_PARAMETERS-NO_DIALOG = 'X'.
CONTROL_PARAMETERS-PREVIEW = ' '.
OUTPUT_OPTIONS-TDNOPREV = ' '.

Regards,

Naimesh Patel

Answers (2)

Answers (2)

Former Member
0 Kudos

When making a call to the Smartform from the Driver program, as follows,

populate cs_control_param the following way,

cs_control_param-preview = ' '

cs_control_param-no_dialog = 'X'

CALL FUNCTION x_fmname

EXPORTING

CONTROL_PARAMETERS = cs_control_param

MAIL_RECIPIENT = cs_recipient

MAIL_SENDER = cs_sender

OUTPUT_OPTIONS = cs_composer_param

USER_SETTINGS = SPACE

is_nast = nast

:

:

:

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

message id sy-msgid type sy-msgty number sy-msgno

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Former Member
0 Kudos

Hi,

Have u seen the report RSTXPDFT4 to convert the spool to pdf.?

Regards

Kiran Sure