<?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: Data Cluster Mistery: Data Cluster vs. RAWSTRING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543612#M20329</link>
    <description>&lt;P&gt;Yep, a small difference but not a factor of 2.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2017 12:33:40 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2017-08-30T12:33:40Z</dc:date>
    <item>
      <title>Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543600#M20317</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;In NW 7.51 SAP converted the "classic" structure of data cluster tables from multiple rows of datatype LRAW to single row of the "new" datatype RAWSTRING (&lt;A href="https://blogs.sap.com/2016/10/18/abap-news-release-7.51-new-structure-exportimport-tables/"&gt;ABAP News for Release 7.51 – New Structure for Export/Import Tables&lt;/A&gt;).&lt;/P&gt;
  &lt;P&gt;Now the question left is what would be the best solution (size efficient) to save hugh datasets in DB in legacy system (earlier NW versions than 7.51):&lt;BR /&gt;Using old (multiple rows) data cluster table or a simple DB table with single RAWSTRING field?&lt;/P&gt;
  &lt;P&gt;I have done some tests and the results were quite confusing.&lt;BR /&gt; I’ve saved an internal table of MARA with 5000 records.&lt;BR /&gt; For conversion to XSTRING I used the EXPORT TO DATA BUFFER (COMPRESSION ON) command.&lt;/P&gt;
  &lt;P&gt;The results were:&lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;Data cluster table for ITAB (not converted to XSTRING) – 664KB.&lt;/LI&gt; 
   &lt;LI&gt;&lt;STRONG&gt;Data cluster table for converted XSTRING – 272KB&lt;/STRONG&gt;.&lt;/LI&gt; 
   &lt;LI&gt;DB table with RAWSTRING – 536KB.&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt;Is there any explanation for it?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 16:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543600#M20317</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-08-28T16:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543601#M20318</link>
      <description>&lt;P&gt;According to the following program, the&lt;STRONG&gt; length of the data clusters&lt;/STRONG&gt; is exactly the same for an internal table stored in a data buffer or in the CLUSTD fields of the two possible export/import table structures, for compression on and off. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;How have you counted? Don't forget, that besides the cluster itself, there are also the administrative columns in export/import table structures. Of course, this overhead is higher for the old tabular storage.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA(rnd) = cl_abap_random_int=&amp;gt;create(
               seed = CONV i( sy-uzeit )
               min = 1
               max = 1000 ).
TYPES itab TYPE TABLE OF i WITH EMPTY KEY.
DATA(itab) = VALUE itab( FOR i = 1 UNTIL i &amp;gt; 100000
                         ( rnd-&amp;gt;get_next( ) ) ).

DATA(out) = cl_demo_output=&amp;gt;new( ).

out-&amp;gt;next_section( 'Compression off' ).

DATA data_buffer TYPE xstring.
EXPORT itab = itab TO DATA BUFFER data_buffer
                   COMPRESSION OFF.

EXPORT itab = itab TO DATABASE demo_indx_blob(rn)
                      ID 'RandomNumbers' COMPRESSION OFF.
SELECT SINGLE clustd
       FROM demo_indx_blob
       WHERE relid = 'RN' AND
             id    = 'RandomNumbers'
       INTO  @DATA(indx_blob_clustd).

EXPORT itab = itab TO DATABASE demo_indx_table(rn)
                   ID 'RandomNumbers' COMPRESSION OFF.
SELECT *
       FROM demo_indx_table
       WHERE relid = 'RN' AND
             id    = 'RandomNumbers'
       ORDER BY srtf2
       INTO TABLE @DATA(indx_table).
DATA(indx_table_clustd) = VALUE xstring( ).
LOOP AT indx_table INTO DATA(indx_table_wa).
  CONCATENATE indx_table_clustd
              indx_table_wa-clustd(indx_table_wa-clustr) 
              INTO indx_table_clustd
              IN BYTE MODE.
ENDLOOP.

out-&amp;gt;write( xstrlen( data_buffer )
  )-&amp;gt;write( xstrlen( indx_blob_clustd )
  )-&amp;gt;write( xstrlen( indx_table_clustd ) ).

CLEAR data_buffer.
DELETE FROM DATABASE demo_indx_table(rn) ID 'RandomNumbers'.
DELETE FROM DATABASE demo_indx_blob(rn)  ID 'RandomNumbers'.

out-&amp;gt;next_section( 'Compression on' ).

EXPORT itab = itab TO DATA BUFFER data_buffer
                   COMPRESSION ON.

EXPORT itab = itab TO DATABASE demo_indx_blob(rn)
                      ID 'RandomNumbers' COMPRESSION ON.
