cancel
Showing results for 
Search instead for 
Did you mean: 

Use a table as input param in JCA

Former Member
0 Kudos

Hi all,

I'm using the JCA adapter to call some function modules from SAP.

No problem there for simple input parameters with:

RecordFactory recordFactory = connectionfactory.getRecordFactory();

MappedRecord input = recordFactory.createMappedRecord(rfcName);

input.put("NAME", "myName");

Also no problem for reading the output in a table structure with:

ResultSet result = (ResultSet) rfcOutput.get("PROFILE");

while (result.next()) {

response = new ProfilesResponse();

response.setId(result.getInt("ID"));

response.setProfileName(result.getString("PROFILENAME"));

searchList.add(response);

}

Now I want to set some table as input within a function module.

I've searched on SDN and only found something usefull regarding JCO > something like JCO.table.

Can someone please provide me with some sample coding how to do this?

Thnx in advance!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ok after a lot of more searching i've found the answer!

For anyone interrested later on:

http://help.sap.com/saphelp_nw70/helpdata/EN/13/c507420a1f5f24e10000000a1550b0/frameset.htm

Former Member
0 Kudos

Hi,

I'm using the Connector Framework to call a BAPI and should now fill an Input Parameter that is defined as structure (IDRANGE with the 4 fields S, OP, LOW, HIGH).

I've studied the link you provided but unfortunately I not able to fill such an Input structure.

Can you probably provide a few lines of code that shows how that works?

Thanks a lot!

Arno