<?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: update MARC using bapi_material_savedata in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610851#M1569336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select single * from mara into w_mara where matnr = material.

next move corresponding-fields ot w_mara to xbapimathead.

Select * from marc into table t_marc where matnr = matnr.
Loop at t_marc.

next move corresponding-fields ot t_marc to la_plantdata.

and update the below fields finally
 la_plantdata-PLANT = '1001'.
 la_Plantdata-PUR_STATUS = '01'.
 
 
 la_plantdatax-PLANT = '1001'.
 la_plantdatax-PUR_STATUS = 'X'.


    call function 'BAPI_MATERIAL_SAVEDATA'
         exporting
              headdata             = xbapimathead
              plantdata            = la_plantdata
              plantdatax           = la_plantdatax
         importing
              return               = xbapiret2.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 09:35:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-05T09:35:37Z</dc:date>
    <item>
      <title>update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610850#M1569335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to update Marc table using the bapi_material_savedata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have passed  these values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;la_plantdata-PLANT = '1001'.&lt;/P&gt;&lt;P&gt;la_Plantdata-PUR_STATUS = '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;la_plantdatax-PLANT = '1001'.&lt;/P&gt;&lt;P&gt;la_plantdatax-PUR_STATUS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but these is no change in MARC table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 09:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610850#M1569335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T09:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610851#M1569336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try this way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select single * from mara into w_mara where matnr = material.

next move corresponding-fields ot w_mara to xbapimathead.

Select * from marc into table t_marc where matnr = matnr.
Loop at t_marc.

next move corresponding-fields ot t_marc to la_plantdata.

and update the below fields finally
 la_plantdata-PLANT = '1001'.
 la_Plantdata-PUR_STATUS = '01'.
 
 
 la_plantdatax-PLANT = '1001'.
 la_plantdatax-PUR_STATUS = 'X'.


    call function 'BAPI_MATERIAL_SAVEDATA'
         exporting
              headdata             = xbapimathead
              plantdata            = la_plantdata
              plantdatax           = la_plantdatax
         importing
              return               = xbapiret2.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 09:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610851#M1569336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T09:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610852#M1569337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i am creating a material with the bapi and the materal need to be stored in Marc table too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the record is not getting updated in marc table and the record is getting created in mara .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is giving me the following message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;144The field MARA-EKWSL/BAPI_MARA-PUR_VALKEY is defined as a required field; it does not contain an entry&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: naresh.k.dasari on Jan 5, 2011 10:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 09:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610852#M1569337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T09:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610853#M1569338</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;Try to add this into header structure:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
HEADDATA-MATERIAL      = P_MATNR. " &amp;lt;- set material number here
HEADDATA-MRP_VIEW      = 'X'.
HEADDATA-INP_FLD_CHECK = 'W'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.s.: if this will not help, than change HEADDATA-MRP_VIEW to HEADDATA-PURCHASE_VIEW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 10:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610853#M1569338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610854#M1569339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the error message explains, fill this value (check table is T405, ask your functionnal for a rule to fill the field or a default value to use)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As MARA record has been inserted, first check via MM03 if the missing field has been actually filled with a default value, you may try to add the material to a plant via MM01 and look for any error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program, you could use BAPI_MATERIAL_GET_DETAIL after the commit of the first BAPI call (MARA insertion) and use the value actually inserted in MARA for the missing field (may comes from a default value associated to material type or other customizing point) in the second BAPI call (MARC insertion)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 10:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610854#M1569339</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-01-05T10:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610855#M1569340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have checked the table t405 the value are there in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i hav e checked in mm03 as well but these is only 2 views are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLase help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 10:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610855#M1569340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T10:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610856#M1569341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Purchasing value key" is (should be) on "Purchasing" tab, even if the field is on MARA tab, the field is not checked before you affect the material to a plant. (so you were able to create the material basic data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only seen the 2 basic data tabs, no ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check via SE16n on MARA, is the field EKWSL initial ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now call MM01, fill material field, press enter, other fields should be populated now (ignore popup) and press "organizational levels" and select "Purchasing". The screen which will appear will have the"Purchasing value key" input-enabled (and can be initial for first plant) and you MUST fill this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your BAPI must proceed the same way, so fill the field BAPI_MARA-PUR_VALKEY when creating MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you really don't want to (or cannot) fill the "purchasing" tab, try to remove the purchase view of the call (field BAPIMATHEAD-PURCHASE_VIEW in HEADDATA) -&amp;gt; Ask your functionnal&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 10:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610856#M1569341</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-01-05T10:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610857#M1569342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naresh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what all the fields you are passing to that BAPI to create the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kruthik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 12:11:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610857#M1569342</guid>
      <dc:creator>former_member1125862</dc:creator>
      <dc:date>2011-01-05T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610858#M1569343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please guide me to update marc using the bapi_material_savedata.&lt;/P&gt;&lt;P&gt;for me it is only updating the mara table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 05:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610858#M1569343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-06T05:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: update MARC using bapi_material_savedata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610859#M1569344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this thread &lt;SPAN __jive_macro_name="thread" id="758053"&gt;&lt;/SPAN&gt;, there is a small sample. Then analyze the error messages in RETURN parameter and adjust your call or ask your functionnals for missing required information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jan 2011 08:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-marc-using-bapi-material-savedata/m-p/7610859#M1569344</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-01-06T08:23:50Z</dc:date>
    </item>
  </channel>
</rss>

