Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to Fax a SMARTFORM

$
0
0

Hello

 

I see there are lot of posts of Faxing a Smartform but can't seem to find an answer to my problem.  Maybe someone knows why my code is not faxing my Smartform?

 

 

What is wrong with this code?  It does not send a fax

 

   REPORT  zgarytest30.

TABLES: rf140, toa_dara, arc_params.

DATA: fm_name          TYPE rs38l_fnam,
      gs_control_param TYPE ssfctrlop,
      gs_output        TYPE ssfcompop.

DATA: ls_recipient TYPE swotobjid.
DATA: ls_sender    TYPE swotobjid.

DATA: BEGIN OF lt_text_lines OCCURS 0.
DATA: tdline TYPE tdline.
DATA: END OF lt_text_lines.

DATA: i_packlist TYPE zsf_packlist_data,
      ls_header TYPE zle_ps_header.


CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname = 'ZLE_SEARSCOM2_PACK'
  IMPORTING
    fm_name  = fm_name.

  gs_control_param-device    = 'TELEFAX'.
  gs_control_param-no_dialog = 'X'.
  gs_control_param-langu     = sy-langu.

  gs_output-tdteleland = 'US'.
  gs_output-tdtelenum  = '14194464274'.
  gs_output-tdtitle    = 'Test For Gary'.
  gs_output-tdcovtitle = 'Test For Gary2'.
  gs_output-tddest     = 'TEAM'.
  gs_output-tdimmed    = 'X'.
  gs_output-tddelete   = 'X'.
  gs_output-tdfaxuser  = 'SPGMR18'.
  gs_output-tdschedule = 'IMM'.
  gs_output-bcs_reqst  = 'A'.
  gs_output-bcs_status = 'E'.
  gs_output-tdarmod    = '1'.
  gs_output-tdcopies   = 1.

CALL FUNCTION fm_name
  EXPORTING
    archive_index      = toa_dara
    archive_parameters = arc_params
    control_parameters = gs_control_param
    mail_recipient     = ls_recipient
    mail_sender        = ls_sender
    output_options     = gs_output
    user_settings      = space
    is_packlist_data   = i_packlist
    zle_ps_header      = ls_header
  TABLES
    text_lines         = lt_text_lines
  EXCEPTIONS
    formatting_error   = 1
    internal_error     = 2
    send_error         = 3
    user_canceled      = 4.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>