<?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 Data selection from MKPF &amp; MSEG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179386#M125315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   I want to pick Material document number (MBLNR)and quantity in a RFC call from APO to R/3. My selection criteria are posting date, material number, plant and movement type.&lt;/P&gt;&lt;P&gt;What would be the best possible way to select data from performance point of view&lt;/P&gt;&lt;P&gt;1) Should I create a join on MPF and MSEg. OR &lt;/P&gt;&lt;P&gt;2) Is there a view which alread exists for these two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sivyanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Feb 2006 10:00:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-05T10:00:51Z</dc:date>
    <item>
      <title>Data selection from MKPF &amp; MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179386#M125315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   I want to pick Material document number (MBLNR)and quantity in a RFC call from APO to R/3. My selection criteria are posting date, material number, plant and movement type.&lt;/P&gt;&lt;P&gt;What would be the best possible way to select data from performance point of view&lt;/P&gt;&lt;P&gt;1) Should I create a join on MPF and MSEg. OR &lt;/P&gt;&lt;P&gt;2) Is there a view which alread exists for these two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sivyanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2006 10:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179386#M125315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-05T10:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection from MKPF &amp; MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179387#M125316</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 to see the view M_MKPF and CNMSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway you can also create an your own view for MKPF and MSEG table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure which is the faster solution, but you can try to compare tham.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2006 10:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179387#M125316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-05T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection from MKPF &amp; MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179388#M125317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    use simple statement as you have secondary index on&lt;/P&gt;&lt;P&gt;    mkpf-budat &lt;/P&gt;&lt;P&gt;     select from mkpf into it_mkpf&lt;/P&gt;&lt;P&gt;                 where budat = s_budat.&lt;/P&gt;&lt;P&gt;     if not it_mkpf[] is initial.&lt;/P&gt;&lt;P&gt;       select from mseg in to it_mseg&lt;/P&gt;&lt;P&gt;               for all entries in it_mkpf&lt;/P&gt;&lt;P&gt;               mblnr = it_mkpf-mblnr&lt;/P&gt;&lt;P&gt;               mjahr = it_mkpf-mjahr&lt;/P&gt;&lt;P&gt;               matnr in s_matnr&lt;/P&gt;&lt;P&gt;               werks in s_werks&lt;/P&gt;&lt;P&gt;               bwart in s_bwart.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole &lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2006 11:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179388#M125317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-05T11:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection from MKPF &amp; MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179389#M125318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;       But if we use join on Mseg and MKPf , will it use the indexes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2006 11:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179389#M125318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-05T11:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection from MKPF &amp; MSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179390#M125319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nikhil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. selection criteria are posting date, material number, plant and movement type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Since MKPF and MSEG contain vast amount of data,&lt;/P&gt;&lt;P&gt;  and looking to the selection-critera,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. My opinion is that :&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  U should first select from MKPF.&lt;/P&gt;&lt;P&gt;  (using posting date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. This will give u a specific number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Then using that, u can once&lt;/P&gt;&lt;P&gt;   again SELECT from MSEG&lt;/P&gt;&lt;P&gt;   (taking into consideration the document number(s)&lt;/P&gt;&lt;P&gt;   recevived in step 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. USING JOINS DIRECTLY&lt;/P&gt;&lt;P&gt;   WILL AFFECT THE PERFORMANCE.&lt;/P&gt;&lt;P&gt;  (IT WILL TAX THE DATABASE SERVER&lt;/P&gt;&lt;P&gt;   UNNECESSARILY FOR CRATING JOINS&lt;/P&gt;&lt;P&gt;  ON THOUSANDS OF RECORDS.&lt;/P&gt;&lt;P&gt;&lt;/P&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2006 04:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-from-mkpf-mseg/m-p/1179390#M125319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-06T04:35:01Z</dc:date>
    </item>
  </channel>
</rss>

