‎2004 Aug 30 9:50 AM
Hello,
I'm trying to get the items that are in a reservation.
I've used the BAPI ocx with object BUS2093 (material reservation).
When I try to call the GetItems method I get an error RESERVATIONITEMS parameter is missing. Does anyone know the parameters for this object ?
Thanks.
Jason Verhaeghe
V-Software
‎2004 Aug 30 4:07 PM
Hi Jason,
You can see the parameters which are you lookin for in SE37 BAPI_RESERVATION_GETITEMS.
You can take a look at function module documentation.
Dany
‎2004 Aug 30 7:37 PM
These are the parameters for this Bapi
FUNCTION BAPI_RESERVATION_GETITEMS.
*"----
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(RES_NO) LIKE BAPIRKPF-RES_NO OPTIONAL
*" VALUE(MATERIAL) LIKE BAPIRESB-MATERIAL OPTIONAL
*" VALUE(PLANT) LIKE BAPIRESB-PLANT OPTIONAL
*" VALUE(REQ_DATE) LIKE BAPIRESB-REQ_DATE OPTIONAL
*" VALUE(MOVE_PLANT) LIKE BAPIRESB-MOVE_PLANT OPTIONAL
*" VALUE(GR_RCPT) LIKE BAPIRESB-GR_RCPT OPTIONAL
*" VALUE(CLOSED_ITEMS) LIKE BAPIMMPARA-SELECTION DEFAULT SPACE
*" VALUE(DELETED_ITEMS) LIKE BAPIMMPARA-SELECTION DEFAULT SPACE
*" VALUE(OPEN_ITEMS) LIKE BAPIMMPARA-SELECTION DEFAULT 'X'
*" TABLES
*" RESERVATION_ITEMS STRUCTURE BAPIRESBG
*" RETURN STRUCTURE BAPIRETURN OPTIONAL
‎2004 Sep 06 9:16 AM
thanks guys,
That's what I needed.
I don't have access to SE37 as I'm not a developer in ABAP. We're trying to build a transport system that gets reservation items. Based on these items we generate a packing and picking list. All data is collected in an Access database.
Do you have an example of calling this bapi in VBA or ABAP ?
This is what I have so far.
I get an erro on the getdetail part. I presume I need to create some sort of BDCtable.
Dim reservation As Object
With ctlBAPI
.Connection.ApplicationServer= "blablabla"
.Connection.System = "lala"
.Connection.client = "100"
.Connection.user = user
.Connection.Password = pw
.Connection.Language = "EN"
If .Connection.Logon(0, True) <> True Then
Exit Function
Else
'CallSAPTransaction
Set reservation = .GetSAPObject("BUS2093", "0002173688")
reservation.getdetail 1
'GetReservation
.Connection.Logoff
End If
End With
‎2004 Sep 06 9:46 AM
Try to read this:
http://help.sap.com/saphelp_46c/helpdata/es/59/ae459f488f11d189490000e829fbbd/frameset.htm
I don't have VB installed and have no access to any non-SAP language to work with. I only can give you this link, assuming you are working with VB (for the sample you posted).
But I think you will be able to do some tests with the information provided there, and the related help.
Best wishes,
Vicenç