<?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 match data between two table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074505#M1178795</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 develop report for annexure base on customer, material and posting date.&lt;/P&gt;&lt;P&gt;i have used mseg, mkpf, afpo, makt , kna1,resb, lips tables.&lt;/P&gt;&lt;P&gt;my customer and material fields in mseg table and posting date fields in mkpf then how i match data between two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my Code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;select * from mseg into corresponding fields of table it_mseg where kunnr = cust&lt;/P&gt;&lt;P&gt;                                              and matnr = mat and  bwart = '501'.&lt;/P&gt;&lt;P&gt;loop at it_mseg.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF as a JOIN mseg as b ON a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_mseg&lt;/P&gt;&lt;P&gt;WHERE Budat = DATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mkpf.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2009 13:38:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-04T13:38:02Z</dc:date>
    <item>
      <title>match data between two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074505#M1178795</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 develop report for annexure base on customer, material and posting date.&lt;/P&gt;&lt;P&gt;i have used mseg, mkpf, afpo, makt , kna1,resb, lips tables.&lt;/P&gt;&lt;P&gt;my customer and material fields in mseg table and posting date fields in mkpf then how i match data between two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my Code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;select * from mseg into corresponding fields of table it_mseg where kunnr = cust&lt;/P&gt;&lt;P&gt;                                              and matnr = mat and  bwart = '501'.&lt;/P&gt;&lt;P&gt;loop at it_mseg.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF as a JOIN mseg as b ON a&lt;SUB&gt;mblnr = b&lt;/SUB&gt;mblnr and a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_mseg&lt;/P&gt;&lt;P&gt;WHERE Budat = DATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mkpf.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 13:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074505#M1178795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: match data between two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074506#M1178796</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;You can directly put the MBLNR into both MSEG and MKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 13:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074506#M1178796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T13:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: match data between two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074507#M1178797</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM MKPF as a INNER JOIN mseg as b ON a~mblnr = b~mblnr and a~mjahr = b~mjahr
into corresponding fields of table it_mseg_mkpf
WHERE a~budat = date 
AND    b~matnr = mat
AND   b~bwart  = '501'.

loop at it_mkpf.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 13:49:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074507#M1178797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T13:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: match data between two table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074508#M1178798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use two types of select statements..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select mblnr matnr kunnr from mseg into table itab where &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If itab is not initial.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Select budat from mkpf into jtab for all entries in itab where mblnr = itab-mblnr and budat = date..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select a&lt;SUB&gt;matnr a&lt;/SUB&gt;kunnr b&lt;SUB&gt;budat from mseg as a innerjoin mkpf as b on a&lt;/SUB&gt;mblnr = b~mblnr into table itab where budat = date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2009 13:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/match-data-between-two-table/m-p/5074508#M1178798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-04T13:54:04Z</dc:date>
    </item>
  </channel>
</rss>

