cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform issue

Former Member
0 Kudos

Hi Experts,

When i look at smartform from spool or from print preview it looks ok, but when i try to make pdf file using OTF table my smartform is without special characters (polish letters).

so what should be the solution.

Regards,

Christina

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Jan 7, 2009 11:30 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christina,

try as to as below:


DATA: lv_lines TYPE I,
lv_filesize TYPE STRING,
lv_pdf_xstring TYPE xstring.

DATA: lt_otf TYPE STANDARD TABLE OF ITCOO,
lt_obj_bin TYPE STANDARD TABLE OF SOLISTI1,
lt_lines TYPE STANDARD TABLE OF TLINE,
u2022	Convert OTF to PDF 
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = lv_filesize
bin_file = lv_pdf_xstring
TABLES
otf = lt_otf
lines = lt_lines
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.
u2022	Convert PDF data into Binary fomrat 
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = lv_pdf_xstring
TABLES
binary_tab = lt_objbin.


This solves your problem.

Thanks

Answers (0)