<?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: matnr selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885993#M933578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way of doing this is to form a database view and write a select query if the data record you are pulling comes under the inner join of these tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2008 03:44:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-05T03:44:10Z</dc:date>
    <item>
      <title>matnr selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885990#M933575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i need to select matnr from mara passing werks,mmsta and from mvke passing vkorg,vtweg and from marc passing mstae.&lt;/P&gt;&lt;P&gt;werks,mmsta,vkorg,vtweg,mstae are in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me. results will be rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 09:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885990#M933575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T09:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: matnr selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885991#M933576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use parameters or select options for all the fields depending on ur requirement and then  use  select statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 09:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885991#M933576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: matnr selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885992#M933577</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;One way is to put a select query with join on these tables passing the respective fields in where clause of these tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I feel that better idea would be to write select query, then filtering the data and then getting data from other table using for All Entries Clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more option is that you look for some SAP Standard joins. May be there is a join for these tables given by SAP. That would fetch the data faster. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these options. You should get the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Lalit Kabra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 10:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885992#M933577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T10:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: matnr selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885993#M933578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way of doing this is to form a database view and write a select query if the data record you are pulling comes under the inner join of these tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 03:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885993#M933578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T03:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: matnr selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885994#M933579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select fi &lt;/P&gt;&lt;P&gt;          f2&lt;/P&gt;&lt;P&gt;          f3&lt;/P&gt;&lt;P&gt;inti itab_marc&lt;/P&gt;&lt;P&gt;from table marc&lt;/P&gt;&lt;P&gt;where werks  eq pa_werks&lt;/P&gt;&lt;P&gt;         mmsta eq pa_mmsta&lt;/P&gt;&lt;P&gt;         vkorg&lt;/P&gt;&lt;P&gt;         vtveg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;likewise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab_mac[] not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select werks&lt;/P&gt;&lt;P&gt;         mmsta &lt;/P&gt;&lt;P&gt;into itab2&lt;/P&gt;&lt;P&gt;from marc&lt;/P&gt;&lt;P&gt;for all entries in itab1&lt;/P&gt;&lt;P&gt;where clause&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;then iif itab2[] not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr&lt;/P&gt;&lt;P&gt; into itab3&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;for all enrties in itab2&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;clause&lt;/P&gt;&lt;P&gt;endif,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u try this way also, check the syntax and use accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Mohinder &lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 04:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885994#M933579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T04:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: matnr selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885995#M933580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.. Need clear info  to answer compeltely..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have mention Fields in Selection-Screen. &amp;amp; which Selection Screen Parameters to retrieve from the Database.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what are the output fields from the Respective tables, Was not Clear.. or you want the Corresponding MATNR alone.. to be check against these tables mentioned by you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             &lt;STRONG&gt;Here is a Sample Code with the given information....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Selection Screen :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;werks,mmsta,vkorg,vtweg,mstae are in &lt;STRONG&gt;selection screen&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Consider all the Selection Screen Field are SELECT-OPTIONS&lt;/U&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Select Query :&lt;/P&gt;&lt;P&gt;1) select &lt;STRONG&gt;matnr&lt;/STRONG&gt; from &lt;STRONG&gt;mara&lt;/STRONG&gt; passing &lt;STRONG&gt;s_werks, s_mmsta&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr FROM MARA  INTO TABLE it_mara&lt;/P&gt;&lt;P&gt;                                          WHERE matnr IN s_werks &lt;/P&gt;&lt;P&gt;                                            AND    mmsta IN s_mmsta.&lt;/P&gt;&lt;P&gt;Assu: it_mara contains only matnr field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) and from &lt;STRONG&gt;mvke&lt;/STRONG&gt; passing s&lt;STRONG&gt;&lt;U&gt;vkorg, s&lt;/U&gt;vtweg&lt;/STRONG&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;&lt;P&gt;3) and from &lt;STRONG&gt;marc&lt;/STRONG&gt; passing &lt;STRONG&gt;s_mstae.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Maximum Points for Useful Answers&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 04:47:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/matnr-selection/m-p/3885995#M933580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T04:47:04Z</dc:date>
    </item>
  </channel>
</rss>

