<?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: Create Material Master in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271477#M150462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. Ok this information is a first big hint for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inserted some values in the headdata fiels and executed it. It says: "170 The parameter KZ_PFR does not contain a valid value". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find this parameter in the headdata?&lt;/P&gt;&lt;P&gt;Where can I find it quickly amid that amount of parameters??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2006 16:29:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-16T16:29:22Z</dc:date>
    <item>
      <title>Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271473#M150458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to describe my situation. I want to create a material master data with the bapi "bapi_master_savedata". I have found out that this is the right one. Now I went to Tcode "se37" and saw too many input possibilities. I inserted some values but an error says the value "matnr" is blank or something like that. I just want to insert some mandatory values, create a material and get back the response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters&lt;/P&gt;&lt;P&gt;Headdata/MATERIAL=new_material&lt;/P&gt;&lt;P&gt;Headdata/IND_SECTOR=c&lt;/P&gt;&lt;P&gt;Headdata/MATL_TYPE=voll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clientdata/MATL_GROUP=01&lt;/P&gt;&lt;P&gt;Clientdata/BASE_OUM=GAI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables&lt;/P&gt;&lt;P&gt;Materialdescription/MATL_DESC=neues_material_desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question to you is, which input values are mandatory and have to be given input at least??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go:khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 16:16:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271473#M150458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T16:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271474#M150459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually....All parameters are optional except for &amp;lt;b&amp;gt;HEADDATA&amp;lt;/b&amp;gt; which is mandatory...You must fill the whole structure. It's based on table &amp;lt;b&amp;gt;BAPIMATHEAD&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 16:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271474#M150459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271475#M150460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gokhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take a look at import, export and tables parameters of the function module/BAPI. If the optional checkbox is not checked then it means mandatory field otherwise an option for you to populate or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 16:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271475#M150460</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-03-16T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271476#M150461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It really depends on what fields you have marked as required in configuration.  Here is a sample program that creates a FERT material with the bare minimum fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003 .

data: headdata type bapimathead.
data: clientdata type bapi_mara.
data: clientdatax type bapi_marax.
data: descdata type table of BAPI_MAKT with header line.
data: return type  bapiret2 .
data: returnm type table of bapi_matreturn2 with header line.
data: xmara type mara.


parameters: p_matnr type mara-matnr.


headdata-material        = p_matnr.
headdata-ind_sector      = 'M'.
headdata-matl_type       = 'FERT'.
headdata-basic_view = 'X'.


clientdata-BASE_UOM   = 'EA'.
clientdatax-BASE_UOM   = 'X'.
clientdata-old_mat_no = 'Old Material'.
clientdatax-old_mat_no = 'X'.
clientdata-division = '00'.
clientdatax-division = 'X'.

descdata-LANGU = sy-langu.
descdata-MATL_DESC = 'This is the description'.
append descdata.

call function 'BAPI_MATERIAL_SAVEDATA'
  exporting
    headdata                   = headdata
    clientdata                 = clientdata
    clientdatax                = clientdatax
*   PLANTDATA                  =
*   PLANTDATAX                 =
*   FORECASTPARAMETERS         =
*   FORECASTPARAMETERSX        =
*   PLANNINGDATA               =
*   PLANNINGDATAX              =
*   STORAGELOCATIONDATA        =
*   STORAGELOCATIONDATAX       =
*   VALUATIONDATA              =
*   VALUATIONDATAX             =
*   WAREHOUSENUMBERDATA        =
*   WAREHOUSENUMBERDATAX       =
*   SALESDATA                  =
*   SALESDATAX                 =
*   STORAGETYPEDATA            =
*   STORAGETYPEDATAX           =
 importing
   return                     = return
  tables
    MATERIALDESCRIPTION        = descdata
*   UNITSOFMEASURE             =
*   UNITSOFMEASUREX            =
*   INTERNATIONALARTNOS        =
*   MATERIALLONGTEXT           =
*   TAXCLASSIFICATIONS         =
    returnmessages             = returnm
*   PRTDATA                    =
*   PRTDATAX                   =
*   EXTENSIONIN                =
*   EXTENSIONINX               =
          .

check sy-subrc  = 0.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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, 16 Mar 2006 16:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271476#M150461</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-16T16:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271477#M150462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. Ok this information is a first big hint for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inserted some values in the headdata fiels and executed it. It says: "170 The parameter KZ_PFR does not contain a valid value". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find this parameter in the headdata?&lt;/P&gt;&lt;P&gt;Where can I find it quickly amid that amount of parameters??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 16:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271477#M150462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T16:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271478#M150463</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;I have successfully created a material master data, horray. Thanks you all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one final question. Is there any response value that is thrown back ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 16:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271478#M150463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T16:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271479#M150464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, its an external Number range assigned, then you get the material number back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please reward the posts that helped you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 16:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271479#M150464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T16:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271480#M150465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will definitly want to check the messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    returnmessages             = returnm


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be a success message in there that says that the material was created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message class is M3 and number is 800, the new material number will be in the MESSAGE_V1 field&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, 16 Mar 2006 16:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271480#M150465</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-16T16:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271481#M150466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a return of type BAPIRET2&lt;/P&gt;&lt;P&gt;and a returnmessages of type BAPI_MATRETURN2 (that you mentioned)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok I will check at least the fields in "returnmessages". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I check the values from the response??&lt;/P&gt;&lt;P&gt;Maybe right away in tcode se37??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 17:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271481#M150466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T17:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271482#M150467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gokhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you executing the function in a stand alone mode, you will get it in SE37. If you are calling from a program, then the return values will come into the variable which is recieving the the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 17:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271482#M150467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create Material Master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271483#M150468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I am having a problem with bapi_material_savedata. I am creating new material and we are using external numbering. I used bapi_material_getintnumber to get the next material number then use it when calling bapi bapi_material_savedata. However, after executing the &lt;U&gt;savedata bapi an error occurs saying that the material number is not existing. my question is how will i'm going to use the number I got from bapi&lt;/U&gt;material_getintnumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 05:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-material-master/m-p/1271483#M150468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T05:43:30Z</dc:date>
    </item>
  </channel>
</rss>

