<?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: FM COMPARE_STRUCTURE_DATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-compare-structure-data/m-p/4732490#M1110628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This FM first extract the field list from the I_DDIC_NAM dictionary structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it compare the two data structure  I_REC_OLD and I_REC_NEW for each field of the DDIC that exists on both structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I_CHECK_MODE equal 'X' it stop at the first changed field, else it compare every common fields of the two structure parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA field1 TYPE mara,
     field2 type marc,
     is_diff.
* compare
CALL FUNCTION 'COMPARE_STRUCTURE_DATA'
     EXPORTING
          i_ddic_name  = 'MARA'
          i_rec_old    = field1
          i_rec_new    = field2
          i_check_mode = 'Y'
     IMPORTING
          e_is_diff    = is_diff.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The FM will compare each subfield of field2 (structure MARC) and field1 (structure MARA) that exists in database MARA and MARC, if any field value differs, it will return is_diff = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 15:18:40 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-10-29T15:18:40Z</dc:date>
    <item>
      <title>FM COMPARE_STRUCTURE_DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-compare-structure-data/m-p/4732489#M1110627</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;Can any one explain me how to use FM COMPARE_STRUCTURE_DATA and what means each parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: moussaid mohammed on Oct 29, 2008 4:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 14:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-compare-structure-data/m-p/4732489#M1110627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: FM COMPARE_STRUCTURE_DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-compare-structure-data/m-p/4732490#M1110628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This FM first extract the field list from the I_DDIC_NAM dictionary structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it compare the two data structure  I_REC_OLD and I_REC_NEW for each field of the DDIC that exists on both structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I_CHECK_MODE equal 'X' it stop at the first changed field, else it compare every common fields of the two structure parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA field1 TYPE mara,
     field2 type marc,
     is_diff.
* compare
CALL FUNCTION 'COMPARE_STRUCTURE_DATA'
     EXPORTING
          i_ddic_name  = 'MARA'
          i_rec_old    = field1
          i_rec_new    = field2
          i_check_mode = 'Y'
     IMPORTING
          e_is_diff    = is_diff.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The FM will compare each subfield of field2 (structure MARC) and field1 (structure MARA) that exists in database MARA and MARC, if any field value differs, it will return is_diff = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 15:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-compare-structure-data/m-p/4732490#M1110628</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-10-29T15:18:40Z</dc:date>
    </item>
  </channel>
</rss>

