cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform O/P Display Problem

Former Member
0 Kudos

Hi All, Can any one help to solve this issue, i have done coading for Smartform and sending email Email is getting send but i'm unable to see the display when i select the output it is directly sending email without display , what are the parameters need to pass to display and sending email.

Thanks

Surendra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

Try to Use below code before calling SSF_MODU ...

control-preview = 'X'.

control-no_open = 'X'.

control-no_close = 'X'.

control-no_dialog = 'X'.

control-device = 'PRINTER'.

control_parameters-no_dialog = 'X'.

control_parameters-no_open = 'X'.

control_parameters-no_close = 'X'.

OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.

OUTPUT_OPTIONS-TDNOPRINT = 'X'.

Surya

Answers (2)

Answers (2)

satyajit_mohapatra
Active Contributor
0 Kudos

Are you calling your Form directly from some custom print program or it is being called from some transaction?

Former Member
0 Kudos

Hi Satyajit ,

I'm calling form through Output Type

ls_control_param-getotf = 'X'.
ls_control_param-PREVIEW = 'X'.
ls_composer_param-TDNEWID = 'X'.

CALL FUNCTION fm_name
  EXPORTING
*   ARCHIVE_INDEX              =
*   ARCHIVE_INDEX_TAB          =
*   ARCHIVE_PARAMETERS         =
   control_parameters         = ls_control_param
*   MAIL_APPL_OBJ              =
*   MAIL_RECIPIENT             =
*   MAIL_SENDER                =
   output_options             = ls_composer_param
   user_settings              = ' '
    gt_header                  = gt_header
 IMPORTING
*   DOCUMENT_OUTPUT_INFO       =
   job_output_info            = gv_job_output
*   JOB_OUTPUT_OPTIONS         = LS_Output
  TABLES
    gt_item                    = gt_item
 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.
gt_otfdata[] = gv_job_output-otfdata[].

I have written the above code can some one help is there any other parameters need to pass?

---

Surendra

Former Member
0 Kudos

Solved by Self

satyajit_mohapatra
Active Contributor
0 Kudos

Check the output type and transmission medium is NACE....