Hello Experts,
When I try to tick the create new spool option when I call my smartform it does not
create any spool. I tried to put in some values in OPTIONS and CONTROL but it does not create any spool.
ls_control-device = 'ZEPLQ550'.
ls_options-tddest = 'MB02'.
ls_options-tdnewid = 'X'.
ls_options-tddataset = 'GUI'.
ls_options-tdimmed = space.
CALL FUNCTION lv_fmname
EXPORTING
control_parameters = ls_control
output_options = ls_options
user_settings = 'X'
TABLES
im_output = gt_output
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.