<?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 Structure (Twice) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716903#M1297466</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcin - this isn't marked as a question, so it starts off "closed".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 17:27:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-28T17:27:02Z</dc:date>
    <item>
      <title>Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716893#M1297456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Exports!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I am using  more than one zstructure in a table (include structure),but it is not accept the same Structure . It showing the error like the field twicely used.&lt;/P&gt;&lt;P&gt;Is it possible to acees more than on stru in a table ? Any alternate way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all...&lt;/P&gt;&lt;P&gt;Dharma..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 07:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716893#M1297456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T07:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716894#M1297457</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;Either create new structure with different fieldnames but with same data elements or add new fields to the same structure with different fieldnames and same data elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kalyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 07:57:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716894#M1297457</guid>
      <dc:creator>KalC</dc:creator>
      <dc:date>2009-05-27T07:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716895#M1297458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course you can include more than one structure in one table, and of course you cannot include the same structure twice due to the duplicate field names, as you found out.&lt;/P&gt;&lt;P&gt;Why on earth would you want to include the same structure twice?&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 08:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716895#M1297458</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-27T08:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716896#M1297459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kalyan &lt;/P&gt;&lt;P&gt;Thomas Zloch  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I understand, we can't use more than one stru in a table.&lt;/P&gt;&lt;P&gt;(My senario : I have create zdr_str_address for Present address and also include this structure for permanent address)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 08:37:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716896#M1297459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T08:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716897#M1297460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you cannot include the same structure twice due to the duplicate field names, as you found out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I must disagree here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although there can't be the same field name used more than once, you can include same structure any times you wish, by means of &lt;STRONG&gt;SUFFIXes&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- in SE11 edit your target table (or structure)&lt;/P&gt;&lt;P&gt;- from menu bar choose &lt;EM&gt;Edit-&amp;gt;Include-&amp;gt;Insert&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- type in &lt;EM&gt;Structure&lt;/EM&gt; name &lt;STRONG&gt;zdr_str_address&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- in &lt;EM&gt;Group&lt;/EM&gt; (optionally) i.e type &lt;STRONG&gt;present_address&lt;/STRONG&gt; , this way you can address entire substructure with using &lt;EM&gt;ztable-present_address&lt;/EM&gt; in your program&lt;/P&gt;&lt;P&gt;- in &lt;EM&gt;Name Suffix&lt;/EM&gt; use i.e &lt;STRONG&gt;_PS&lt;/STRONG&gt; - which would stand for present&lt;/P&gt;&lt;P&gt;- repeat that process to include structure second time bu in as &lt;EM&gt;Group&lt;/EM&gt; use &lt;STRONG&gt;permanent_address&lt;/STRONG&gt; and as &lt;EM&gt;Suffix&lt;/EM&gt; use &lt;STRONG&gt;_PR&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result you should be having two includes:&lt;/P&gt;&lt;P&gt;- .INCLU-_PS&lt;/P&gt;&lt;P&gt;- .INCLU-_PR&lt;/P&gt;&lt;P&gt;which hold same structure. Only difference is that components have this suffix used i.e&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;street_ps&lt;/STRONG&gt; - for include _PS&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;street_pr&lt;/STRONG&gt; - for include _PR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is more in program you don't have to distinguish which you are currently addressing (unless you do this in some procedure). Look at this example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: itab type table of ztable.
...

perform get_address itab-present_address.  "pass entire structure
peroform get_address itab-permanent_address.  "pass entire second structure

form get_address using fs_address type zdr_str_address.  
   "here static structure type zdr_str_address is used, not dynamic one 
  "so you can access components of both strcuture without suffixes

  fs_address-street.   "in first perform you address in fact street_ps, in second street_pr
endform.

"but outside the form, you have to use suffixes
itab-street_ps = ....

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typing is really powerfull in ABAP, just make use of it:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 09:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716897#M1297460</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-27T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716898#M1297461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcin for pointing this out, I have never used this and wasn't aware of it.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 11:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716898#M1297461</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-05-27T11:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716899#M1297462</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;u can use more than one include structure in the table... but the include structures should not contain the same field name.... if it contains the same fieldname  it will give you errors....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 11:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716899#M1297462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-27T11:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716900#M1297463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though I have great respect to your technical expertise here in SCN, this just proves that we are learning all the time &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Siddarth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We already agreed that this is feasible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 12:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716900#M1297463</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-27T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716901#M1297464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Dharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 11:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716901#M1297464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T11:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716902#M1297465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dharma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this solves your issue, please close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 17:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716902#M1297465</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-28T17:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716903#M1297466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcin - this isn't marked as a question, so it starts off "closed".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 17:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716903#M1297466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T17:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716904#M1297467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob, this time I wasn't aware of that &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 17:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716904#M1297467</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-28T17:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716905#M1297468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And it's too bad it wasn't - yours was the best answer I've seen in a long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10 (virtual) points for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 17:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716905#M1297468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T17:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716906#M1297469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hehe thanks for your generosity &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 17:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716906#M1297469</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-28T17:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Include Structure (Twice)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716907#M1297470</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 just wanted to refer this help link here,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebc9446011d189700000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ebc9446011d189700000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjula.S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jun 9, 2009 9:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 09:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/include-structure-twice/m-p/5716907#M1297470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-09T09:21:23Z</dc:date>
    </item>
  </channel>
</rss>