SELECT SINGLE clustd
       FROM demo_indx_blob
       WHERE relid = 'RN' AND
             id    = 'RandomNumbers'
       INTO  @indx_blob_clustd.

EXPORT itab = itab TO DATABASE demo_indx_table(rn)
                   ID 'RandomNumbers' COMPRESSION ON.
SELECT *
       FROM demo_indx_table
       WHERE relid = 'RN' AND
             id    = 'RandomNumbers'
       ORDER BY srtf2
       INTO TABLE @indx_table.
indx_table_clustd = VALUE xstring( ).
LOOP AT indx_table INTO indx_table_wa.
  CONCATENATE indx_table_clustd
              indx_table_wa-clustd(indx_table_wa-clustr) 
              INTO indx_table_clustd
              IN BYTE MODE.
ENDLOOP.

out-&amp;gt;write( xstrlen( data_buffer )
  )-&amp;gt;write( xstrlen( indx_blob_clustd )
  )-&amp;gt;write( xstrlen( indx_table_clustd ) ).

DELETE FROM DATABASE demo_indx_table(rn) ID 'RandomNumbers'.
DELETE FROM DATABASE demo_indx_blob(rn)  ID 'RandomNumbers'.

out-&amp;gt;display( ).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:22:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543601#M20318</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-29T07:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543602#M20319</link>
      <description>&lt;P&gt;Hi Horst,&lt;BR /&gt;I've been waiting for your answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;Regarding the measuring,&lt;/P&gt;
  &lt;P&gt;1. Since there isn't any API/command to query the record size in DB (At least not one I'm aware of),&lt;BR /&gt;I've created 3 new DB tables and checked the DB table size.&lt;BR /&gt;2. I'm not sure I understood the purpose of your testing program.&lt;BR /&gt;As far as I understand, all 3 variables should contain exactly the same value (regardless the way they are stored in DB). Hence, all 3 must be exactly in the same size, shouldn't they?&lt;BR /&gt;My query was regarding &lt;STRONG&gt;DB size&lt;/STRONG&gt;.&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 08:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543602#M20319</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-08-29T08:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543603#M20320</link>
      <description>&lt;P&gt;The test program proves that all three clusters have the same size. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;EXPORT TO DATA BUFFER, well, you have a XSTRING with the data cluster. If you store it as a RAWSTRING in a self defined database table, you get additional administrative cost of at least one key field.&lt;/LI&gt; 
   &lt;LI&gt;EXPORT TO DATABASE with BLOB. One RAWSTRING in the database plus the predefined administrative columns RELID, key fields, self-defined fields once per data cluster.&lt;/LI&gt; 
   &lt;LI&gt;EXPORT TO DATABASE into RAW field. Split of data cluster over several lines with redundant administrative columns in each line.&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; So in fact, I don't understand &lt;STRONG&gt;your&lt;/STRONG&gt; question. Where is the mystery?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 08:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543603#M20320</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-29T08:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543604#M20321</link>
      <description>&lt;P&gt;Why the size of data cluster table ("classic" multiple rows of LRAW) is smaller than simple DB table with single RAWSTRING field (when both store exactly the same XSTRING value)?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543604#M20321</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-08-29T09:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543605#M20322</link>
      <description>&lt;P&gt;Is it? Your above numbers don't say that, or? In fact, from the description it is not that clear what you've done.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543605#M20322</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-29T09:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543606#M20323</link>
      <description>&lt;P&gt;Well, so it seems (unless I've missed something):&lt;/P&gt;
  &lt;OL&gt; 
  &lt;/OL&gt;
  &lt;P&gt;&lt;STRONG&gt;2. Data cluster table ("classic" multiple rows of LRAW) for converted XSTRING – 272KB.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;3. Simple DB table with RAWSTRING (for the same converted XSTRING) – 536KB.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;U&gt;&lt;/U&gt;&lt;SUB&gt;&lt;/SUB&gt;&lt;SUP&gt;&lt;/SUP&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 13:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543606#M20323</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-08-29T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543607#M20324</link>
      <description>&lt;P&gt;To summarize:&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&gt;We speak about &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenexport_import_table_glosry.htm"&gt;export/import tables&lt;/A&gt;. Those are transparent database tables, not to be mixed up with the special &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abencluster_table_glosry.htm"&gt;cluster tables&lt;/A&gt;.&lt;/LI&gt; 
   &lt;LI&gt;The statement EXPORT serializes ABAP data into a binary format called data cluster, with or without compression&lt;/LI&gt; 
   &lt;LI&gt;A data cluster can be stored in different media.&lt;/LI&gt; 
   &lt;LI&gt;For storing in an export/import table there are two ways: the whole cluster in one RAWSTRING or the data cluster split up into several LRAW fields.&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;You claim that storing one and the same binary data in one RAWSTRING uses more space on the database than splitting it in several LRAW fields. If it is true, that finding should be independent from data clusters. You should be able to reproduce it by writing any xstring to a RAWSTRING or to several LRAW fields. Then it is a question to the database. If you can't reproduce it, use Open SQL to examine your data clusters in order to find the difference.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 05:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543607#M20324</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-30T05:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543608#M20325</link>
      <description>&lt;P&gt;(Almost) correct.&lt;BR /&gt;Sorry about the confusion between Data cluster (export/import) tables and cluster tables.&lt;/P&gt;
  &lt;P&gt;The question is if it's really database related question (for &lt;STRONG&gt;any &lt;/STRONG&gt;RAWSTRING vs. LRAW multiples rows tables) or something in the data cluster export/compression mechanism.&lt;/P&gt;
  &lt;P&gt;I had to abandon my assumption regarding the XSTRING length and re-checked it in my report.&lt;/P&gt;
  &lt;P&gt;My actual program consists of two steps:&lt;/P&gt;
  &lt;P&gt;1. EXPORT itab = itab TO DATA BUFFER data_buffer COMPRESSION ON.&lt;/P&gt;
  &lt;P&gt;2. EXPORT data_buffer2 = &lt;STRONG&gt;data_buffer&lt;/STRONG&gt; TO DATABASE (COMPRESSION ON, which is the default).&lt;/P&gt;
  &lt;P&gt;I was surprised to found out the following results:&lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;data_buffer size after first step/compression - 484143 bytes.&lt;/LI&gt; 
   &lt;LI&gt;data buffer2 size after second step/compression (either via EXPORT TO DATABASE or EXPORT TO DATA BUFFER) - 202322 bytes.&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt;i.e. There is &lt;STRONG&gt;additional&lt;/STRONG&gt; compression after initial compression from itab to XSTRING.&lt;/P&gt;
  &lt;P&gt;(That made me wonder if this compression can be executed endlessly :), but here I wasn't surprised again and found out that after third compression data buffer size is increasing every time).&lt;/P&gt;
  &lt;P&gt;P.S.&lt;/P&gt;
  &lt;P&gt;After understanding that the difference lies in the additional compression, I've added additional &lt;/P&gt;
  &lt;P&gt;EXPORT TO DATA BUFFER COMPRESSION ON command and rechecked the results.&lt;/P&gt;
  &lt;P&gt;The size of simple DB table with RAWSTRING was smaller than data cluster table (240KB), as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 08:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543608#M20325</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-08-30T08:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543609#M20326</link>
      <description>&lt;P&gt;I also suspected something like this and did the same (double compression for data buffer) in my example, but didn't see any difference.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 10:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543609#M20326</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-30T10:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543610#M20327</link>
      <description>&lt;P&gt;Here my program that doesn't show any "double compression":&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA(rnd) = cl_abap_random_int=&amp;gt;create(
               seed = CONV i( sy-uzeit )
               min = 1
               max = 1000 ).
