on 12-07-2007 11:11 AM
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.
THREAD CLOSED BUT NOT RESOLVED.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you configured transaction SCOT? Do you have fax server? If you have these in place you need to check the transmission in SCOT and look at the log, if these are fine check your fax server for their transmission logs.
Regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking at your code I think it's the parameter;
wa_ctrlop-GETOTF = 'X'.
This field is described as "Return of OTF table. No printing, display, or faxing", so by setting this flag the smartform will only return the output in OTF format to the calling program. I don't think this is what you want to happen.
Regards,
Nick
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.