<?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: Returning table without defining structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693133#M304243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, anybody answers me and I don't know if I don't explain enough my problem or maybe my problem hasn't solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone could answer me anything else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2006 18:26:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-17T18:26:11Z</dc:date>
    <item>
      <title>Returning table without defining structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693132#M304242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm back again, finally I can work with general tables without defining structures but now I found a problem, I want introduce the modified fields into a table for returning it,  but the question is that this table hasn't the structure definition because is for general purpose so I need return it a then work with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for a solution here and into the sap help but I'm not able to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I work with the fields (field1-a = xxxxx)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab_spfli TYPE spfli OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          itab1_spfli LIKE itab_spfli OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          wa_spfli LIKE spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO wa_spfli FROM spfli.&lt;/P&gt;&lt;P&gt;  APPEND wa_spfli TO itab_spfli.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM read_table TABLES itab_spfli[] USING 'ITAB_SPFLI[]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1_spfli INTO wa_spfli.&lt;/P&gt;&lt;P&gt;  WRITE: / wa_spfli-carrid.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form read_table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;P_TABLA text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM read_table TABLES pe_itspfli USING ti.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS: &amp;lt;f1&amp;gt; TYPE STANDARD TABLE,&lt;/P&gt;&lt;P&gt;                 &amp;lt;f2&amp;gt; TYPE ANY,&lt;/P&gt;&lt;P&gt;                 &amp;lt;f3&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;  DATA tabla(20).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  tabla = ti.&lt;/P&gt;&lt;P&gt;  CONDENSE tabla NO-GAPS.&lt;/P&gt;&lt;P&gt;  ASSIGN (tabla) TO &amp;lt;f1&amp;gt;[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get data into table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT &amp;lt;f1&amp;gt; ASSIGNING &amp;lt;f2&amp;gt;.&lt;/P&gt;&lt;P&gt;    WHILE sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;f2&amp;gt; TO &amp;lt;f3&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDWHILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Working with table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    APPEND &amp;lt;f2&amp;gt; TO itab1_spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " read_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You Very Much In Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 07:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693132#M304242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Returning table without defining structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693133#M304243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, anybody answers me and I don't know if I don't explain enough my problem or maybe my problem hasn't solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone could answer me anything else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 18:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693133#M304243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T18:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Returning table without defining structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693134#M304244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would have to use the ASSIGN COMPONENT statement, you can directly assign the component by field name to the field symbol, then simply move the value to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 18:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693134#M304244</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-17T18:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Returning table without defining structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693135#M304245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;f2&amp;gt; TO &amp;lt;f3&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;f3&amp;gt; = &amp;lt;new value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will change the value in the internal table automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is what you are asking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 18:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-table-without-defining-structure/m-p/1693135#M304245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T18:39:28Z</dc:date>
    </item>
  </channel>
</rss>

