Skip to Content
0
Former Member
Dec 07, 2007 at 11:11 AM

Problem: Smartform not sent as Fax

15 Views

I am trying to send a fax but it is not going. I am encountering no error.

Please help, its urgent. Thank you.

Below is the code i am using .

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = c_formname

IMPORTING

FM_NAME = v_fmname

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

wa_ctrlop-NO_DIALOG = 'X'.

wa_ctrlop-DEVICE = 'TELEFAX'.

wa_ctrlop-PREVIEW = 'X'.

wa_ctrlop-GETOTF = 'X'.

*---SET OUTPUT PARAMETERS FOR FAX

wa_compop-TDTELELAND = 'MU'.

wa_compop-TDTELENUM = '2304021800'.

wa_compop-TDSCHEDULE = 'IMM'.

wa_compop-TDSENDDATE = SY-DATUM.

wa_compop-TDSENDTIME = SY-TIMLO.

*---NOW CALL THE GENERATED FUNCTION MODULE

CALL FUNCTION v_fmname

EXPORTING

V_FLAGI = v_flagi

V_FLAGP = v_flagp

V_BUKRS = v_bukrs

WA_HEADER_DETAILS = wa_header_details

  • ARCHIVE_INDEX =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = wa_ctrlop

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

OUTPUT_OPTIONS = wa_compop

  • USER_SETTINGS = WA_USER_SETTING

IMPORTING

  • DOCUMENT_OUTPUT_INFO =

JOB_OUTPUT_INFO = wa_return

TABLES

*-- passing internal tables

I_ITEMS = i_lips

I_PALLETS = i_pallets

*-- passing internal tables

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

COMMIT WORK.

IF sy-subrc EQ 0.

MESSAGE i001.

ENDIF.