<?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: ABAP 7.5 create inline table/structure with dynamic type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-5-create-inline-table-structure-with-dynamic-type/m-p/12100074#M1972628</link>
    <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; i feared it, but since i'm still struggling here and there with the new syntax, i hope i was missing something i wasn't able to find in the help.&lt;BR /&gt;Would you mind to convert the comment to Answer? So i close the question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 14:39:54 GMT</pubDate>
    <dc:creator>SimoneMilesi</dc:creator>
    <dc:date>2019-12-12T14:39:54Z</dc:date>
    <item>
      <title>ABAP 7.5 create inline table/structure with dynamic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-5-create-inline-table-structure-with-dynamic-type/m-p/12100072#M1972626</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I'm scratching my head trying to achieve a little goal into inline declaration.&lt;/P&gt;
  &lt;P&gt;Using standard FMs I receive some tables into &lt;EM&gt;&lt;STRONG&gt;REF TO data &lt;/STRONG&gt;&lt;/EM&gt;variables, dynamically determined.&lt;/P&gt;
  &lt;P&gt;Using the following code, i can fill my internal table &lt;STRONG&gt;&lt;EM&gt;COND&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;TYPES: tty_conds TYPE STANDARD TABLE OF /vgm/ips1ybagce WITH DEFAULT KEY.
ASSIGN bckt_cond-&amp;gt;* TO FIELD-SYMBOL(&amp;lt;tab&amp;gt;).
DATA(cond) = VALUE tty_conds( ).
cond = CORRESPONDING #( &amp;lt;tab&amp;gt; ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;My issue is: COND can have different structure than /VGM/IPS1YBAGCE, given by customizing settings.&lt;/P&gt;
  &lt;P&gt;I tried with&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA: simo_tabname TYPE tablename_umg VALUE '/VGM/T_IPS1YBAGCE_DB'. "it's the table type for my prev structure
ASSIGN bckt_cond-&amp;gt;* TO FIELD-SYMBOL(&amp;lt;tab&amp;gt;).
DATA(cond) = VALUE simo_tabname( ).
cond = CORRESPONDING #( &amp;lt;tab&amp;gt; ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But, of course, SIMO_TABNAME doesn't exist.&lt;/P&gt;
  &lt;P&gt;So i tried with the ( )&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA: simo_tabname TYPE tablename_umg VALUE '/VGM/T_IPS1YBAGCE_DB'. "it's the table type for my prev structure
ASSIGN bckt_cond-&amp;gt;* TO FIELD-SYMBOL(&amp;lt;tab&amp;gt;).
DATA(cond) = VALUE (simo_tabname)( ).
cond = CORRESPONDING #( &amp;lt;tab&amp;gt; ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But i got error anyway.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;There is chance to achieve it? &lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Simone&lt;BR /&gt;&lt;BR /&gt;EDIT&lt;/P&gt;
  &lt;P&gt;Yes, i can use &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA cond type ref to data.

FIELD-SYMBOLS: &amp;lt;tab_new&amp;gt; type standard table

.CREATE DATA cond ('/VGM/T_IPS1YBAGCE_DB').

ASSIGN cond-&amp;gt;* to &amp;lt;tab_new&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;but it wouldn't be inline &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-5-create-inline-table-structure-with-dynamic-type/m-p/12100072#M1972626</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2019-12-12T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.5 create inline table/structure with dynamic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-5-create-inline-table-structure-with-dynamic-type/m-p/12100073#M1972627</link>
      <description>&lt;P&gt;Constructor operators require static types so you'll have to stick to the old construct &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE DATA dref TYPE (dynamictype).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-5-create-inline-table-structure-with-dynamic-type/m-p/12100073#M1972627</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-12-12T14:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP 7.5 create inline table/structure with dynamic type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-5-create-inline-table-structure-with-dynamic-type/m-p/12100074#M1972628</link>
      <description>&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; i feared it, but since i'm still struggling here and there with the new syntax, i hope i was missing something i wasn't able to find in the help.&lt;BR /&gt;Would you mind to convert the comment to Answer? So i close the question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-7-5-create-inline-table-structure-with-dynamic-type/m-p/12100074#M1972628</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2019-12-12T14:39:54Z</dc:date>
    </item>
  </channel>
</rss>

