<?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 Fm TABLE_COMPRESS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833511#M663384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use function module TABLE_COMPRESS, while system giving a message that &lt;/P&gt;&lt;P&gt;"function module TABLE_COMPRESS is obsolate" I like to know what will be the new function module to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sa_R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 15:36:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-26T15:36:27Z</dc:date>
    <item>
      <title>Fm TABLE_COMPRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833511#M663384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use function module TABLE_COMPRESS, while system giving a message that &lt;/P&gt;&lt;P&gt;"function module TABLE_COMPRESS is obsolate" I like to know what will be the new function module to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sa_R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 15:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833511#M663384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T15:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fm TABLE_COMPRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833512#M663385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Receivers &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;receiver_list-recextnam = 'EXTERNAL-MAIL-ID@YAHOO.COM'. "--&amp;gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EMAIL ADDRESS &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;RECEIVER_list-RECESC = 'E'. "&amp;lt;- &lt;/P&gt;&lt;P&gt;RECEIVER_list-SNDART = 'INT'."&amp;lt;- &lt;/P&gt;&lt;P&gt;RECEIVER_list-SNDPRI = '1'."&amp;lt;- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND receiver_list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;General data &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_object_hd_change-objla = sy-langu. &lt;/P&gt;&lt;P&gt;w_object_hd_change-objnam = 'Object name'. &lt;/P&gt;&lt;P&gt;w_object_hd_change-objsns = 'P'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail subject &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;w_object_hd_change-objdes = 'Message subject'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail body &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND 'Message content' TO message_content. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Attachment &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SAVE_LIST' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;list_index = '0' &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;listobject = listobject. &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TABLE_COMPRESS' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;compressed_size = compressed_size &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;in = listobject &lt;/P&gt;&lt;P&gt;out = compressed_attachment. &lt;/P&gt;&lt;P&gt;DESCRIBE TABLE compressed_attachment. &lt;/P&gt;&lt;P&gt;CLEAR packing_list. &lt;/P&gt;&lt;P&gt;packing_list-transf_bin = 'X'. &lt;/P&gt;&lt;P&gt;packing_list-head_start = 0. &lt;/P&gt;&lt;P&gt;packing_list-head_num = 0. &lt;/P&gt;&lt;P&gt;packing_list-body_start = 1. &lt;/P&gt;&lt;P&gt;packing_list-body_num = sy-tfill. &lt;/P&gt;&lt;P&gt;packing_list-objtp = 'ALI'. &lt;/P&gt;&lt;P&gt;packing_list-objnam = 'Object name'. &lt;/P&gt;&lt;P&gt;packing_list-objdes = 'Attachment description'. &lt;/P&gt;&lt;P&gt;packing_list-objlen = compressed_size. &lt;/P&gt;&lt;P&gt;APPEND packing_list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_OBJECT_SEND' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;object_hd_change = w_object_hd_change &lt;/P&gt;&lt;P&gt;object_type = 'RAW' &lt;/P&gt;&lt;P&gt;owner = sy-uname &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;objcont = message_content &lt;/P&gt;&lt;P&gt;receivers = receiver_list &lt;/P&gt;&lt;P&gt;packing_list = packing_list &lt;/P&gt;&lt;P&gt;att_cont = compressed_attachment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 15:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833512#M663385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T15:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fm TABLE_COMPRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833513#M663386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at class &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_GZIP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************&lt;/P&gt;&lt;P&gt;what you could do is using call transformation transform your itab to XML form and then use CL_ABAP_GZIP to zip it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to read it back, unzip using CL_ABAP_GZIP and then again use call transformation and XSLT program to convert it to your itab format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are new to SDN have a look at the following weblog to find out SDN way of saying thanks.&lt;/P&gt;&lt;P&gt;/people/mark.finnern/blog/2004/08/10/spread-the-love &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;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 15:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833513#M663386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fm TABLE_COMPRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833514#M663387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You solved my problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

try.
call method cl_abap_gzip=&amp;gt;compress_text
  exporting
    text_in                     = xsccpvapitem
  importing
    gzip_out                   = it_attach2
    gzip_out_len             = 255.
    .
endtry.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just sending a text file &amp;gt; 255 length as attachment in mail using CL_BCS class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sa_R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 16:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833514#M663387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T16:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fm TABLE_COMPRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833515#M663388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sa_R ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you said that your problem is solved,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;according above link (mrutunjaya tripathy) &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = compressed_size
TABLES
in = listobject
out = compressed_attachment.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;how to pass thse fields to our method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sai on Sep 18, 2008 11:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 09:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-table-compress/m-p/2833515#M663388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T09:02:01Z</dc:date>
    </item>
  </channel>
</rss>

