<?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/6219503#M1378855</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;This is a problem that a lot of customers have, not only when creating materials also with other objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that once the function module BAPI_MATERIAL_GETINTNUMBER is called to get a new number the number range is already updated and committed, this means there is no way back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even test this in SE37 execute the function module and you will see that the number range is already updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even when you perform a roll back in your program or don't save the material the number range will be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Oct 2009 14:28:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-18T14:28:04Z</dc:date>
    <item>
      <title>BAPI_MATERIAL_SAVEDATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/6219502#M1378854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everybody..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI  "BAPI_MATERIAL_SAVEDATA" for Material master Upload and extension.&lt;/P&gt;&lt;P&gt;When ever I have material number in flat file, it will extend the material.&lt;/P&gt;&lt;P&gt;But when matnr is not provided the it will create material.&lt;/P&gt;&lt;P&gt;As that BAPI doesnot provide internal number , so i am creating a number using BAPI " BAPI_MATERIAL_GETINTNUMBER".&lt;/P&gt;&lt;P&gt;Everything is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my problem is..&lt;/P&gt;&lt;P&gt;in a flat fiel , if we have any error data, then material is not been created.&lt;/P&gt;&lt;P&gt;But as we are already generating a number externally. That sequence number is wasted.&lt;/P&gt;&lt;P&gt;My users want to avoid this.&lt;/P&gt;&lt;P&gt;So please suggest me, how to revert back the material number if BAPI_MATERIAL_SAVEDATA is not successfull.&lt;/P&gt;&lt;P&gt;So that in next run it can you same sequence number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&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>Sun, 18 Oct 2009 06:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/6219502#M1378854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T06:56:01Z</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/6219503#M1378855</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;This is a problem that a lot of customers have, not only when creating materials also with other objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that once the function module BAPI_MATERIAL_GETINTNUMBER is called to get a new number the number range is already updated and committed, this means there is no way back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even test this in SE37 execute the function module and you will see that the number range is already updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even when you perform a roll back in your program or don't save the material the number range will be updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 14:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/6219503#M1378855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-18T14:28:04Z</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/6219504#M1378856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doubting if we have any option to rollback [Programming Methods with Parameters|http://help.sap.com/saphelp_NW70EHP1/helpdata/en/c5/e4ad64453d11d189430000e829fbbd/content.htm]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Oct 2009 20:08:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-material-savedata/m-p/6219504#M1378856</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-10-18T20:08:03Z</dc:date>
    </item>
  </channel>
</rss>

