on 10-08-2013 11:53 AM
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.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.