<?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: Table Memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519551#M238753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sameer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memory Occupied in the database repository and database server depends largely on the number of records you are likely populate in the corresponding table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further more, table space allocated by your basis consultant in the database server makes a large difference. Your table size settings are maintained in the technical settings in tcode SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would give you some clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Aug 2006 05:50:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-05T05:50:28Z</dc:date>
    <item>
      <title>Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519547#M238749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyone tell me how do I calculate the internal database memory required per record of a given table?  A rough estimate would do.  I am thinking that adding up the memory required by each field can be construed as memory required by a single record.  Going further, the memory of each field can be determined by it's data type.  But how do I calculate how many bytes of memory is taken by a given data type?  Please help.  I will assign the points to helpful posts.  Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 22:24:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519547#M238749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-04T22:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519548#M238750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From SE11, you can able to know the size in bytes for a record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 22:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519548#M238750</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-08-04T22:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519549#M238751</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;Programetically also you can find the size of the record of a table :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: sflight.
DATA: isflight TYPE TABLE OF sflight.
DATA: wa_sflight LIKE LINE OF isflight.


DESCRIBE TABLE isflight LINES size1.
WRITE: / 'Number of Lines:', size1.
DESCRIBE FIELD wa_sflight LENGTH size2 IN BYTE MODE.
WRITE: / 'Size of one Line:', size2.
size3 = size1 * size2.
WRITE: / 'Total Size:', size3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2006 22:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519549#M238751</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-08-04T22:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519550#M238752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can go to SE11, there you will find the Technical Settings Toolbar, press it.&lt;/P&gt;&lt;P&gt;It will lead you to the Technical settings screen there you can specify the Data class and Size catagory depending upon your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Baskaran M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 05:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519550#M238752</guid>
      <dc:creator>baskaran00</dc:creator>
      <dc:date>2006-08-05T05:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519551#M238753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sameer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memory Occupied in the database repository and database server depends largely on the number of records you are likely populate in the corresponding table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further more, table space allocated by your basis consultant in the database server makes a large difference. Your table size settings are maintained in the technical settings in tcode SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would give you some clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 05:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519551#M238753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-05T05:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519552#M238754</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;&lt;/P&gt;&lt;P&gt;GOTO transaction 'SE11' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open your table in display mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Extras--&amp;gt;Table length'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to find the length of the table in bytes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wasim Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 06:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519552#M238754</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-08-05T06:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519553#M238755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sameer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this sample code it gives approx single record length and table size based on the no of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just copy the code and execute it , give any table name in the selection screen it will return you the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT zes_sample.


*--Give any Table Name
PARAMETERS : tabname TYPE dd02l-tabname.

DATA:  prc_line_len TYPE i VALUE 0,
       lv_tablename TYPE string,
       lv_dref TYPE REF TO data,
       tlen   TYPE i VALUE 0,
       rsize(50),
       tsize(50).

lv_tablename = tabname.

*--Dynamically creating the Internal table
CREATE DATA lv_dref TYPE TABLE OF (lv_tablename).

FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE STANDARD TABLE,
               &amp;lt;f&amp;gt; TYPE ANY.

*--Assigning the dynamically created Internal table to Field Symbol
ASSIGN lv_dref-&amp;gt;* TO &amp;lt;fs&amp;gt;.


*--Selecting single row for calculating the reord length
SELECT *
  FROM (tabname)
  INTO TABLE &amp;lt;fs&amp;gt; UP TO 1 ROWS.

*--Calculating the record length
READ TABLE &amp;lt;fs&amp;gt; ASSIGNING &amp;lt;f&amp;gt; INDEX 1.
DESCRIBE FIELD &amp;lt;f&amp;gt; LENGTH prc_line_len IN BYTE MODE.

*--Getting the No of records in the Table
SELECT COUNT( * ) FROM (tabname).


*--Calculating the Approx Table size
IF sy-subrc EQ 0.
  tlen =   prc_line_len * sy-dbcnt.
ENDIF.

tsize = tlen.
rsize =   prc_line_len .

WRITE : / 'Single Record Size : ' , rsize, 'Bytes'.
SKIP 2.

WRITE : / 'Approxiamte  size of table ' , tabname, 'with', sy-dbcnt, 'records is :',
       /  tsize, 'Bytes'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;&amp;lt;b&amp;gt;AS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 06:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519553#M238755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-05T06:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519554#M238756</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;Another approach using &amp;lt;b&amp;gt;RFC_GET_NAMETAB&amp;lt;/b&amp;gt; gets the table details from database.&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;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  REPORT zes_sample.
  PARAMETERS : tabname TYPE x030l-tabname.

  DATA : it_x030l TYPE STANDARD TABLE OF x030l WITH HEADER LINE,
         it_x031l TYPE STANDARD TABLE OF x031l WITH HEADER LINE.

  CALL FUNCTION 'RFC_GET_NAMETAB'
    EXPORTING
      tabname          = tabname
    IMPORTING
      header           = it_x030l
    TABLES
      nametab          = it_x031l
    EXCEPTIONS
      table_not_active = 1
      OTHERS           = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


  WRITE : / 'Table length in bytes', it_x030l-tablen.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;AS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Aug 2006 07:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519554#M238756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-05T07:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table Memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519555#M238757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wasim, when I use the path SE11-&amp;gt;Extras-&amp;gt;Table Width, I see 3 rows and 2 columns as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rows:&lt;/P&gt;&lt;P&gt;Structure Width&lt;/P&gt;&lt;P&gt;Key Length&lt;/P&gt;&lt;P&gt;Length of Data Division&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Columns:&lt;/P&gt;&lt;P&gt;Dictionary Length&lt;/P&gt;&lt;P&gt;ABAP Length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not familiar with the above terminology.  If you could elaborate that would be great.  All I need is the bite size information of one single record for a given table.  I am assuming that it is easy to find this information even without any kind of programming.  Let me know.  Also, is it not possible to know the memory required for a given data element?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 21:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-memory/m-p/1519555#M238757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-08T21:16:45Z</dc:date>
    </item>
  </channel>
</rss>

