<?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: include type in another structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754528#M1303773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_test-include-first = something.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2009 12:04:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-03T12:04:26Z</dc:date>
    <item>
      <title>include type in another structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754527#M1303772</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;i am declaring on structure like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of struct dd,&lt;/P&gt;&lt;P&gt;first type c, &lt;/P&gt;&lt;P&gt;second type c,&lt;/P&gt;&lt;P&gt;end of struct dd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i want to use this structure into second on like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begin of struct2,&lt;/P&gt;&lt;P&gt;icon type icon-id,&lt;/P&gt;&lt;P&gt;include type dd,&lt;/P&gt;&lt;P&gt;end of struct2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It shows no errors but the problem is to access the second structure like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_test type struct2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_test-first  = something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows the error message "can't find field first in sructure".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please specify how to assign the value into include fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dhirendra&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 11:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754527#M1303772</guid>
      <dc:creator>dhirendra_pandit</dc:creator>
      <dc:date>2009-06-03T11:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: include type in another structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754528#M1303773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_test-include-first = something.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754528#M1303773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: include type in another structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754529#M1303774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:begin of dd,
      first(10) type c,
      second(10) type c,
    end of dd.

data:begin of struct2,
      icon type icon-id.
      include structure dd.
data: end of struct2.

data: begin of wa_test occurs 0.
        include structure struct2.
data:  end of wa_test.

wa_test-first = 'something'.
append wa_test.

loop at wa_test.
  write:/ wa_test-first.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754529#M1303774</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-06-03T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: include type in another structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754530#M1303775</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;It should be accessed this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; wa_test-dd-first = something.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754530#M1303775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: include type in another structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754531#M1303776</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;if we want to access the fields of first which are included in second structure, we have use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_struct2-dd-first = something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2009 12:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-type-in-another-structure/m-p/5754531#M1303776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-03T12:24:11Z</dc:date>
    </item>
  </channel>
</rss>

