Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem reading RFC values from IRecordSet !!!!

Hi All,

I am having some problem reading values from IRecordSet. Can not seem to parse the output structure from RFC. AM using connector gateway service to execute BAPI_EXCHRATE_GETCURRENTRATES.

Here is the code,


MappedRecord input = rf.createMappedRecord("input");
input.put("DATE",new String("01011990"));
input.put("DATE_TYPE", new String("V"));
input.put("RATE_TYPE", new String("M"));
MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
Object rs = null;
IRecordSet recSet = null;
Object result = output.get("EXCH_RATE_LIST");
if (result == null) {
rs = new String(" ");
} else if (result instanceof IRecordSet) {
IRecordSet irs = (IRecordSet) result;
response.write("<BR>Got some dataaa");
IRecordMetaData rsmd = null;
rsmd = irs.retrieveMetaData();

response.write("Row::"+irs.getString("RATE_TYPE")+" "+irs.getString("FROM_CURR")+" "+irs.getString("EXCH_RATE"));


Am getting the pritn statement, Got Some Data on the PDK component.

But somehow not able to read the values from IRecordSet

What is the mistake here?

Pls help

Edited by: Aakash Jain on Oct 11, 2008 12:22 AM

Former Member
Not what you were looking for? View more on this topic or Ask a question