TYPES itab TYPE TABLE OF i WITH EMPTY KEY.
DATA(itab) = VALUE itab( FOR i = 1 UNTIL i &amp;gt; 100000
                         ( rnd-&amp;gt;get_next( ) ) ).

DATA(out) = cl_demo_output=&amp;gt;new( ).

DATA data_buffer TYPE xstring.
EXPORT itab = itab TO DATA BUFFER data_buffer
                   COMPRESSION ON.
out-&amp;gt;write( xstrlen( data_buffer ) ).

DATA data_buffer_again TYPE xstring.
EXPORT buffer = data_buffer TO DATA BUFFER data_buffer_again
                               COMPRESSION ON.
out-&amp;gt;write( xstrlen( data_buffer_again ) ).

EXPORT buffer = data_buffer TO DATABASE demo_indx_blob(rn)
                            ID 'RandomNumbers' COMPRESSION ON.
SELECT SINGLE clustd
       FROM demo_indx_blob
       WHERE relid = 'RN' AND
             id    = 'RandomNumbers'
       INTO  @DATA(indx_blob_clustd).
out-&amp;gt;write( xstrlen( indx_blob_clustd ) ).

EXPORT buffer = data_buffer TO DATABASE demo_indx_table(rn)
                            ID 'RandomNumbers' COMPRESSION ON.
