<?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: Dictionary structure with reference to two transparent tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944688#M1335228</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 guess we cannot do so. But however &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:
BEGIN OF ty_s_tablejoin,
col1 TYPE z_table-col1,
col2 TYPE z_table-col2,
END OF ty_s_tablejoin.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 07:54:35 GMT</pubDate>
    <dc:creator>sridhar_meesala</dc:creator>
    <dc:date>2009-07-30T07:54:35Z</dc:date>
    <item>
      <title>Dictionary structure with reference to two transparent tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944687#M1335227</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 have a question about structures defined as dictionary objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to define a dictionary structure consisting of the structure types of two transparent tables, i.e. to define a dictionary type that corresponds to something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;           BEGIN OF ty_s_tablejoin,&lt;/P&gt;&lt;P&gt;              tab1     TYPE z_table1,&lt;/P&gt;&lt;P&gt;              tab2     TYPE z_table2,&lt;/P&gt;&lt;P&gt;           END OF ty_s_tablejoin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where z_table1 and z_table2 are both transparent tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need it as a dictionary type in order to pass the structure/table into a function module as an input parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be other ways of doing this, but it could be interesting to know if it is possible. Please excuse me if this is a weird question, I'm rather new with SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Klaus Stenbæ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 07:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944687#M1335227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T07:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary structure with reference to two transparent tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944688#M1335228</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 guess we cannot do so. But however &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES:
BEGIN OF ty_s_tablejoin,
col1 TYPE z_table-col1,
col2 TYPE z_table-col2,
END OF ty_s_tablejoin.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 07:54:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944688#M1335228</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2009-07-30T07:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary structure with reference to two transparent tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944689#M1335229</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;PRE&gt;&lt;CODE&gt;TYPES:
BEGIN OF ty_s_tablejoin.
 TYPES: INCLUDE STRUCTURE z_table1,
 TYPES: INCLUDE STRUCTURE  z_table2,
END OF ty_s_tablejoin.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 07:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944689#M1335229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T07:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary structure with reference to two transparent tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944690#M1335230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the quick answers, but I think you misunderstood me a little:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type definition that I mention in my own post is valid and working within an ABAP report, however I'm interested in defining that type as a dictionary object (structure) so that I can use it as 'associated type' of an input parameter in a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Klaus Stenbæ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 08:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944690#M1335230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T08:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary structure with reference to two transparent tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944691#M1335231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't create a structure in the data dictionary from two tables.  However, you can define tables based on structures then create a structure combining both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;P&gt;Create structures ZST1 and ZST2 (containing the fields of z_table1 and z_table2 respectively)&lt;/P&gt;&lt;P&gt;Then create tables z_table1 and z_table2, defining them based on ZST1 and ZST2&lt;/P&gt;&lt;P&gt;Finally create a structure (say ZST12) combining both ZST1 and ZST2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a practical point of view, ZST1 and ZST2 should not contain the client field as when you combine them the field will duplicate.  Add the client field to z_table1, z_table2 and ZST12 before including the structres.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 08:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944691#M1335231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T08:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dictionary structure with reference to two transparent tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944692#M1335232</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;Here is a way. &lt;/P&gt;&lt;P&gt;Create Z_structure1 and Z_structure2 for Z_table1 and Z_table2 respectively.&lt;/P&gt;&lt;P&gt;Then while creating Z_table1, use ".INCLUDE" in field ans  Z_structure1in the data element column of se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same for Z_table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then for Z_table_join, include both these structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 08:33:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dictionary-structure-with-reference-to-two-transparent-tables/m-p/5944692#M1335232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T08:33:13Z</dc:date>
    </item>
  </channel>
</rss>

