Material Reservation BAPI

I'm trying to use the Bapi: BAPI_RESERVATION_CREATE1, but I'm getting the following error:
error '80004004'  Operation aborted
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.
The ASP code follows bellow;
  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
Does anybody know what might be the problem?

Hi Leonardo,
perhaps you just shortened display, maybe it's a problem:
oResItem.Fields("MATERIAL").Value          = "XXXXXXXXX"
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 -> test will work.
If you enter external format via ASP-call, you will not find an article -> use 18 chars.
Have a look at function module 'CONVERSION_EXIT_ALPHA_INPUT' for translation rules (make some tests...).
Regards,
Christian

Similar Messages

  • What is the Material Reserv SE37 name?

    Can anyone tell me the name of the Material reservation function for use with the SE37 mod?
    thanks in advance

    Hello Donato,
    There's a BAPI called BAPI_RESERVATION_CREATE1. For other functions, refer to the Business Object MaterialReservation.
    Alternatively, you can search for the FMs which start with BAPI_RESERVATION_*
    Regards,
    Anand Mandalika.

  • IDoc for Material Reservations

    Hi all,
    I need to send out an IDoc (outbound) when a new material reservation is created using tcode MB21.
    -> Which IDoc message type can I use for this scenario?
    -> Does it also work in combination with an ALE distribution model?
    Does anybody have any tips? Thanks in advance for your replies!
    Regards,
    Kenny

    Hi,
    Thanks for your reply. Can you explain how to setup the ALE distribution model for this message type?
    I have included the BAPI MaterialReservation.CreateFromData in the model. However, when I post a material reservation with transaction MB21 no outbound Idoc is generated?
    Please advice.
    Regards,
    Kenny

  • How to extended Generated IDoc type of MRESCR01 (Material Reservation )

    Hi Experts ,
    My scenario :  I am receiving  Material reservation data from SAP PI team , There is some extra fields .
    My approach  1 . I have to extended the basic idoc MRESCR01 , here is problem 'Action is not possible for generated IDoc types'  .
    I have seen many posts for the same but  I did nt get proper post for the same .
    and also how to create ALE -BAPI interface by using BDBG , Please help this scenario .
    Thanks ,
    Jay.

    Solution : new Message Type (By reducing MATMAS)

  • Material reservation and unrestricted Available qty report

    Hi
    SAP Buddies
    Please can anyone tell me how to get the lCollective list of Material Reservation with Available unrestricted stock??
    i.e.
    MAterial No.         Reserve Qty         Unrestricted Available Qty  
    These three parameters are must ?
    Thanks  in Advanve
    BV

    Hi,
    Please try MB25 MB25 or MF65.
    Regards,
    Mohd Ali.

  • Material Reservations and PO

    Hello,
    my question is at which stage of the network the material (components) reservations or Purchase orders, automatically trigger.
    when the project (with networks and materials) is created or released.
    because I have issue like the project is in TECO and for some reason we are planning to undo the TECO. if I undo the status, will it again creates the PO or reservation.
    Is there any document, which explains in detail about the configuration of PS -MM integration.
    Is there any concept like labor reservation just like material reservation. I am not sure is question itself true or not.
    Thank You

    Hi Gokul,
    My answer is correct considering the following in my perception and not in SAP functionality view.
    <<<<
    At what status of the WBS / network will this Material reservations or PO's get triggered. Is it at Created or Released.
    >>>>
    When WBS elements are in created status means project has not yet received the approval to go ahead from the project controller or whoever may be in the business.
    If some reasons, Management cancel the project or Customer cancel the project and its very easy to set the DLFL flag on project. But what will happen to the committed costs. Do the Management ready to take up unwanted burden and raise unwanted inventories in warehouse. Risk Mitigation is an alternate option but try to avoid inviting the risks which will save time and money.
    There are so many things to consider just not going by the SAP functionality. This is what I feel and you may not accept my statement but at the same time I respect your views and ideas.
    Regards,
    PSR
    Edited by: PSR on Nov 4, 2011 2:04 PM

  • How to generate Outbound idoc for Material Reservation

    Hi Experts,
    I want to send outbound IDoc when a material reservation is created with tcode MB21.
    I have been working on this issue and finding the solution in SCN for a week...
    I found some messages similar to this but I could not find out the correct way how to do that.
    At this moment, I configured BD64/WE20 referring the following topic which seems to be feasible solution but could not find any outbound IDocs created, unfortunately.
    Implement ALE_RESERVATION_CREATE
    I appreciate if someone can help me how to create outbound IDoc with MB21 or advice some possibility of missing configuration or steps.
    Best Regards,
    Kenji

    Hi;
    Have been able to find the solution to create the IDoc MRESCR after entering a reservation? 
    I am in the same situation and I do not see the IDoc output in the BD87. 
    It would be nice if you share the solution.
    Thanks in advance

  • Datasource for material reservation data from SAP R/3 (RESB & RKPF table)

    Hi,
    How can i take material reservation data stored in SAP R/3 RESB and RKPF table. I can create generic data source and full upload of data is possible but how to manage daily delta. None of these table having change date to extract daily changed record to BI. Please suggest.
    Please inform if any business content data source available for Reservation data?
    Regards,
    Manish

    Hi,
    Many times we face such situation, that we need to create a generic data source and there is no field to define delta.
    In such situations you can go for psuedo delta.
    Ask the client that at any point of time till which date will the data be changed.
    Eg. the client may say that at max we will change last three months data.
    In that case everytime you can do a full update and load only data of last three months.
    Instead of date you can consider any field as per your requirement.
    Regards,
    Mansi

  • Purchase/Material Reservation do we have standard in ESS and MSS.

    Purchase/Material Reservation do we have standard in ESS and MSS. IF we have tell me the version of ESS/MSS .

    Hello
    Please tell me exactly what you want ?
    Regards
    M B Raju

  • Cant see Object Services Toolbox in MB23 Material Reservation transaction

    Hi all,
    The Generic Object Services Toolbox is not available in SAP MM transaction MB23 used for accessing Material Reservations. SAP version is 4.7/620.
    As its a standard SAP transaction referring to standard business object type BUS2093, so I was expecting that the Object Services will be enabled for this.
    Kindly help as to how I can configure the display of Object Services toolbox in this transaction to link attachments. (If its regarding changing some code like including cl_gos_manager or SWU_OBJECT_PUBLISH, then kindly explain in detail.
    With Regards
    Neha

    Also it is against the SDN Forum Rules of Engagement to cross post questions.  I can see from your posting history you have sent this same question to many different forums (several of which make no sense at all).  Please avoid this action in the future or risk having your forum posting privledges suspended.

  • Generic Object Services not enabled in MB23 Material Reservation

    Hi all,
    The Generic Object Services Toolbox is not available in SAP MM transaction MB23 used for accessing Material Reservations. SAP version is 4.7/620.
    As its a standard SAP transaction referring to standard business object type BUS2093, so I was expecting that the Object Services will be enabled for this.
    Kindly help as to how I can configure the display of Object Services toolbox in this transaction to link attachments. (If its regarding changing some code like including cl_gos_manager or SWU_OBJECT_PUBLISH, then kindly explain in detail.
    With Regards
    Neha

    Thanks Deepak,
    But I thought the described methdology in the PDF pointed by the URL is for how to do it for any custom business object type, will it be useful for the SAP standard business object as well like BUS2093. When I try to edit an already created SAP object, it starts asking for an access key.
    With Regards
    Neha

  • Generic Object Services Toolbox in MB23(Material Reservation) unavailable

    Hi all,
    The Generic Object Services Toolbox is not available in SAP MM transaction MB23 used for accessing Material Reservations. SAP version is 4.7/620.
    As its a standard SAP transaction referring to standard business object type BUS2093, so I was expecting that the Object Services will be enabled for this.
    Kindly help as to how I can configure the display of Object Services toolbox in this transaction to link attachments. (If its regarding changing some code like including cl_gos_manager or SWU_OBJECT_PUBLISH, then kindly explain in detail.
    With Regards
    Neha

    Thanks Deepak,
    But I thought the described methdology in the PDF pointed by the URL is for how to do it for any custom business object type, will it be useful for the SAP standard business object as well like BUS2093. When I try to edit an already created SAP object, it starts asking for an access key.
    With Regards
    Neha

  • Movement Types for Material Reservations

    Dear All
    I have defined New package for defining new movements types for material reservation in PM order. this activity is carried out at following path.
    SPRO> Plant Maintenance and Customer Service>Maintenance and Service Processing--> Maintenance and Service Orders >General Data>Define Movement Types for Material Reservations.
    This has been carried out as i want to take the material in using 904 movement as reversal of 261.
    Can any body tell me where can I assign tghis package to Order/order types?
    Regards

    hi
    In the standard system, movement types are preset which you must not change.
    For the components, Plant Maintenance and Customer Service, the entry with the key 'IWO1' is relevant. In addition, you only need the two entries for the goods issue (GI) of materials for maintenance orders and the accompanying reverse operation (GI cancellation).
    as of my knowledge we don't have the option to go with ordertype wise settings
    -AShok
    Edited by: Ashok Keerthipati on Nov 19, 2008 5:57 PM

  • Material Reservation Process for Work Order

    I am new to the Plant Maintenance work order and material reservation process.
    Here is my scenario:
    I create a work order with a material that is maintained in WM and IM.
    Reservation is created.
    I got to MB26 to post goods issue
    Once I do this I see the qty of material moved as a negative amount to storage type 914 in IM (LS26) and stock removed out of WM (MMBE).
    Is this where the business process stops?
    Do I ever remove the stock out of 914?
    Does the material go from 914 to 916 and then get cleared out of inventory?
    Thank you

    Check [thread|PR Marked for deletion after Business Complete]  and [search|http://forums.sdn.sap.com/search.jspa?threadID=&q=PR+deletion&objID=f159&dateRange=all&numResults=15&rankBy=10001]
    -S.N

  • Material Reservation Create Upon Saving Work Order

    Dear Experts,
    We have a requirement that material reservation needs to be created upon release of the PM order. However in SAP standard it is created upon saving the PM order.
    Do you know the way how to change it that reservation will be created upon release of the PM order? Is there any OSS note etc. I had a search on service place in SAP but couldnt find something relevant sofar.
    Any help, idea will be highly appreaciated.
    thanks in advance,
    Mehmet

    Hi
    Yes you can configure the system using standard setting where the reservation will be gerated after order release.
    Please follow the following path.
    1. SPRO> SAP Standard IMG setting> Plant Maintenance & Customer service-->Maintenance & service Processing > Maintenance and Service Orders>Functions and Settings for Order Types-->Define Change Docs, Collective Purc. Req. Indicator, Operation No. Interval
    In this step, you can define:
    Whether reservations or purchase requisitions relevant to materials planning should be generated when an order is created or only when the order is released. You do not select the field reservation/purchase requisition. The result is that purchase requisitions are only generated when the order is released, and reservations only become relevant to materials planning once the order has been released.
    I think this will resolve your query if not let me know.
    Regards
    Makarand Gurjar

Maybe you are looking for

  • After updating Pages, I can't open my files.

    I've updated Pages and now I'm not able to open my Pages' files. The app says that the re are 63 files to update, but the update never ends and so the files are totally unusable! Please help me!

  • Portlet Preferences Gateway Issue

    I have a custom portlet, I am setting 2 custom preferences: PortletResponse.SetSettingValue(SettingType.Admin,"URL", TextBox1.Text);PortletResponse.SetSettingValue(SettingType.Admin,"Count",TextBox2.Text);These settings basically Set the URL and Site

  • Any way to recover a user account that was deleted?

    I probably know the answer to this but I screwed up and deleted a user account with settings, documents, applications migrated from one Mac to another. I had two user accounts for my wife and when I deleted the one which I shouldn't have deleted she

  • Transport of a planning function

    Hi experts, I created a new planning function in BPS0; now I have to transport it in Production environment. How can I make it? If I go in RSA1 Transport Connection, I don't find the BPS objects.. In BPS0 I found tools --> transport..but I don't unde

  • Computer Aided Design Tool

    Hello I have no experience with Java 3D and am wondering whether it can be of benefit to me. I need to develop a system where users can visually assemble a product to be made to order. I will have to have features such as rotating 360 around the prod