SELECT *
       FROM demo_indx_table
       WHERE relid = 'RN' AND
             id    = 'RandomNumbers'
       ORDER BY srtf2
       INTO TABLE @DATA(indx_table).
DATA(indx_table_clustd) = VALUE xstring( ).
LOOP AT indx_table INTO DATA(indx_table_wa).
  CONCATENATE indx_table_clustd
              indx_table_wa-clustd(indx_table_wa-clustr)
              INTO indx_table_clustd
              IN BYTE MODE.
ENDLOOP.
out-&amp;gt;write( xstrlen( indx_table_clustd ) ).


out-&amp;gt;display( ).
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Aug 2017 11:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543610#M20327</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-30T11:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543611#M20328</link>
      <description>&lt;P&gt;At least in my test system (NW 7.4 SP9), I do see a difference:&lt;/P&gt;
  &lt;OL&gt;
   &lt;LI&gt;data_buffer - 211913 bytes&lt;/LI&gt;
   &lt;LI&gt;data_buffer_again - 211001 bytes.&lt;/LI&gt;
  &lt;/OL&gt;
  &lt;P&gt;Anyway, I guess it depends in your dataset.&lt;BR /&gt;In my original example, I've used the contents of DB table MARA for itab.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 11:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543611#M20328</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-08-30T11:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543612#M20329</link>
      <description>&lt;P&gt;Yep, a small difference but not a factor of 2.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 12:33:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543612#M20329</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-30T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543613#M20330</link>
      <description>&lt;P&gt;Please check with larger dataset (MARA table, for example) or even simpler just add a dummy field (CHAR250 with empty values, for example) to ITAB structure.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 12:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543613#M20330</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-08-30T12:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543614#M20331</link>
      <description>&lt;P&gt;Now, I see it too.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt; DATA(rnd) = cl_abap_random_int=&amp;gt;create(
               seed = CONV i( sy-uzeit )
               min = 1
               max = 1000 ).

TYPES:
 char255 type c LENGTH 255,
 BEGIN OF struct,
   col1 TYPE i,
   col2 type char255,
 END OF struct,
 itab TYPE TABLE OF struct WITH EMPTY KEY.
DATA(itab) = VALUE itab( FOR i = 1 UNTIL i &amp;gt; 100000
                         ( col1 = rnd-&amp;gt;get_next( ) ) ).
DATA(out) = cl_demo_output=&amp;gt;new( ).

DATA data_buffer TYPE xstring.
EXPORT itab = itab TO DATA BUFFER data_buffer
                   COMPRESSION ON.
out-&amp;gt;write( xstrlen( data_buffer ) ).

DATA data_buffer_again TYPE xstring.
EXPORT buffer = data_buffer TO DATA BUFFER data_buffer_again
                               COMPRESSION ON.
out-&amp;gt;write( xstrlen( data_buffer_again ) ).
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Looks strange.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;-&amp;gt; Development&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 13:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543614#M20331</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-30T13:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543615#M20332</link>
      <description>&lt;P&gt;Just to be complete:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;"all 3 variables should contain exactly the same value (regardless the way they are stored in DB)"&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Not really. As a rule, the size is about the same. But for optimization reasons, the binary content of the data cluster can differ between those that are stored in one string and those that are splitted over several lines.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Therefore, you must always use the appropriate IMPORT.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2017 06:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543615#M20332</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-08-31T06:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543616#M20333</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;horst.keller&lt;/SPAN&gt; ,&lt;/P&gt;
  &lt;P&gt;Is there any update?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 12:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543616#M20333</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-11-29T12:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543617#M20334</link>
      <description>&lt;P&gt;No, and I'm afraid there won't.&lt;/P&gt;
  &lt;P&gt;Any changes would be incompatible.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 07:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543617#M20334</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-11-30T07:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Cluster Mistery: Data Cluster vs. RAWSTRING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543618#M20335</link>
      <description>&lt;P&gt;OK.&lt;/P&gt;
  &lt;P&gt;I guess we'll have to live with double compression, then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;We might address it as a mysterious ABAP known bug, like the known &lt;A href="https://support.microsoft.com/en-us/help/214326/excel-incorrectly-assumes-that-the-year-1900-is-a-leap-year"&gt;Excel date bug&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 11:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-cluster-mistery-data-cluster-vs-rawstring/m-p/543618#M20335</guid>
      <dc:creator>shais</dc:creator>
      <dc:date>2017-11-30T11:18:14Z</dc:date>
    </item>
  </channel>
</rss>

