<?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_MATERIAL_SAVEDATA to update material master in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384983#M187532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I am not getting any error message when i am modifying that material through MM02 transaction. Because the material have only Basic data 1&amp;amp;2 views. Tragr(transportation group) field is in sales view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the TRAGR field is mandatory in our customizing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One strange thing is the BAPI is updating Material master but the return message is showing as error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2006 08:22:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-29T08:22:55Z</dc:date>
    <item>
      <title>BAPI_MATERIAL_SAVEDATA to update material master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384981#M187530</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 am using BAPI_MATERIAL_SAVEDATA to update a material. I am updating only one field i.e MARA-MSTAE(X-plant material status on basic data 1 view) But when i excecute the BAPI its giving an error message "The field MARA-TRAGR/BAPI_MARA-TRANS_GRP is defined as a required field; it does not contain an entry" but in MARA its updating MSTAE field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pasting here my code. Please help me how to solve this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST1 no standard page heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: headdata type bapimathead,&lt;/P&gt;&lt;P&gt;      client_data type bapi_mara,&lt;/P&gt;&lt;P&gt;      client_datax type bapi_marax,&lt;/P&gt;&lt;P&gt;      return like bapiret2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;headdata-material = '000000000190000195'.&lt;/P&gt;&lt;P&gt;client_data-PUR_STATUS = '10'.&lt;/P&gt;&lt;P&gt;client_datax-PUR_STATUS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    HEADDATA                   = headdata&lt;/P&gt;&lt;P&gt;   CLIENTDATA                 = client_data&lt;/P&gt;&lt;P&gt;   CLIENTDATAX                = CLIENT_DATAX&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLANTDATA                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLANTDATAX                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORECASTPARAMETERS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORECASTPARAMETERSX        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLANNINGDATA               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PLANNINGDATAX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STORAGELOCATIONDATA        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STORAGELOCATIONDATAX       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUATIONDATA              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUATIONDATAX             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAREHOUSENUMBERDATA        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WAREHOUSENUMBERDATAX       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SALESDATA                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SALESDATAX                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STORAGETYPEDATA            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STORAGETYPEDATAX           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLAG_ONLINE                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FLAG_CAD_CALL              = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_DEQUEUE                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   RETURN                     = return&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIALDESCRIPTION        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNITSOFMEASURE             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNITSOFMEASUREX            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNATIONALARTNOS        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MATERIALLONGTEXT           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TAXCLASSIFICATIONS         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURNMESSAGES             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PRTDATA                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PRTDATAX                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONIN                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONINX               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if return-type = 'S'.&lt;/P&gt;&lt;P&gt;commit WORK.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In material 190000195 there are only 2 views basic data1 and basic data2. Initially MARA-MSTAE is '00' and i am trying to update it as '10'. My code is updating the field but giving return parameter as Error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also checked in Value range table of TRAGR we can have blank value i.e Generic value.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 07:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384981#M187530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T07:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA to update material master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384982#M187531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you update the material master using the transaction MM02, do you get the same error message? Is transportation group in Customizing defined as a required field?&lt;/P&gt;&lt;P&gt;&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 08:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384982#M187531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T08:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA to update material master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384983#M187532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I am not getting any error message when i am modifying that material through MM02 transaction. Because the material have only Basic data 1&amp;amp;2 views. Tragr(transportation group) field is in sales view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the TRAGR field is mandatory in our customizing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One strange thing is the BAPI is updating Material master but the return message is showing as error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 08:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384983#M187532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T08:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA to update material master</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384984#M187533</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;I guess the error is caused due to the fact the TRAGR field is in the MARA table, although it is only shown at the Sales level.&lt;/P&gt;&lt;P&gt;If in customizing the field is set to obligatory it should be filled, despite the fact you are not changing any Sales-view related data because the field is in the MARA table.&lt;/P&gt;&lt;P&gt;&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;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 08:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata-to-update-material-master/m-p/1384984#M187533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-29T08:35:28Z</dc:date>
    </item>
  </channel>
</rss>

