cancel
Showing results for 
Search instead for 
Did you mean: 

Ask about Send pdf file to output device FAX

Former Member
0 Kudos

Hai All,

I have requirement about send forms(smartforms) that I need to send via output type "FAX". so what i`m thinking now is to convert the smartforms to pdf using Function module and then send it. but I don`t know what is the function module to send that pdf files to FAX. Is somebody have done something like that?

The other method that cross my mind is using output type nacha EQ 2 ("FAX"), but I`ve no idea how to do that.

Please kindly advise about that.

Regards and thanks in advance,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi don't worry and

Please reward points if this is useful

Use

Adobe® Portable Document Format (PDF) is a universal file format that contains all fonts, formats, and graphics. PDF files are widely used in the Internet, not least because the content of a PDF file cannot be changed, in contrast to Word. You can view PDF files using the Adobe® Acrobat Reader - a tool that is provided free of charge with Adobe.

Integration

Smart Forms does not support direct output in PDF format. Instead, the OTF output has to be converted to PDF. Fonts and code pages used (particularly with Asian languages) have to be correct in the OTF output and are dependent on the language in which the form is printed. Depending on the language, a different device type that supports the corresponding fonts has to be used for printing.

A device type for printing PDF or for creating a PDF file is therefore not adequate for a Smart Form that is used as a template for printing forms in a number of languages. The device type has to be set dynamically before the Smart Forms function module is called.

Features

To print a Smart Form in PDF, the Smart Forms OTF output has to be converted to PDF.

The restrictions in Note 323736 apply to all the options listed below for PDF conversion.

You can print a Smart Form in PDF as follows:

As of Basis Release 4.6D, you can use the device type PDF1 to print documents in PDF. This device type does not, however, contain all possible fonts and has to be extended for customer-specific fonts. See Note 317851 for PDF output in older releases.

You can return OTF as a table in the application program and convert this output to PDF. You can dynamically assign a device type for multi-lingual forms, using a function module (see Activities).

You can activate a PDF conversion when printing a Smart Form using SAPconnect. See also: Sending Forms via E-Mail or Telefax

Activities

Another option is for Smart Forms to return OTF and for you to convert it to PDF yourself:

Get the name of the generated function module using the function module SSF_FUNCTION_MODULE_NAME (see also: Integrating the Smart Form into the Application).

To get a device type suitable for the current language, call the function module SSF_GET_DEVICE_TYPE.

Set the device type using the parameter TDPRINTER of the standard parameter OUTPUT_OPTIONS (see also: Output Options). Transfer this parameter, together with the parameters for the OTF output, to the generated Smart Forms function module, as described under Returning a Form as a Table to the Application Program.

Get the OTF output from table OTFDATA of the standard parameter JOB_OUTPUT_INFO (see also: Querying the Output Result).

To convert the OTF output to PDF, transfer the OTF table to the function module CONVERT_OTF. To do this, set the parameter FORMAT to 'PDF'. The output can be returned either as a binary string (parameter BIN_FILE) or as a character table (parameter LINES). SAP recommends the first variant.

You can then store the PDF output using the function module GUI_DOWNLOAD, for example, as a local file on your PC.

It is also possible to send the PDF output in a BSP application to the Web browser for display (as of Internet Explorer 5.5 with Support Package 2). You can display a Smart Form in the BSP application SF_WEBFORM_04 as a PDF in the browser or in a separate window. OTF is converted to PDF (as described above) in the event handler OnInitialization of the BSP page pdfform.pdf.

WAY of Sending Forms by Telefax:

on this important link whole process

Thanks and Please reward points

Answers (1)

Answers (1)

Former Member
0 Kudos

How to convert smartform output into pdf?

There is a way to download smartform in PDF format.

Please do the following:

1. Print the smartform to the spool.

2. Note the spool number.

3. Download a PDF file (Acrobat Reader) version of the spool by running Program RSTXPDFT4 and entering the

noted spool number.

or use this program:

&----


*& Report ZPDF_DNLD_TEST2 *

*& *

&----


*& DEVK904540 *

*& *

&----


REPORT ZPDF_DNLD_TEST2 .

data: i_otf LIKE itcoo OCCURS 100 WITH HEADER LINE,

i_pdf LIKE tline OCCURS 100 WITH HEADER LINE.

data: op_option type SSFCTRLOP,

job_output type SSFCRESCL.

op_option-getotf = 'X'.

CALL FUNCTION '/1BCDWB/SF00000005'

EXPORTING

ARCHIVE_INDEX =

ARCHIVE_INDEX_TAB =

ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = op_option

MAIL_APPL_OBJ =

MAIL_RECIPIENT =

MAIL_SENDER =

OUTPUT_OPTIONS =

USER_SETTINGS = 'X'

itab1 = itab1

IMPORTING

DOCUMENT_OUTPUT_INFO =

JOB_OUTPUT_INFO = job_output

JOB_OUTPUT_OPTIONS =

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.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

MAX_LINEWIDTH = 132

ARCHIVE_INDEX = ' '

COPYNUMBER = 0

ASCII_BIDI_VIS2LOG = ' '

PDF_DELETE_OTFTAB = ' '

IMPORTING

BIN_FILESIZE =

BIN_FILE =

TABLES

otf = job_output-otfdata

lines = i_pdf

EXCEPTIONS

ERR_MAX_LINEWIDTH = 1

ERR_FORMAT = 2

ERR_CONV_NOT_POSSIBLE = 3

ERR_BAD_OTF = 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.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE =

filename = 'c:\test_pdf_sf.pdf'

FILETYPE = 'BIN'

tables

data_tab = i_pdf

FIELDNAMES =

EXCEPTIONS

FILE_WRITE_ERROR = 1

NO_BATCH = 2

GUI_REFUSE_FILETRANSFER = 3

INVALID_TYPE = 4

NO_AUTHORITY = 5

UNKNOWN_ERROR = 6

HEADER_NOT_ALLOWED = 7

SEPARATOR_NOT_ALLOWED = 8

FILESIZE_NOT_ALLOWED = 9

HEADER_TOO_LONG = 10

DP_ERROR_CREATE = 11

DP_ERROR_SEND = 12

DP_ERROR_WRITE = 13

UNKNOWN_DP_ERROR = 14

ACCESS_DENIED = 15

DP_OUT_OF_MEMORY = 16

DISK_FULL = 17

DP_TIMEOUT = 18

FILE_NOT_FOUND = 19

DATAPROVIDER_EXCEPTION = 20

CONTROL_FLUSH_ERROR = 21

OTHERS = 22

.

IF sy-subrc 0.

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

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

ENDIF.