<?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: Two Tables in a single structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216930#M767124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;  Thx for your reply.&lt;/P&gt;&lt;P&gt;  Do i need to use the alias a and b to access the structure variable??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2008 08:52:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-18T08:52:02Z</dc:date>
    <item>
      <title>Two Tables in a single structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216928#M767122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  How can i declare a structure that include all the fields of two table??  Please note that there some common fields in the two tables such as MANDT.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF MY_STRUCT.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TABLEA.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE TABLEB.&lt;/P&gt;&lt;P&gt;       END OF MY_STRUCT. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 08:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216928#M767122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T08:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables in a single structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216929#M767123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kit,&lt;/P&gt;&lt;P&gt;you may declare like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF my_struct.
        INCLUDE STRUCTURE tablea AS a RENAMING WITH SUFFIX a1.
        INCLUDE STRUCTURE tableb AS b RENAMING WITH SUFFIX b1.
TYPES: END OF my_struct.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope this helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 08:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216929#M767123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T08:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables in a single structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216930#M767124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;  Thx for your reply.&lt;/P&gt;&lt;P&gt;  Do i need to use the alias a and b to access the structure variable??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 08:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216930#M767124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T08:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Two Tables in a single structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216931#M767125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kit,&lt;/P&gt;&lt;P&gt;if you declare (say) a variable with reference to this type:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: l_mystruc TYPE my_struct.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;...then you can access the individual fields by appending the suffix to the name of the field.&lt;/P&gt;&lt;P&gt;For example, if both tables have field MANDT, you may access L_MYSTRUC-MANDTA1 for the first table and L_MYSTRUC-MANDTB1 for the second table.&lt;/P&gt;&lt;P&gt;You may also access the whole structure of each table, by typing L_MYSTRUC-A or L_MYSTRUC-B.&lt;/P&gt;&lt;P&gt;I hope this helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2008 08:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-tables-in-a-single-structure/m-p/3216931#M767125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-18T08:59:36Z</dc:date>
    </item>
  </channel>
</rss>

