<?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: error in BAPI_MATERIAL_SAVEDATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513739#M1424036</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;In the table  headdata, there is a flag for external number range.&lt;/P&gt;&lt;P&gt;Since you are using internal number range, please make sure that this flag is initiall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please dont use commit before creating the material. The commit statement clears all buffer tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jan 2010 09:10:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-06T09:10:11Z</dc:date>
    <item>
      <title>error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513736#M1424033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts &lt;/P&gt;&lt;P&gt;I am using BAPI_MATERIAL_GETINTNUMBER to generate the material number and then calling the &lt;/P&gt;&lt;P&gt;BAPI_MATERIAL_SAVEDATA Bapi for the creation but after the exectuion i am getting the return value as follows although i have given the newly generated matnr in the MATERIAL filed of HEADDATA  passing structre of BAPI_MATERIAL_SAVEDATA&lt;/P&gt;&lt;P&gt;please suggest some solution...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE	                                   	E&lt;/P&gt;&lt;P&gt;ID	                                   	MG&lt;/P&gt;&lt;P&gt;NUMBER	                                   	046&lt;/P&gt;&lt;P&gt;MESSAGE	                                   	Field MATNR has been transferred inconsistently or is blank&lt;/P&gt;&lt;P&gt;LOG_NO	                                   &lt;/P&gt;&lt;P&gt;LOG_MSG_NO	                                   	000000&lt;/P&gt;&lt;P&gt;MESSAGE_V1	                                   	MATNR&lt;/P&gt;&lt;P&gt;MESSAGE_V2	                                   &lt;/P&gt;&lt;P&gt;MESSAGE_V3	                                   &lt;/P&gt;&lt;P&gt;MESSAGE_V4	                                   &lt;/P&gt;&lt;P&gt;PARAMETER	                                   &lt;/P&gt;&lt;P&gt;ROW	                                   	0&lt;/P&gt;&lt;P&gt;FIELD	                                   &lt;/P&gt;&lt;P&gt;SYSTEM	                                   	TEST&lt;/P&gt;&lt;P&gt;	___________________________________&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 08:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513736#M1424033</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-01-06T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513737#M1424034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try clearing the header data.&lt;/P&gt;&lt;P&gt;Read the documentation and pass all the mandatory fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 08:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513737#M1424034</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-06T08:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513738#M1424035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;below is my code.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'BAPI_MATERIAL_GETINTNUMBER'
  EXPORTING
    MATERIAL_TYPE          =  HEADDATA-MATL_TYPE
   INDUSTRY_SECTOR        = 'A'
   REQUIRED_NUMBERS       = '1'
 IMPORTING
   RETURN                 = RETURN_2
  TABLES
    MATERIAL_NUMBER        = GT_MATERIAL_NUMBER
          .
COMMIT WORK.
READ TABLE GT_MATERIAL_NUMBER INTO  WA_MATERIAL_NUMBER INDEX 1.
MOVE WA_MATERIAL_NUMBER-MATERIAL TO HEADDATA-MATERIAL.
move 'A' to HEADDATA-ind_sector.
move 'X' to HEADDATA-BASIC_VIEW.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
  EXPORTING
    HEADDATA                   =  HEADDATA
    CLIENTDATA                 =  CLIENTDATA
    CLIENTDATAX                =  CLIENTDATAX
    PLANTDATA                  =  PLANTDATA
    PLANTDATAX                 =  PLANTDATAX
*   FORECASTPARAMETERS         =
*   FORECASTPARAMETERSX        =
*   PLANNINGDATA               =
*   PLANNINGDATAX              =
*   STORAGELOCATIONDATA        =
*   STORAGELOCATIONDATAX       =
*   VALUATIONDATA              =
*   VALUATIONDATAX             =
*   WAREHOUSENUMBERDATA        =
*   WAREHOUSENUMBERDATAX       =
*   SALESDATA                  =
*   SALESDATAX                 =
*   STORAGETYPEDATA            =
*   STORAGETYPEDATAX           =
*   FLAG_ONLINE                = ' '
*   FLAG_CAD_CALL              = ' '
*   NO_DEQUEUE                 = ' '
*   NO_ROLLBACK_WORK           = ' '
 IMPORTING
    RETURN                     = RETURN
 TABLES
    MATERIALDESCRIPTION        = GT_MATERIALDESCRIPTION
*   UNITSOFMEASURE             =
*   UNITSOFMEASUREX            =
*   INTERNATIONALARTNOS        =
    MATERIALLONGTEXT           = GT_MATERIALLONGTEXT
*   TAXCLASSIFICATIONS         =
*   RETURNMESSAGES             =
*   PRTDATA                    =
*   PRTDATAX                   =
*   EXTENSIONIN                =
*   EXTENSIONINX               =
          .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 09:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513738#M1424035</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-01-06T09:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513739#M1424036</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;In the table  headdata, there is a flag for external number range.&lt;/P&gt;&lt;P&gt;Since you are using internal number range, please make sure that this flag is initiall.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please dont use commit before creating the material. The commit statement clears all buffer tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 09:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513739#M1424036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T09:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513740#M1424037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can directly use BAPI_MATERIAL_SAVEDATA to create material...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From where your are getting the material number .....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if you have material number in afile, take those it into internal table and pass that to the bapi BAPI_MATERIAL_SAVEDATA it wil create the material in your sap system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need further info..&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;Satish Boguda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 09:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513740#M1424037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T09:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513741#M1424038</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;  In BAPI_MATERIAL_SAVEDATA  , the HEADDATA parameter should be filled with all the mandatory field values to create a material . For example , only passing the Mat. no would not do , along with that you need to pass the material type value , Industry sector and few more . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the basic mandatory entries needed to create a material and pass the corresponding values to the BAPI .&lt;/P&gt;&lt;P&gt;The material  creation should be done . &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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 09:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513741#M1424038</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2010-01-06T09:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513742#M1424039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Self answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 07:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513742#M1424039</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-12-30T07:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: error in BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513743#M1424040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am also getting the same error. My material number is a external material number, I am passing that to HEADERDATA. Can you please let me know how to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isuru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 06:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bapi-material-savedata/m-p/6513743#M1424040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T06:49:03Z</dc:date>
    </item>
  </channel>
</rss>

