<?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: CREATE DATA TYPE TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941981#M63354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, 46C is history.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jul 2008 20:19:44 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2008-07-24T20:19:44Z</dc:date>
    <item>
      <title>CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941973#M63346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding my IDOC viewer project I'm facing a question regarding the SAP release. I started with some success on Release 471, now I tried to continue on 46C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA gr_ref&lt;/P&gt;&lt;P&gt;  TYPE lvc_t_fcat."STANDARD TABLE OF LVC_S_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;works in both releases, while&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA ls_seg_dat-ref&lt;/P&gt;&lt;P&gt;  TYPE STANDARD TABLE OF (&amp;lt;edid4&amp;gt;-segnam).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;compiles on 471, but generates syntax error in 46C.&lt;/P&gt;&lt;P&gt;The error message "Unable to interpret "TABLE". Possible causes of error: Incorrect spelling or comma error."&lt;/P&gt;&lt;P&gt;does not help too much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean that there is no way to create tables dynamically on release 46C?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope for a solution!&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;C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 07:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941973#M63346</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2005-08-31T07:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941974#M63347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This a short example how you can create dynamic table in 4.6C&lt;/P&gt;&lt;P&gt;DATA: dref TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;data: booking TYPE sbook occurs 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE DATA dref like booking[].&lt;/P&gt;&lt;P&gt;ASSIGN dref-&amp;gt;* TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 07:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941974#M63347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T07:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941975#M63348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;The dynamic way of creating an internal table using the create data syntax is not available in 46c. it is available only from 471 onwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As somebody pointed out, you cud have fieldsymbols in 46c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points to the reply that answered ur question. If ur question is answered, clsoe the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 07:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941975#M63348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T07:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941976#M63349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Svetlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your example shows how to create a data object for a static definition (type sbook). This does not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is a table of a dynamically entered structure. May be you can finish this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters:&lt;/P&gt;&lt;P&gt;  p_struc type tabname default 'EDIDC'.&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  gr_ref type rf to data.&lt;/P&gt;&lt;P&gt;field-symbols:&lt;/P&gt;&lt;P&gt;  &amp;lt;ft&amp;gt; type standard table.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;following statement(s) shold create table with&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;structure 'EDIDC'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create data gr_dref ??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign gr_dref-&amp;gt;* to &amp;lt;ft&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible on 46C? - I think: No way.&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;C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 08:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941976#M63349</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2005-08-31T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941977#M63350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are 2 options:&lt;/P&gt;&lt;P&gt;1) to use GENERATE SUBROUTINE POOL itab NAME name. &lt;/P&gt;&lt;P&gt;In this way you can use my code&lt;/P&gt;&lt;P&gt;2) CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;This class method uses GENERATE SUBROUTINE and can create a dynamic table.&lt;/P&gt;&lt;P&gt;But in the both ways there is limitation. You can use GENERATE SUBROUTINE, I think, 36 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 08:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941977#M63350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T08:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941978#M63351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a short example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: dref TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM CREATE_TABLE USING 'BSIK'&lt;/P&gt;&lt;P&gt;                           dref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CREATE_TABLE USING TAB_TYPE&lt;/P&gt;&lt;P&gt;                        dref type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data tab_line(72).&lt;/P&gt;&lt;P&gt;  DATA itab like table of tab_line.&lt;/P&gt;&lt;P&gt;  data mytype(10).&lt;/P&gt;&lt;P&gt;  data PROG(8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  mytype = TAB_TYPE.&lt;/P&gt;&lt;P&gt;  APPEND 'PROGRAM SUBPOOL.' to itab.&lt;/P&gt;&lt;P&gt;  APPEND 'FORM MYSUBR USING dref type ref to data.' to itab.&lt;/P&gt;&lt;P&gt;  concatenate 'data mytable TYPE standard table of'&lt;/P&gt;&lt;P&gt;  mytype 'WITH DEFAULT KEY.' into tab_line separated by space.&lt;/P&gt;&lt;P&gt;  append tab_line to itab.&lt;/P&gt;&lt;P&gt;  APPEND 'CREATE DATA dref like mytable.' to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND 'ENDFORM.' to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GENERATE SUBROUTINE POOL itab NAME PROG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM ('MYSUBR') IN PROGRAM (PROG) USING dref.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2005 09:34:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941978#M63351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-31T09:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941979#M63352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clemens,&lt;/P&gt;&lt;P&gt;As said earlier, it is not possible in 46c. however, as somebody pointed out, you can go for dynamic programming...&lt;/P&gt;&lt;P&gt;whereby u can dynamically create a sub-routine or a program.... in which u can dynamically create ur table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember 2 reward points if this post answered ur Q.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Prabhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2005 09:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941979#M63352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-02T09:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941980#M63353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only possibility I found was to use available table types in the dictionary. This works on a 4.6C system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  DATA: lf_type(20)          TYPE c VALUE 'MARA',
        lf_table_type(20)    TYPE c VALUE 'MARA_TAB'.

  DATA: wa_data              TYPE REF TO data,
        lt_data              TYPE REF TO data.

  FIELD-SYMBOLS: &amp;lt;structure&amp;gt; TYPE ANY,
                 &amp;lt;field&amp;gt;     TYPE ANY,
                 &amp;lt;table&amp;gt;     TYPE TABLE.

  CREATE DATA wa_data TYPE (lf_type).
  ASSIGN wa_data-&amp;gt;* TO &amp;lt;structure&amp;gt;.

  ASSIGN COMPONENT 'MATNR' OF STRUCTURE &amp;lt;structure&amp;gt; TO &amp;lt;field&amp;gt;.
  &amp;lt;field&amp;gt; = 'My Material'.

  CREATE DATA lt_data TYPE (lf_table_type).
  ASSIGN lt_data-&amp;gt;* TO &amp;lt;table&amp;gt;.

  APPEND &amp;lt;structure&amp;gt; TO &amp;lt;table&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Little curious: An internal table type defined with "TYPES ty_mara_tab TYPE TABLE OF mara" is not accepted by CREATE DATA, but the dictionary type is. So even generating a little top include dynamically with the needed type as a table type will not work on 4.6C &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Stefan Kozlowski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2007 14:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941980#M63353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-27T14:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: CREATE DATA TYPE TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941981#M63354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, 46C is history.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2008 20:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-data-type-table/m-p/941981#M63354</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-07-24T20:19:44Z</dc:date>
    </item>
  </channel>
</rss>

