Skip to Content
0
Former Member
Sep 20, 2004 at 06:55 PM

JCA - input parameters

42 Views

Hi,

I am using JCA to call a standard bapi (BAPI_RESERVATION_CREATE).

It has one scalar parameter, one structure parameter (RESERVATION_HEADER) and one table parameter (RESERVATION)ITEMS).

In order to pass correctly the structure parameter, I did the following:

input = connectionfactory.getRecordFactory().createMappedRecord("BAPI_RESERVATION_CREATE");

MappedRecord header = (MappedRecord)input.get("RESERVATION_HEADER");

header.put("COST_CTR", "1110");

header.put("PARAM", "VALUE");

...

How do I do to put data in the RESERVATION_ITEMS table?

Does any one have an example of populating a table as a parameter in a BAPI?

Thank you

Dov