cancel
Showing results for 
Search instead for 
Did you mean: 

how to put data into a RFC import parameter structure from portal

Former Member
0 Kudos

Hi, All,

I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use

 
IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
MyTABStr.setString("FIELD1", value1);
MyTABStr.setString("FIELD2", value2);
importParams.put("MYTABSTR",MyTABStr);

But it works for table not structure. Is there anybody know how to do that?

Thanks in advance!

Meiying

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

sovled

Former Member
0 Kudos

Hi,

You can try the following code -

IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());

structure.setString("FIELD1", value1);

structure.setString("FIELD2", value2);

importParams.put("MYTABSTR",structure);

Regards,

Sudip

Former Member
0 Kudos

Thank you Sudip for the answer. I got the same one from my cowoker yesterday and it solved my problem.

Meiying