<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871920#M367022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hendy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry to disturb u again &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually in my case I am using SAPCRIPT and not SMART-FORM and I am generating the OTF from spool-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i could not use :-&lt;/P&gt;&lt;P&gt; fs_ssfcompop-tdnewid = 'X'.&lt;/P&gt;&lt;P&gt;fs_ssfcompop-tdimmed = space .&lt;/P&gt;&lt;P&gt;fs_ssfcompop-tddest = 'HPLJ'. "Printer Name&lt;/P&gt;&lt;P&gt;fs_ssfctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;fs_ssfctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case i am getting the output from spool and then converting this otf to pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'MT'.&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintpar = '0477300353'.&lt;/P&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'FC'.&lt;/P&gt;&lt;P&gt; i_otftmp-tdprintpar = 'HELVE   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_otftmp-tdprintpar = 'CNHEI   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'SW'.&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintpar = '00044'.&lt;/P&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'ST' .&lt;/P&gt;&lt;P&gt;  IF l_cus_ekorg IS INITIAL.   "Ins by ACC027 RT #18330-D16K994829&lt;/P&gt;&lt;P&gt;    i_otftmp-tdprintpar = '0196325***** ARCHIVE COPY *****'.&lt;/P&gt;&lt;P&gt;  ENDIF.                       " "Ins by ACC027 RT #18330-D16K994829&lt;/P&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              rqident              = l_spoolid&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              buffer               = i_buffer_otf&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              no_such_job          = 1&lt;/P&gt;&lt;P&gt;              job_contains_no_data = 2&lt;/P&gt;&lt;P&gt;              selection_empty      = 3&lt;/P&gt;&lt;P&gt;              no_permission        = 4&lt;/P&gt;&lt;P&gt;              can_not_access       = 5&lt;/P&gt;&lt;P&gt;              read_error           = 6&lt;/P&gt;&lt;P&gt;              type_no_match        = 7&lt;/P&gt;&lt;P&gt;              OTHERS               = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    in_otf[] = i_buffer_otf[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            bin_filesize           = v_numbytes&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            otf                    = in_otf&lt;/P&gt;&lt;P&gt;            doctab_archive         = i_doc_archive&lt;/P&gt;&lt;P&gt;            lines                  = i_pdf&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            err_conv_not_possible  = 1&lt;/P&gt;&lt;P&gt;            err_otf_mc_noendmarker = 2&lt;/P&gt;&lt;P&gt;            OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zzg_all01_general) WITH l_ebeln&lt;/P&gt;&lt;P&gt;                              'Unable to create PDF through OTF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Compress PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'TABLE_COMPRESS'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            compressed_size = v_numbytes2&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            in              = i_pdf&lt;/P&gt;&lt;P&gt;            out             = i_pdf_out&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            compress_error  = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zzg_all01_general) WITH l_dest_po_num&lt;/P&gt;&lt;P&gt;                                         ' Compression and Storage'&lt;/P&gt;&lt;P&gt;                                         'Failed'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even tried changing the printer in SAPCRIPT (setting it to chinese type) ,in that case i get a blank PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed my function module from WS_DOWNLOAD to GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the font from HELVE to CNHEI (below given is the code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i_otftmp-tdprintpar = 'HELVE   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_otftmp-tdprintpar = 'CNHEI   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After changing all this , I am still not getting the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what else can i try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2007 13:52:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-18T13:52:56Z</dc:date>
    <item>
      <title>Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871914#M367016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement such that i have to compress the POs which are processed and then store it in a system such that user will be able to see the POs at a later stage also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POs are to be converted to PDF format and then compressed before saving so as to save the disk space and hence they have to be decompressed before viewing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently I am using fucntion module FUNCTION 'CONVERT_OTF_2_PDF' to conver PO to PDF format, 'TABLE_COMPRESS' to compress and 'TABLE_DECOMPRESS' to decompress.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that :- These function modules are working fine for english text but in my PO i have chinese characters also and these function modules give wierd characters in place of chinese characters. Please help me with some other function modules which can even compress chinese characters properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 06:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871914#M367016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T06:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871915#M367017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the problem is not in the function 'TABLE_COMPRESS'.&lt;/P&gt;&lt;P&gt;The problem occured when you generate OTF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To prove my guess is correct. You can try to download your PDF internal table into a PDF file in the presentation by using FM: GUI_DOWNLOAD. &lt;/P&gt;&lt;P&gt;I guess you will see wierd characters instead of chines characters...in the PDF file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion that you have to use printer which support chinese characters when generating the OTF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 07:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871915#M367017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T07:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871916#M367018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hendy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Can you please elaborate your statement " use printer which support chinese characters when generating the OTF." because I am unable to find the connection between Function module 'CONVERT_OTF_2_PDF' and printer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presently I am using the following code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;For converting OTF to PDF and compressing:-&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            bin_filesize           = v_numbytes&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            otf                    = in_otf&lt;/P&gt;&lt;P&gt;            doctab_archive         = i_doc_archive&lt;/P&gt;&lt;P&gt;            lines                  = i_pdf&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            err_conv_not_possible  = 1&lt;/P&gt;&lt;P&gt;            err_otf_mc_noendmarker = 2&lt;/P&gt;&lt;P&gt;            OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zzg_all01_general) WITH l_ebeln&lt;/P&gt;&lt;P&gt;                              'Unable to create PDF through OTF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Compress PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'TABLE_COMPRESS'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            compressed_size = v_numbytes2&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            in              = i_pdf&lt;/P&gt;&lt;P&gt;            out             = i_pdf_out&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            compress_error  = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zzg_all01_general) WITH l_dest_po_num&lt;/P&gt;&lt;P&gt;                                         ' Compression and Storage'&lt;/P&gt;&lt;P&gt;                                         'Failed'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;For Decompressing and viewing the PDF:-&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Decompress table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'TABLE_DECOMPRESS'&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              in                   = i_clines&lt;/P&gt;&lt;P&gt;              out                  = i_pdf&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              compress_error       = 1&lt;/P&gt;&lt;P&gt;              table_not_compressed = 2&lt;/P&gt;&lt;P&gt;              OTHERS               = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MESSAGE i000(zzg_all01_general) WITH&lt;/P&gt;&lt;P&gt;                         'Table decompression failed'.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Download file to presentation server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              bin_filesize            = in_table-filesize&lt;/P&gt;&lt;P&gt;              filename                = l_filedest&lt;/P&gt;&lt;P&gt;              filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              filelength              = v_numbytes&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              data_tab                = i_pdf&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              file_open_error         = 1&lt;/P&gt;&lt;P&gt;              file_write_error        = 2&lt;/P&gt;&lt;P&gt;              invalid_filesize        = 3&lt;/P&gt;&lt;P&gt;              invalid_type            = 4&lt;/P&gt;&lt;P&gt;              no_batch                = 5&lt;/P&gt;&lt;P&gt;              unknown_error           = 6&lt;/P&gt;&lt;P&gt;              invalid_table_width     = 7&lt;/P&gt;&lt;P&gt;              gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;              customer_error          = 9&lt;/P&gt;&lt;P&gt;              OTHERS                  = 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 2.&lt;/P&gt;&lt;P&gt;        MESSAGE i000(zzg_all01_general) WITH 'Download error.'&lt;/P&gt;&lt;P&gt;                    'Please close the file if already opened.'.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        MESSAGE i000(zzg_all01_general) WITH 'Download error.'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          Display PDF file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'WS_EXECUTE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              DOCUMENT                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              CD                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         commandline              = l_filedest&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              INFORM                   = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         program                  = 'ACRORD32'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              STAT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              WINID                    = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              OSMAC_SCRIPT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              OSMAC_CREATOR            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              WIN16_EXT                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              EXEC_RC                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              RBUFF                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         frontend_error           = 1&lt;/P&gt;&lt;P&gt;         no_batch                 = 2&lt;/P&gt;&lt;P&gt;         prog_not_found           = 3&lt;/P&gt;&lt;P&gt;         illegal_option           = 4&lt;/P&gt;&lt;P&gt;         gui_refuse_execute       = 5&lt;/P&gt;&lt;P&gt;         OTHERS                   = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that a PDF file a generated, which shows something else in place of chinese characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 07:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871916#M367018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871917#M367019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"use printer which support chinese characters when generating the OTF." &lt;/P&gt;&lt;P&gt;You can set the printer name when calling FM for SMARTFORMS/SAPSCRIPT to generate OTF intenal table.&lt;/P&gt;&lt;P&gt;(I assume you generate the OTF internal table from SMARTFORMS/SAPSCRIPT)&lt;/P&gt;&lt;P&gt;e.g. : in SMARTFORMS&lt;/P&gt;&lt;P&gt;  DATA fs_ssfcompop TYPE ssfcompop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR: fs_ssfcompop.&lt;/P&gt;&lt;P&gt;  fs_ssfcompop-tddest    = '????'. "Printer which support chinese characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION fm_smartforms&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        output_options     = fs_ssfcompop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find the correct printer you can ask your basis guys or goto tcode SPAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To find out which printer/ouput devices that support chinese characters, in the tcode SPAD you can search printer that using device type which support chinese characters, for example device type CNHPLJ4(HP LaserJet PCL-5 Simp.Chinese).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 09:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871917#M367019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T09:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871918#M367020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hendy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing the printer to a printer with type CNHPLJ4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This time the PDF that is generated after using  'WS_DOWNLOAD' is BLANK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During debugg is found that the OTF internal table has some value (783 records) and after decompression by TABLE_DECOMPRESS i_pdf (internal table to store PDF) has 6483 records. &lt;/P&gt;&lt;P&gt;But after running WS_DOWNLOAD and WS_EXECUTE (which calls ACRORD32), a PDF file is shown and a pop-up appears "No updated at this time"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ultimately a blank PDF is generated. Where as in ME23N i can see the extected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest on this.Can there be any prob with WS_DOWNLOAD that can be solved by GUI_DOWNLOAD or is this something else now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 11:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871918#M367020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T11:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871919#M367021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you to use GUI_DOWNLOAD... since WS_DOWNLOAD is obsolete.&lt;/P&gt;&lt;P&gt;You can try the following code (these codes are working fine in my system).&lt;/P&gt;&lt;P&gt;note: dont forget to change SMARTFORMS and Printer Name accordingly..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA in_otf  LIKE itcoo OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA i_doc_archive LIKE docs OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA i_pdf LIKE tline OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA i_pdf_out LIKE tline OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA fs_ssfctrlop LIKE ssfctrlop.&lt;/P&gt;&lt;P&gt;DATA fs_ssfcompop TYPE ssfcompop.&lt;/P&gt;&lt;P&gt;DATA wa_ssfcresop TYPE ssfcresop .&lt;/P&gt;&lt;P&gt;DATA output_data TYPE ssfcrescl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: fs_ssfcompop, fs_ssfctrlop.&lt;/P&gt;&lt;P&gt;fs_ssfcompop-tdnewid = 'X'.&lt;/P&gt;&lt;P&gt;fs_ssfcompop-tdimmed = space .&lt;/P&gt;&lt;P&gt;fs_ssfcompop-tddest  = 'HPLJ'. "Printer Name&lt;/P&gt;&lt;P&gt;fs_ssfctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;fs_ssfctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/1BCDWB/SF00000117'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    control_parameters = fs_ssfctrlop&lt;/P&gt;&lt;P&gt;    output_options     = fs_ssfcompop&lt;/P&gt;&lt;P&gt;    user_settings      = space&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    job_output_info    = output_data&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    formatting_error   = 1&lt;/P&gt;&lt;P&gt;    internal_error     = 2&lt;/P&gt;&lt;P&gt;    send_error         = 3&lt;/P&gt;&lt;P&gt;    user_canceled      = 4&lt;/P&gt;&lt;P&gt;    OTHERS             = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in_otf[] = output_data-otfdata[].&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    otf                    = in_otf&lt;/P&gt;&lt;P&gt;    doctab_archive         = i_doc_archive&lt;/P&gt;&lt;P&gt;    lines                  = i_pdf&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    err_conv_not_possible  = 1&lt;/P&gt;&lt;P&gt;    err_otf_mc_noendmarker = 2&lt;/P&gt;&lt;P&gt;    OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE e000(zzg_all01_general) WITH&lt;/P&gt;&lt;P&gt;  'Unable to create PDF through OTF'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Compress PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'TABLE_COMPRESS'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    in              = i_pdf&lt;/P&gt;&lt;P&gt;    out             = i_pdf_out&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    compress_error  = 1&lt;/P&gt;&lt;P&gt;    OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE e000(zzg_all01_general) WITH&lt;/P&gt;&lt;P&gt;  ' Compression and Storage'&lt;/P&gt;&lt;P&gt;  'Failed'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*for decompressing and viewing the pdf:-&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Decompress table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CLEAR i_pdf[].&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TABLE_DECOMPRESS'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    in                   = i_pdf_out&lt;/P&gt;&lt;P&gt;    out                  = i_pdf&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    compress_error       = 1&lt;/P&gt;&lt;P&gt;    table_not_compressed = 2&lt;/P&gt;&lt;P&gt;    OTHERS               = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;  MESSAGE i000(zzg_all01_general) WITH&lt;/P&gt;&lt;P&gt;  'Table decompression failed'.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Download file to presentation server&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                = 'C:\test.pdf'&lt;/P&gt;&lt;P&gt;    filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                = i_pdf&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    file_write_error        = 1&lt;/P&gt;&lt;P&gt;    no_batch                = 2&lt;/P&gt;&lt;P&gt;    gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;    invalid_type            = 4&lt;/P&gt;&lt;P&gt;    no_authority            = 5&lt;/P&gt;&lt;P&gt;    unknown_error           = 6&lt;/P&gt;&lt;P&gt;    header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;    separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;    filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;    header_too_long         = 10&lt;/P&gt;&lt;P&gt;    dp_error_create         = 11&lt;/P&gt;&lt;P&gt;    dp_error_send           = 12&lt;/P&gt;&lt;P&gt;    dp_error_write          = 13&lt;/P&gt;&lt;P&gt;    unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;    access_denied           = 15&lt;/P&gt;&lt;P&gt;    dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;    disk_full               = 17&lt;/P&gt;&lt;P&gt;    dp_timeout              = 18&lt;/P&gt;&lt;P&gt;    file_not_found          = 19&lt;/P&gt;&lt;P&gt;    dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;    control_flush_error     = 21&lt;/P&gt;&lt;P&gt;    OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display PDF file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'WS_EXECUTE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    commandline        = 'C:\test.pdf'&lt;/P&gt;&lt;P&gt;    program            = 'ACRORD32'&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    frontend_error     = 1&lt;/P&gt;&lt;P&gt;    no_batch           = 2&lt;/P&gt;&lt;P&gt;    prog_not_found     = 3&lt;/P&gt;&lt;P&gt;    illegal_option     = 4&lt;/P&gt;&lt;P&gt;    gui_refuse_execute = 5&lt;/P&gt;&lt;P&gt;    OTHERS             = 6.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 04:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871919#M367021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T04:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871920#M367022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hendy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry to disturb u again &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually in my case I am using SAPCRIPT and not SMART-FORM and I am generating the OTF from spool-request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i could not use :-&lt;/P&gt;&lt;P&gt; fs_ssfcompop-tdnewid = 'X'.&lt;/P&gt;&lt;P&gt;fs_ssfcompop-tdimmed = space .&lt;/P&gt;&lt;P&gt;fs_ssfcompop-tddest = 'HPLJ'. "Printer Name&lt;/P&gt;&lt;P&gt;fs_ssfctrlop-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;fs_ssfctrlop-getotf = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case i am getting the output from spool and then converting this otf to pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'MT'.&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintpar = '0477300353'.&lt;/P&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'FC'.&lt;/P&gt;&lt;P&gt; i_otftmp-tdprintpar = 'HELVE   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_otftmp-tdprintpar = 'CNHEI   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'SW'.&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintpar = '00044'.&lt;/P&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i_otftmp-tdprintcom = 'ST' .&lt;/P&gt;&lt;P&gt;  IF l_cus_ekorg IS INITIAL.   "Ins by ACC027 RT #18330-D16K994829&lt;/P&gt;&lt;P&gt;    i_otftmp-tdprintpar = '0196325***** ARCHIVE COPY *****'.&lt;/P&gt;&lt;P&gt;  ENDIF.                       " "Ins by ACC027 RT #18330-D16K994829&lt;/P&gt;&lt;P&gt;  APPEND i_otftmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              rqident              = l_spoolid&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              buffer               = i_buffer_otf&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              no_such_job          = 1&lt;/P&gt;&lt;P&gt;              job_contains_no_data = 2&lt;/P&gt;&lt;P&gt;              selection_empty      = 3&lt;/P&gt;&lt;P&gt;              no_permission        = 4&lt;/P&gt;&lt;P&gt;              can_not_access       = 5&lt;/P&gt;&lt;P&gt;              read_error           = 6&lt;/P&gt;&lt;P&gt;              type_no_match        = 7&lt;/P&gt;&lt;P&gt;              OTHERS               = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    in_otf[] = i_buffer_otf[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            bin_filesize           = v_numbytes&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            otf                    = in_otf&lt;/P&gt;&lt;P&gt;            doctab_archive         = i_doc_archive&lt;/P&gt;&lt;P&gt;            lines                  = i_pdf&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            err_conv_not_possible  = 1&lt;/P&gt;&lt;P&gt;            err_otf_mc_noendmarker = 2&lt;/P&gt;&lt;P&gt;            OTHERS                 = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zzg_all01_general) WITH l_ebeln&lt;/P&gt;&lt;P&gt;                              'Unable to create PDF through OTF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Compress PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'TABLE_COMPRESS'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            compressed_size = v_numbytes2&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            in              = i_pdf&lt;/P&gt;&lt;P&gt;            out             = i_pdf_out&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            compress_error  = 1&lt;/P&gt;&lt;P&gt;            OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE e000(zzg_all01_general) WITH l_dest_po_num&lt;/P&gt;&lt;P&gt;                                         ' Compression and Storage'&lt;/P&gt;&lt;P&gt;                                         'Failed'.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have even tried changing the printer in SAPCRIPT (setting it to chinese type) ,in that case i get a blank PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed my function module from WS_DOWNLOAD to GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the font from HELVE to CNHEI (below given is the code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i_otftmp-tdprintpar = 'HELVE   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_otftmp-tdprintpar = 'CNHEI   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After changing all this , I am still not getting the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest what else can i try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 13:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871920#M367022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T13:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871921#M367023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. converting to pdf -&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&amp;gt; compresss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Before compressing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. just save the pdf data &lt;/P&gt;&lt;P&gt;   in a file on the local computer using some code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Then try to open that .pdf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. If the chinese characters are coming here itself,&lt;/P&gt;&lt;P&gt;    then it means, the conversion is not working properly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 14:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871921#M367023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T14:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871922#M367024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried by removing the codes for compression/decompression.... &lt;/P&gt;&lt;P&gt;Still i was not getting the chinese characters printed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till now i have tried the following things:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have replaced the function module &amp;#145;WS_DOWNLOAD&amp;#146; with &amp;#145;GUI_DOWNLOAD&amp;#146;, as &amp;#145;WS_DOWNLOAD&amp;#146; is obsolete now. But still there wasn&amp;#146;t any change in the output. Chinese characters are not getting printed. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried changing the font from HELVE to CNHEI in the code. &lt;/P&gt;&lt;P&gt;   i_otftmp-tdprintpar = 'HELVE   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; i_otftmp-tdprintpar = 'CNHEI   080  00067XSF005SF005110000044EX'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I tried setting a CHINESE type printer in ME23N. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In all the cases there was not any change in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried by removing the codes for COMPRESSION/ DECOMPRESSION to confirm if error was in generation of OTF or because of compression and decompression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found that even after removing the compression/ decompression code there was not any change in the output i.e. Chinese characters were still not getting printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This confirms that problem is not because of compression and decompression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to know wots the problem in the conversion ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 14:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871922#M367024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871923#M367025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. by using some standard tcodes,&lt;/P&gt;&lt;P&gt;   if possible,&lt;/P&gt;&lt;P&gt;   we should see the output of the purchase order, on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Is that coming ok on screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 14:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871923#M367025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T14:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871924#M367026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes we can see the PO output thru tcode - ME23N directly or by checking the spool request by SP01.... output is perfect there &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. both english and chinese characters are getting printed in standard SAP output (ME23N)... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the same doesnot work in my code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 14:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871924#M367026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with function modules  'TABLE_COMPRESS' and 'TABLE_DECOMPRESS'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871925#M367027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem was with the version of ACROBAT and now with the functional modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 06:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-function-modules-table-compress-and-table-decompress/m-p/1871925#M367027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T06:08:34Z</dc:date>
    </item>
  </channel>
</rss>

