<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647226#M609903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the "X" structures, you should be passing the "X" to these fields.  This is telling the BAPI that you want to update these specific fields.  You are already passing the values via the other structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    plantdata-proc_type  = w_dest_beskz.
    plantdata-spproctype = w_dest_sobsl.
    plantdata-specprocty = w_dest_sobsk.
 
    plantdatax-proc_type  = 'X'.
    plantdatax-spproctype = 'X'.
    plantdatax-specprocty = 'X'.


&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>Mon, 27 Aug 2007 19:47:24 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-08-27T19:47:24Z</dc:date>
    <item>
      <title>BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647225#M609902</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 need to update Procurement type, Special Procurement Type and Price Control Indicator , Special procurement type for costing using MM02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From SDN I could find that I can use BAPI_MATERIAL_SAVEDATA but how do I use this for updating it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    SELECT SINGLE * FROM mara INTO xmara WHERE matnr = material.

    headdata-material   = material.
    headdata-ind_sector = xmara-mbrsh.
    headdata-matl_type  = xmara-mtart.
    headdata-basic_view = 'X'.

    plantdata-proc_type  = w_dest_beskz.
    plantdata-spproctype = w_dest_sobsl.
    plantdata-specprocty = w_dest_sobsk.

    plantdatax-proc_type  = w_dest_beskz.
    plantdatax-spproctype = w_dest_sobsl.
    plantdatax-specprocty = w_dest_sobsk.


    valuationdata-vprsv  = w_dest_vprsv.
    valuationdatax-vprsv = 'X'.

    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
      EXPORTING
        headdata                   = headdata
*       CLIENTDATA                 =
*       CLIENTDATAX                =
       plantdata                  = plantdata
       plantdatax                 = plantdatax
*       FORECASTPARAMETERS         =
*       FORECASTPARAMETERSX        =
*       PLANNINGDATA               =
*       PLANNINGDATAX              =
*       STORAGELOCATIONDATA        =
*       STORAGELOCATIONDATAX       =
       valuationdata              = valuationdata
       valuationdatax             = valuationdatax
*       WAREHOUSENUMBERDATA        =
*       WAREHOUSENUMBERDATAX       =
*       SALESDATA                  =
*       SALESDATAX                 =
*       STORAGETYPEDATA            =
*       STORAGETYPEDATAX           =
*       FLAG_ONLINE                = ' '
*       FLAG_CAD_CALL              = ' '
*       NO_DEQUEUE                 = ' '
*       NO_ROLLBACK_WORK           = ' '
     IMPORTING
       return                     = return
*     TABLES
*       MATERIALDESCRIPTION        =
*       UNITSOFMEASURE             =
*       UNITSOFMEASUREX            =
*       INTERNATIONALARTNOS        =
*       MATERIALLONGTEXT           =
*       TAXCLASSIFICATIONS         =
*       RETURNMESSAGES             =
*       PRTDATA                    =
*       PRTDATAX                   =
*       EXTENSIONIN                =
*       EXTENSIONINX               =
              .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;valuationdatax-vprsv = 'X'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does this mean... should be pass on value or should be pass 'X'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;headdata-basic_view = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What view should I select.. please let me know this too.. points for every helpful answer&lt;/P&gt;&lt;P&gt;Please tell me this asp..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 19:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647225#M609902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T19:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647226#M609903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the "X" structures, you should be passing the "X" to these fields.  This is telling the BAPI that you want to update these specific fields.  You are already passing the values via the other structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    plantdata-proc_type  = w_dest_beskz.
    plantdata-spproctype = w_dest_sobsl.
    plantdata-specprocty = w_dest_sobsk.
 
    plantdatax-proc_type  = 'X'.
    plantdatax-spproctype = 'X'.
    plantdatax-specprocty = 'X'.


&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>Mon, 27 Aug 2007 19:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647226#M609903</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-27T19:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647227#M609904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; valuationdatax-vprsv = 'X'. &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; What does this mean... should be pass on value or&lt;/P&gt;&lt;P&gt;&amp;gt; should be pass 'X'..&lt;/P&gt;&lt;P&gt; You should pass 'X' to all 'X' structures. It indicates that in the corresponding value structure "valuationdata" you have filled the field 'vprsv' with a value. If you don't pass an 'X', system will not take the value of that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; headdata-basic_view = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; What view should I select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use COST_VIEW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 19:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647227#M609904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T19:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647228#M609905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also updating plant data.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       plantdata                  = plantdata&lt;/P&gt;&lt;P&gt;       plantdatax                 = plantdatax&lt;/P&gt;&lt;P&gt;       valuationdata              = valuationdata&lt;/P&gt;&lt;P&gt;       valuationdatax             = valuationdatax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So isnt there a view which should be selected for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For valuation we have selected COST_VIEW in HEADDATA, isnt there any view we have to select to update plantdata ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 19:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647228#M609905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T19:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647229#M609906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you have to specify that, once you fill the PLANTDATA and the PLANTDATAX tables, system will extend the material to those plants.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2007 20:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/2647229#M609906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-27T20:12:02Z</dc:date>
    </item>
  </channel>
</rss>

