<?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 Comparing 2 identicals structures. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-identicals-structures/m-p/6924871#M1484830</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 to find the fields that are differrent in two big structures. &lt;/P&gt;&lt;P&gt;Rather than comparing all fileds one by one, i was wondering if there is quicker way to do it? &lt;/P&gt;&lt;P&gt;Or maybe a Function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 09:58:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-05T09:58:07Z</dc:date>
    <item>
      <title>Comparing 2 identicals structures.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-identicals-structures/m-p/6924871#M1484830</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 to find the fields that are differrent in two big structures. &lt;/P&gt;&lt;P&gt;Rather than comparing all fileds one by one, i was wondering if there is quicker way to do it? &lt;/P&gt;&lt;P&gt;Or maybe a Function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olivier D.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 09:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-identicals-structures/m-p/6924871#M1484830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T09:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 identicals structures.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-identicals-structures/m-p/6924872#M1484831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello O , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

type-pools: abap.

data: gt_comp1             type standard table of abap_componentdescr,
      gt_comp2             type standard table of abap_componentdescr,
      gs_comp              type abap_componentdescr,
      go_struct            type ref to cl_abap_structdescr.

go_struct ?= cl_abap_typedescr=&amp;gt;describe_by_name( 'BKPF' ).
gt_comp1 = go_struct-&amp;gt;get_components( ).

go_struct ?= cl_abap_typedescr=&amp;gt;describe_by_name( 'BSEG' ).
gt_comp2 = go_struct-&amp;gt;get_components( ).

if gt_comp1[] ne gt_comp2[].
  write: / 'Error'.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-identicals-structures/m-p/6924872#M1484831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T10:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing 2 identicals structures.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-identicals-structures/m-p/6924873#M1484832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a small custom program for this. You can get all the fields in the structure using FM  DDIF_FIELDINFO_GET. Now, compare the both the internal tables and delete the duplicate entries using read inside loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-2-identicals-structures/m-p/6924873#M1484832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T10:17:59Z</dc:date>
    </item>
  </channel>
</rss>

