<?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: Material Reservation BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-reservation-bapi/m-p/874113#M50413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhaps you just shortened display, maybe it's a problem:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
oResItem.Fields("MATERIAL").Value     	= "XXXXXXXXX"
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Material number has 18 chars in database. When you enter value via SE37, there is an automatic conversion between display format (without leading zeros) and internal format -&amp;gt; test will work.&lt;/P&gt;&lt;P&gt;If you enter external format via ASP-call, you will not find an article -&amp;gt; use 18 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at function module 'CONVERSION_EXIT_ALPHA_INPUT' for translation rules (make some tests...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2005 18:45:36 GMT</pubDate>
    <dc:creator>christian_wohlfahrt</dc:creator>
    <dc:date>2005-02-21T18:45:36Z</dc:date>
    <item>
      <title>Material Reservation BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-reservation-bapi/m-p/874112#M50412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the Bapi: BAPI_RESERVATION_CREATE1, but I'm getting the following error:&lt;/P&gt;&lt;P&gt;error '80004004'  Operation aborted&lt;/P&gt;&lt;P&gt;When I use SE37 and fill the RESERVATIONHEADER and RESERVATIONITEMS data I can run the Bapi, but when I fill the same data using an ASP page it doesn't work... I get an error when I call the Bapi.&lt;/P&gt;&lt;P&gt;The ASP code follows bellow;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  Set oBAPI  = CreateObject("SAP.MaterialReservation.1")

  oBAPI.Destination = "XXXXXXXXXXXXXXX"

  'ReservationHeader
  OBapi.DimAs "BapiCreateFromData1", "RESERVATIONHEADER", oResHeader
  oResHeader.AddNew    
  oResHeader.Fields("RES_DATE").Value		= Now
  oResHeader.Fields("MOVE_TYPE").Value		= "001"
  oResHeader.Fields("COSTCENTER").Value		= "00001"
  oResHeader.Update
  
  'ReservationItems
  OBapi.DimAs "BapiCreateFromData1", "RESERVATIONITEMS", oResItem
  oResItem.AddNew
  oResItem.Fields("MATERIAL").Value     	= "XXXXXXXXX"
  oResItem.Fields("PLANT").Value     		= "XXXX"
  oResItem.Fields("ENTRY_QNT").Value		= 10
  oResItem.Fields("REQ_DATE").Value     	= Now
  oResItem.Update
  
  ' Result
  OBapi.DimAs "BapiCreateFromData1", "RETURN", oReturn
  
  ' bapi Call
  oBAPI.BapiCreateFromData1 oResHeader, oResItem, , , oReturn
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know what might be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 14:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-reservation-bapi/m-p/874112#M50412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T14:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Material Reservation BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/material-reservation-bapi/m-p/874113#M50413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhaps you just shortened display, maybe it's a problem:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
oResItem.Fields("MATERIAL").Value     	= "XXXXXXXXX"
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Material number has 18 chars in database. When you enter value via SE37, there is an automatic conversion between display format (without leading zeros) and internal format -&amp;gt; test will work.&lt;/P&gt;&lt;P&gt;If you enter external format via ASP-call, you will not find an article -&amp;gt; use 18 chars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at function module 'CONVERSION_EXIT_ALPHA_INPUT' for translation rules (make some tests...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 18:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/material-reservation-bapi/m-p/874113#M50413</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-02-21T18:45:36Z</dc:date>
    </item>
  </channel>
</rss>

