<?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: Comparing two structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5491999#M1256734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just do,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S1 = S2.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2009 10:22:40 GMT</pubDate>
    <dc:creator>awin_prabhu</dc:creator>
    <dc:date>2009-04-14T10:22:40Z</dc:date>
    <item>
      <title>Comparing two structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5491997#M1256732</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;        Can anyone let me know how to compare two structures ie., wheather all fields(sequence/datatypes) of  &amp;lt;Structure1&amp;gt; are same as &amp;lt;Structure2&amp;gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rahul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5491997#M1256732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5491998#M1256733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are comparing in some report program in debugging mode, then in the new sap debugger, we have a functionality to compare structures.... you can use that. ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;otherwise, compare the data types of the fields of the structures. If the data types are same , then the structures are identical . Also the number of fields shopuld also be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do get back if you need further help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Prem Sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5491998#M1256733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5491999#M1256734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just do,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF S1 = S2.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5491999#M1256734</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2009-04-14T10:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492000#M1256735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = wa_structure1
    CHANGING
      ct_fieldcat            = it_fieldcat1
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.


  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name       = wa_structure1
    CHANGING
      ct_fieldcat            = it_fieldcat2
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.


if it_fieldcat1[] = it_fieldcat2[].
,...success message
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492000#M1256735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492001#M1256736</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>Tue, 14 Apr 2009 10:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492001#M1256736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T10:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492002#M1256737</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;Try the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lo_obj TYPE REF TO CL_ABAP_STRUCTDESCR.
DATA: lt_comp1       TYPE cl_abap_structdescr=&amp;gt;component_table.
DATA: lt_comp2       TYPE cl_abap_structdescr=&amp;gt;component_table.

lo_obj  ?= cl_abap_structdescr=&amp;gt;describe_by_name( 'STRUC1_NAME' ).
lt_comp1 = lo_obj-&amp;gt;get_components( ).

lo_obj  ?= cl_abap_structdescr=&amp;gt;describe_by_name( 'STRUC2_NAME' ).
lt_comp2 = lo_obj-&amp;gt;get_components( ).

if lt_comp1 = lt_comp2.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 10:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492002#M1256737</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2009-04-14T10:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492003#M1256738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answers, but I wanted to compare two structures of workareas(not values in it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:  &amp;lt;WA1&amp;gt; = &amp;lt;WA2&amp;gt;...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-structures/m-p/5492003#M1256738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:34:13Z</dc:date>
    </item>
  </channel>
</rss>

