<?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 Looking for two structure types comparison method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793544#M1778810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could somebody provide a method for two structure types comparison ? &lt;/P&gt;&lt;P&gt;I need to define if both structures have same: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;fields quantity &lt;/LI&gt;&lt;LI&gt;field names&lt;/LI&gt;&lt;LI&gt;fields order&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but one of field has different length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it exist &lt;STRONG&gt;short method&lt;/STRONG&gt; for the difference check?&lt;/P&gt;&lt;P&gt;Of course I can create two tables by CL_ABAP_TYPE_DESCR&amp;nbsp; with types of these structures and to compare these internal tables them line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be exists more short Method without LOOP ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2013 06:05:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-18T06:05:37Z</dc:date>
    <item>
      <title>Looking for two structure types comparison method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793544#M1778810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could somebody provide a method for two structure types comparison ? &lt;/P&gt;&lt;P&gt;I need to define if both structures have same: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;fields quantity &lt;/LI&gt;&lt;LI&gt;field names&lt;/LI&gt;&lt;LI&gt;fields order&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but one of field has different length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it exist &lt;STRONG&gt;short method&lt;/STRONG&gt; for the difference check?&lt;/P&gt;&lt;P&gt;Of course I can create two tables by CL_ABAP_TYPE_DESCR&amp;nbsp; with types of these structures and to compare these internal tables them line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be exists more short Method without LOOP ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793544#M1778810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-18T06:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for two structure types comparison method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793545#M1778811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3351517"&gt;http://scn.sap.com/thread/3351517&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793545#M1778811</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-18T06:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for two structure types comparison method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793546#M1778812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anuser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure can be compared either by using the FM DDIF_NAMETAB_GET or using CL_ABAP_TYPE_DESCR like mentioned below. But as far as I know, if you want to compare internal table records, you must loop through the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Structure comparison using CL_ABAP_TYPE_DESCR:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: begin of my_type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; age TYPE i,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name type text30,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of my_type.&lt;/P&gt;&lt;P&gt;DATA: my_data&amp;nbsp;&amp;nbsp; TYPE my_type,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; descr_ref TYPE ref to cl_abap_typedescr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;BR /&gt;&amp;nbsp; descr_ref = cl_abap_typedescr=&amp;gt;describe_by_data( my_data ).&lt;/P&gt;&lt;P&gt;&amp;nbsp; WRITE: / 'Typename:', descr_ref-&amp;gt;absolute_name.&lt;BR /&gt;&amp;nbsp; WRITE: / 'Kind&amp;nbsp;&amp;nbsp;&amp;nbsp; :', descr_ref-&amp;gt;type_kind.&lt;BR /&gt;&amp;nbsp; WRITE: / 'Length&amp;nbsp; :', descr_ref-&amp;gt;length.&lt;BR /&gt;&amp;nbsp; WRITE: / 'Decimals:', descr_ref-&amp;gt;decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ajay Bose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793546#M1778812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-18T06:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for two structure types comparison method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793547#M1778813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I forgot a small detail. These structures are Local in ABAP program and they don't have relation to SAP Dictionary. &lt;/P&gt;&lt;P&gt;But it seems to me advised CL_TPDA_TOOL_DIFF-&amp;gt;DIFF_VARS my be appropriate. I check it&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 06:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793547#M1778813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-18T06:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for two structure types comparison method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793548#M1778814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes becoz this is what New ABAP debugger use in its new tool structure comparison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-two-structure-types-comparison-method/m-p/9793548#M1778814</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-18T07:03:15Z</dc:date>
    </item>
  </channel>
</rss>

