<?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 Create Material with reference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553178#M250799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I have the next requeriment:&lt;/P&gt;&lt;P&gt;On a Z program, a user creates a relation between 2 material in 2 different plants, when the material on the 2nd plant doesn't exist must be created as a copy of the original material. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original MATNR --&amp;gt; MATERIAL01&lt;/P&gt;&lt;P&gt;Original WERKS --&amp;gt; IN55&lt;/P&gt;&lt;P&gt;Copy MATNR     --&amp;gt; MATERIAL02&lt;/P&gt;&lt;P&gt;Copy WERKS     --&amp;gt; IN25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the material MATERIAL02 doesn't exist in the IN25 Plant, so it must be created as a copy of the MATERIAL01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could be done manually on MM01 trx and adding the MATERIAL01 value as the reference material, but this needs to be done automatically, and the easiest way to do it is using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know a BAPI to do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 18:46:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-10T18:46:03Z</dc:date>
    <item>
      <title>Create Material with reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553178#M250799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I have the next requeriment:&lt;/P&gt;&lt;P&gt;On a Z program, a user creates a relation between 2 material in 2 different plants, when the material on the 2nd plant doesn't exist must be created as a copy of the original material. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original MATNR --&amp;gt; MATERIAL01&lt;/P&gt;&lt;P&gt;Original WERKS --&amp;gt; IN55&lt;/P&gt;&lt;P&gt;Copy MATNR     --&amp;gt; MATERIAL02&lt;/P&gt;&lt;P&gt;Copy WERKS     --&amp;gt; IN25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the material MATERIAL02 doesn't exist in the IN25 Plant, so it must be created as a copy of the MATERIAL01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This could be done manually on MM01 trx and adding the MATERIAL01 value as the reference material, but this needs to be done automatically, and the easiest way to do it is using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know a BAPI to do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553178#M250799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material with reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553179#M250800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the BAPI_MATERIAL_SAVEDATA.  You will have to get all of the data for the reference material, then swap the material number,  then call the BAPI.&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, 10 Aug 2006 18:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553179#M250800</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-10T18:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material with reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553180#M250801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Rich, but the material MATERIAL01 already exist... so is there a way to get ALL THE DATA of this material into the tables used by the BAPI_MATERIAL_SAVEDATA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 18:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553180#M250801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T18:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material with reference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553181#M250802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that you could get some of it using BAPI_MATERIAL_GET_DETAIL.&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, 10 Aug 2006 19:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-with-reference/m-p/1553181#M250802</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-10T19:06:45Z</dc:date>
    </item>
  </channel>
</rss>

