<?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 Compare Master Data with Data in a Table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-master-data-with-data-in-a-table/m-p/3638042#M876149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Experts!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted the same thread twice in BI general, but was not able to get replies.&lt;/P&gt;&lt;P&gt;Could anyone help out me with this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have loaded some data into a Master Data Object (YMETADATA) in Development system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the same data can be present in a View RSDVCHA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our aim is to write a ABAP program, which would read a record from the View (RSDVCHA) and look into Master Data records and show whether it is present in the master data or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have any built-in code to compare by such criteria??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone written such type of code earlier, If so, please do help me out in writing this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anjum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2008 11:35:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-17T11:35:49Z</dc:date>
    <item>
      <title>Compare Master Data with Data in a Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-master-data-with-data-in-a-table/m-p/3638042#M876149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAP Experts!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted the same thread twice in BI general, but was not able to get replies.&lt;/P&gt;&lt;P&gt;Could anyone help out me with this problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have loaded some data into a Master Data Object (YMETADATA) in Development system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, the same data can be present in a View RSDVCHA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our aim is to write a ABAP program, which would read a record from the View (RSDVCHA) and look into Master Data records and show whether it is present in the master data or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have any built-in code to compare by such criteria??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone written such type of code earlier, If so, please do help me out in writing this code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anjum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 11:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-master-data-with-data-in-a-table/m-p/3638042#M876149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T11:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Master Data with Data in a Table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-master-data-with-data-in-a-table/m-p/3638043#M876150</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;PRE&gt;&lt;CODE&gt;tables:
  YMETADATA,
  RSDVCHA.

*internal table declarations
data:
  t_ymetadata type table of ymetadata.

data:
  t_rsdvcha type table of t_rsdvcha.
  
*populating records into internal tables

 select * from ymetadata into table t_ymetadata.
 
 
 select * from rsdvcha into table t_rsdvcha.
 
*checking if records are present or not. 
 loop at t_ymetadata into ymetadata.

*here fieldname is which you want to compare with the field of rsdvcha.
   read table t_rsdvcha into rsdvcha with key fieldname = ymetadata-fieldname.
   if sy-subrc eq 0.
     write:/ ymetadata-fieldname, ' is present in rsdvcha'.
   else.
     write:/ ymetadata-fieldname, 'record does not exist in rsdvcha'.
   endif.
   
 endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2008 15:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-master-data-with-data-in-a-table/m-p/3638043#M876150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-17T15:12:25Z</dc:date>
    </item>
  </channel>
</rss>

