<?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: Bapi/ function module to get views of material based on plants in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744844#M1674903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also facing the same problem, i am creating Odata services and i need BAPI to get material details based on plants and storage location.&lt;/P&gt;&lt;P&gt;I am unable to find the BAPI/FM, could you please let us know the standard BAPI to get material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2014 16:12:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-01-29T16:12:40Z</dc:date>
    <item>
      <title>Bapi/ function module to get views of material based on plants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744841#M1674900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;The problem I am facing is explained below:&lt;/P&gt;&lt;P&gt;I want a function module/ Bapi which will give me VIEWS a material is extended to based on plant/ storage location.&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;I have extended a material to certain plants &amp;amp; sales org and want to know, which views are assigned to which plant in a material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to get this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ashlesha Desai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 16:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744841#M1674900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-10T16:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/ function module to get views of material based on plants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744842#M1674901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All main tables of a materail (i.e. MARA, MARC, MARD have fields called PSTAT ) If you do a f1 on this field then you will get the documentation below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;H3&gt;Short Text&lt;/H3&gt;&lt;P&gt;Maintenance status&lt;/P&gt;&lt;H3&gt;Use&lt;/H3&gt;&lt;P&gt;The maintenance status records:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Which &lt;A _jive_internal="true" href="https://answers.sap.com/thread/sapevent:DOCU_LINK\DS:GLOS.user_department"&gt;&lt;STRONG&gt;user departments&lt;/STRONG&gt;&lt;/A&gt; may maintain a &lt;A _jive_internal="true" href="https://answers.sap.com/thread/sapevent:DOCU_LINK\DS:GLOS.material_master_record"&gt;&lt;STRONG&gt;material master record&lt;/STRONG&gt;&lt;/A&gt; of a particular &lt;A _jive_internal="true" href="https://answers.sap.com/thread/sapevent:DOCU_LINK\DS:GLOS.material_type"&gt;&lt;STRONG&gt;material type&lt;/STRONG&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Which user departments have already maintained the material master record at a particular hierarchy level&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The overall maintenance status is made up of the individual maintenance statuses. The individual maintenance statuses have the following meaning:&lt;/P&gt;&lt;/CODE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="left"&gt;User department&lt;/TH&gt;&lt;TH align="left"&gt;Maintenance status&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Work scheduling&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Accounting&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Classification&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MRP&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Purchasing&lt;/TD&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Production resources/tools&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Costing&lt;/TD&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Basic data&lt;/TD&gt;&lt;TD&gt;K&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Storage&lt;/TD&gt;&lt;TD&gt;L&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Forecasting&lt;/TD&gt;&lt;TD&gt;P&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Quality management&lt;/TD&gt;&lt;TD&gt;Q&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Warehouse management&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Sales&lt;/TD&gt;&lt;TD&gt;V&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Plant stocks&lt;/TD&gt;&lt;TD&gt;X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Storage location stocks&lt;/TD&gt;&lt;TD&gt;Z&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/PRE&gt;&lt;P&gt;What is means that for a material for which only basic data and classification is maintained you have MARA-PSTAT = KC (K=basic data, C= CLASSIFICATION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another exmaple &lt;/P&gt;&lt;P&gt;for a material &lt;/P&gt;&lt;P&gt;MARA-PSTAT = KDEALBVP( Basic + mrp + purchasing + scheduling + storage + account + sales + forcasting veiew is maintained for some plant / storage location)&lt;/P&gt;&lt;P&gt;For one plant of the same material&lt;/P&gt;&lt;P&gt;MARC-PSTAT = DEALBVP ( mrp + purchasing + scheduling + storage + account + sales + forcasting) &lt;/P&gt;&lt;P&gt;For same material and plant for one storage location has the following valud&lt;/P&gt;&lt;P&gt;MARD-PSTAT (DL mrp + Storage )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Different plant and storage location may have differen views maitained and may have different pstat. Note : the sequence of character can't be determined and you need to write the logic reading each character of material. I think there should be some FM for this but not sure. I can only tell you the logic &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/5.0.1/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 05:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744842#M1674901</guid>
      <dc:creator>Private_Member_49934</dc:creator>
      <dc:date>2012-04-11T05:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/ function module to get views of material based on plants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744843#M1674902</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;Have a look at table MARD. It gives which material is extended to which plant and storage location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Danish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 05:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744843#M1674902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-04-11T05:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi/ function module to get views of material based on plants</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744844#M1674903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also facing the same problem, i am creating Odata services and i need BAPI to get material details based on plants and storage location.&lt;/P&gt;&lt;P&gt;I am unable to find the BAPI/FM, could you please let us know the standard BAPI to get material.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 16:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-function-module-to-get-views-of-material-based-on-plants/m-p/8744844#M1674903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-29T16:12:40Z</dc:date>
    </item>
  </channel>
</rss>

