<?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: Structure Comparison - Debugger Diff Tool Equivalent in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325767#M1637616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New debugger uses the class CL_TPDA_DIFF_STRUC for structure comparison. There are other classes available for Table, Object and other comparisons - Check with CL_TPDA_DIFF*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check this classes, it find the different values by going through each component and comparing it with each other using the field-symbols. So, you can work on similar approch:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Fields of both structures&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort them by field names, if you want comparison by field names&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For each field check the value and compare with other value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the FM COMPARE_STRUCTURE_DATA which does the comparison, but doesn't use RTTS so, you need to have data dictionary reference in order to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 22:52:35 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2011-11-22T22:52:35Z</dc:date>
    <item>
      <title>Structure Comparison - Debugger Diff Tool Equivalent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325766#M1637615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know of a function module/other which performs logic similar to what is possible in the Diff Tool in the new debugger? (see &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/2c/840b42202cce6ce10000000a155106/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/2c/840b42202cce6ce10000000a155106/content.htm&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a great tool available in debugging that I would like to use in a program to highlight differences between structures which share common fields yet have different layouts.  Consider the following example of two structures and their corresponding values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure A&lt;/P&gt;&lt;P&gt; - Field 'A'; Value '123'&lt;/P&gt;&lt;P&gt; - Field 'B'; Value '234'&lt;/P&gt;&lt;P&gt; - Field 'C'; Value '345'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure B&lt;/P&gt;&lt;P&gt; - Field B; Value '234'&lt;/P&gt;&lt;P&gt; - Field C; Value '456'&lt;/P&gt;&lt;P&gt; - Field D; Value '567'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, fields B and C are common to both structures and the assigned values for field C differs.  I am able to see this type of analysis from the debugging tool - is there a way to perform similar logic in a program using a standard function module/syntax?  I'm not sure if a field-symbol type approach would be very efficient although I am open to thoughts.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 19:28:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325766#M1637615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-22T19:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Comparison - Debugger Diff Tool Equivalent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325767#M1637616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New debugger uses the class CL_TPDA_DIFF_STRUC for structure comparison. There are other classes available for Table, Object and other comparisons - Check with CL_TPDA_DIFF*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check this classes, it find the different values by going through each component and comparing it with each other using the field-symbols. So, you can work on similar approch:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Fields of both structures&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort them by field names, if you want comparison by field names&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For each field check the value and compare with other value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the FM COMPARE_STRUCTURE_DATA which does the comparison, but doesn't use RTTS so, you need to have data dictionary reference in order to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 22:52:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325767#M1637616</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-11-22T22:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Comparison - Debugger Diff Tool Equivalent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325768#M1637617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this WIKI, it uses RTTS to compare internal tables dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Comparing" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Comparing&lt;/A&gt;&lt;EM&gt;Two&lt;/EM&gt;Internal&lt;EM&gt;Tables&lt;/EM&gt;-&lt;EM&gt;A&lt;/EM&gt;Generic+Approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 00:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325768#M1637617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-23T00:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Comparison - Debugger Diff Tool Equivalent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325769#M1637618</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;Is there any example about CL_TPDA_DIFF_STRUC Class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2011 14:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325769#M1637618</guid>
      <dc:creator>former_member212713</dc:creator>
      <dc:date>2011-11-24T14:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Structure Comparison - Debugger Diff Tool Equivalent</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325770#M1637619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 14:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure-comparison-debugger-diff-tool-equivalent/m-p/8325770#M1637619</guid>
      <dc:creator>former_member189009</dc:creator>
      <dc:date>2014-10-30T14:52:23Z</dc:date>
    </item>
  </channel>
</rss>

