cancel
Showing results for 
Search instead for 
Did you mean: 

Can't load parameters from RFM using JRA

Former Member
0 Kudos

Hi all,

I have remote enabled function module with import and export parameters. Then on Java side is made  connection with backend using JRA. Everything works well. But now I need to add new parameter to my function module.

So in SE37 i extended my remote-enabled function module and added new import parameter and activate it. On Java side after setting context for the Connection factory

InitialContext initialcontext = new InitialContext();

ConnectionFactory connectionfactory =

(ConnectionFactory) initialcontext.lookup("java:comp/env/MyConnFactory");

,getting connection
Connection connection = connectionfactory.getConnection();

and creating RecordFactory, I get necesary information about the RFM using statement
MappedRecord input =recordFactory.createMappedRecord("NameOfYourRFM");

but in input when i test it and try input.containsKey("NEW_PARAMTER") I get false, so it seems like import parameter from backend didn't load into MapppedRecord. All previous defined parameters from function module are loaded.

On other hand when I remove parameter from remote function modul and activate it, on Java side  statement MappedRecord input =recordFactory.createMappedRecord("NameOfYourRFM"); still load this parameter. So input.containsKey("OLD_PARAMTER") returns true.

It seems that after adding/removing parameters from remote function module its necessary to do some more steps, not just activate FM. I have no idea how to fix it. I hope anybody help me.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Finally I found solution. Its necessary reset Metadata cache on SAP Netweaver Java aplication server. Here is post how to do it: http://scn.sap.com/community/business-one/system-administration/blog/2013/08/08/sap-netweaver-java-c...

Answers (0)