<?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: Dynamic create table problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174973#M998108</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;In your last thread Sujamol Augustine replied to your message regarding the dynamic internal table for MARA. Did you try that..please let us know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5769595"&gt;&lt;/A&gt;&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2008 16:37:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-14T16:37:26Z</dc:date>
    <item>
      <title>Dynamic create table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174970#M998105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Dynamic internal table from the table passed on the selection screen Everythign works good but when I do a select Querry, or UPdate or Insert on this table it fails. Some memory Issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code I am using. I am working on 4.6C&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : i_fcat         TYPE STANDARD TABLE OF lvc_s_fcat.
DATA: i_table_data1  TYPE REF TO data.

FIELD-SYMBOLS: &amp;lt;f_table_data1&amp;gt;     TYPE STANDARD TABLE.

PARAMETERS: p_table TYPE tabname OBLIGATORY.

  CLEAR   i_fcat.
  REFRESH i_fcat.

  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
            i_structure_name = p_table  " Table Name "MARA
       CHANGING
            ct_fieldcat      = i_fcat
       EXCEPTIONS
            OTHERS           = 1.

  CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = i_fcat
    IMPORTING
      ep_table        = i_table_data1.
  IF sy-subrc = 0.
    ASSIGN i_table_data1-&amp;gt;* TO &amp;lt;f_table_data1&amp;gt;.
  ELSE.
    WRITE: 'Error creating internal table'.
  ENDIF.

*Get DATA
SELECT * FROM (p_table) INTO TABLE &amp;lt;f_table_data1&amp;gt;.

The above select Querry fails because the table &amp;lt;f_table_data1&amp;gt; is created with 804 bytes for P-table as MARA..


Data : t_mara like mara occurs 0 with header line.
the above internal table T_mara is created with 806 Bytes.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My question is when we create an Internal dynamically why is created with 804 Bytes instead of 806 bytes. &lt;/P&gt;&lt;P&gt;Because of this memory mismatch all mt select, Update Insert statements are failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Suggestions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 15:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174970#M998105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic create table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174971#M998106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM (p_table) INTO corresponding fields of TABLE &amp;lt;f_table_data1&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working fine for me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 16:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174971#M998106</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-14T16:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic create table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174972#M998107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ARS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF I put in the Select Corresponding It works fine for me.&lt;/P&gt;&lt;P&gt; Not an Issue but however my Update and insert statements are failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    UPDATE (p_table) FROM TABLE &amp;lt;f_table_data1&amp;gt;.&lt;/P&gt;&lt;P&gt;or problem with&lt;/P&gt;&lt;P&gt;   INSERT (p_table) FROM TABLE &amp;lt;f_table_data1&amp;gt;.    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above statement is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 16:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174972#M998107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T16:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic create table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174973#M998108</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;In your last thread Sujamol Augustine replied to your message regarding the dynamic internal table for MARA. Did you try that..please let us know..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5769595"&gt;&lt;/A&gt;&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 16:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174973#M998108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T16:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic create table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174974#M998109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Buddy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ster&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 17:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174974#M998109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T17:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic create table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174975#M998110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably already know it, but just in case you don't, you definitely shouldn't do direct INSERTs or UPDATEs on standard tables like MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2008 00:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-create-table-problem/m-p/4174975#M998110</guid>
      <dc:creator>alejandro_bindi</dc:creator>
      <dc:date>2008-07-15T00:21:15Z</dc:date>
    </item>
  </channel>
</rss>

