Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI object BUS2093

Former Member
0 Likes
3,731

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

4 REPLIES 4
Read only

Former Member
0 Likes
2,080

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

Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
2,080

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

Read only

0 Likes
2,080

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

Read only

0 Likes
2,080

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ç