Skip to Content
avatar image
Former Member

Smartform issue

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 07, 2009 at 03:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded