<?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: Material's plant in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863585#M48594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umair,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use RFC MATERIAL_READ_PLANTS to read all the plants for a material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use CK_RFC_GET_PRICE to get the material price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you are talking about a sales item price, then that will be a whole different set of FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2005 15:27:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-04-21T15:27:11Z</dc:date>
    <item>
      <title>Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863575#M48584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get the plant(s) against a material number??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Umair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 07:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863575#M48584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T07:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863576#M48585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;- &amp;lt;b&amp;gt;MARC&amp;lt;/b&amp;gt; table with the material Number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 07:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863576#M48585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T07:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863577#M48586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umair, &lt;/P&gt;&lt;P&gt;You will have to go to MARC table to do that.&lt;/P&gt;&lt;P&gt;If u want to find out that a plant has been created for a material number, select matnr( material number),  werks   ( plant code ) from marc table in your select statement and comapare matnr in where clause with ur select option material number or the material taken from MARA table.&lt;/P&gt;&lt;P&gt;And check sy-subrc = 0 condition after ur select statement.&lt;/P&gt;&lt;P&gt;Try it out and u will get the desired results.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hitanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 07:12:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863577#M48586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T07:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863578#M48587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isnt there any BAPI thorugh which we can get the plants in which a specific material is produced??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly could you guide me how do we query a specific tabel to get the information though BAPIs like in this scenario??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 07:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863578#M48587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T07:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863579#M48588</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;A slightly more non-technical answer - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the transaction MM03, enter the material number and select the &amp;lt;i&amp;gt;Sales: General/Plant Data&amp;lt;/i&amp;gt; view. In the pop-up, hit F4 for the plant field. You will get all the plants for which the material has been maintained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 07:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863579#M48588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T07:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863580#M48589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't look like there is a BAPI for this,  but you can just use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Data: begin of itab occurs 0,
      matnr type marc-matnr,
      werks type marc-werks,
      end of itab.

Select matnr werks into corresponding fields 
          of table itab from marc
                  where matnr = Your_material_Number.
check sy-subrc  = 0.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 12:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863580#M48589</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-04-21T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863581#M48590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guyz for the replies but i am afraid i cannot directly query the table from db as i have to do this through my win Application and its discouraged to query the table there through .Net connector!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually have to get a mterial's price through Material.GetDetail BAPI and it requires the plant number in case of dealing with the valuation. All i have with me is the material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though i know this is the pure ABAP forum but will be glad to know if somebody knows any wprkaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Umair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 12:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863581#M48590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T12:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863582#M48591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,  then put the code into a RFC enabled function module, then call this function module from your .net application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 13:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863582#M48591</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-04-21T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863583#M48592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umair,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the RFC function RFC_READ_TABLE.  You need to pass it the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Parameters&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;QUERY_TABLE = 'MARC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Tables&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTIONS - One row with the following entry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEXT = 'MATNR = &amp;lt;zero padded material number&amp;gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDS - One row with the following entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDNAME = 'WERKS'&lt;/P&gt;&lt;P&gt;OFFSET = '000000'&lt;/P&gt;&lt;P&gt;LENGTH = '000004'&lt;/P&gt;&lt;P&gt;TYPE   = 'C'&lt;/P&gt;&lt;P&gt;FIELDTEXT = 'Plant'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result table DATA will have all the plants for the given material. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should get you exactly what you need.  You can use this function for getting data from any SAP table without going to the database directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Brad Williams&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 13:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863583#M48592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T13:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863584#M48593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umair,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a price determination is something totally different!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need much more (process) definition, before you can get (and display) correct price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you look for a purchase price / sales price / value of stock? That will be 3 different values.&lt;/P&gt;&lt;P&gt;In case of purchase or sales, it's generally amount dependent (scales: 10 cost 1,90 each, 1 cost 1,99).&lt;/P&gt;&lt;P&gt;Date! Tomorrow it might be more expensive.&lt;/P&gt;&lt;P&gt;Who is asking? Are you looking as customer? There might be special customer agreements...&lt;/P&gt;&lt;P&gt;If several vendors / sites can deliver, who will be source of supply -&amp;gt; different transport costs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get a more detailed definition and you will get a better answer for your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With all these explanations for MARC selects (e.g. via own  RFC-function, that's good) you can't get nearer to your solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 13:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863584#M48593</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-04-21T13:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Material's plant</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863585#M48594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Umair,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use RFC MATERIAL_READ_PLANTS to read all the plants for a material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use CK_RFC_GET_PRICE to get the material price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you are talking about a sales item price, then that will be a whole different set of FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know how it goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2005 15:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-s-plant/m-p/863585#M48594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-04-21T15:27:11Z</dc:date>
    </item>
  </channel>
</rss>

