<?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: How to get structure values into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987020#M402941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In your problem, Struct1 is not a structure but an Internal Table. You can create a structure using the statement TYPE, LIKE, LIKE LINE OF etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  So when you write DATA: STRUCT1 TYPE TABLE OF STRUCT2, here STRUCT2 is a DDIC structure or a user defined TYPE and STRUCT1 is an internal table of type STRUCT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got my point. Please feel free to ask any query related to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Please dont forget to award the points if you are satisfied with the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ravi &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2007 22:46:13 GMT</pubDate>
    <dc:creator>raviprakash</dc:creator>
    <dc:date>2007-02-19T22:46:13Z</dc:date>
    <item>
      <title>How to get structure values into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987017#M402938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have a senerio, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:      struct1 TYPE STANDARD TABLE OF struct2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get the  values of  structure struct1 into a internal table or work area  at runtime if it is declared like the above. struct2 is also a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 22:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987017#M402938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T22:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get structure values into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987018#M402939</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;your question doesn't actually speak about the problem and not complete. please check once again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 22:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987018#M402939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T22:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get structure values into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987019#M402940</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;since it is declared as TYPE STANDARD TABLE means , it is an internal table without header line.&lt;/P&gt;&lt;P&gt;Just declare a work area like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data wa_struct type struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now whenever you have to store value just pass using work area like -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into wa_struct.&lt;/P&gt;&lt;P&gt;append wa_struct to struct1.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 22:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987019#M402940</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-02-19T22:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get structure values into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987020#M402941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In your problem, Struct1 is not a structure but an Internal Table. You can create a structure using the statement TYPE, LIKE, LIKE LINE OF etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  So when you write DATA: STRUCT1 TYPE TABLE OF STRUCT2, here STRUCT2 is a DDIC structure or a user defined TYPE and STRUCT1 is an internal table of type STRUCT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got my point. Please feel free to ask any query related to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Please dont forget to award the points if you are satisfied with the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ravi &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 22:46:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987020#M402941</guid>
      <dc:creator>raviprakash</dc:creator>
      <dc:date>2007-02-19T22:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get structure values into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987021#M402942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ztest MESSAGE-ID 00.

TYPE-POOLS sydes.

DATA: BEGIN OF itab OCCURS 0,
        f1,
        f2,
        f3,
      END   OF itab.

DATA:  itab2 TYPE sydes_desc.

DESCRIBE FIELD itab INTO itab2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 23:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-structure-values-into-internal-table/m-p/1987021#M402942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T23:05:52Z</dc:date>
    </item>
  </channel>
</rss>

