on 10-16-2009 10:16 AM
Hello all,
I've created a user-defined function to call an RFC from PI. I've followed this example: http://www.erpgenie.com/sap-technical/java/sap-java-connector-excample-1-simple-rfc-call
The function is working fine but something came up - I need to transport the Message Mapping (with the user-defined function inside) to my Production system and I realized that I will need to change manually some data like SAP client, host name, etc... The problem here is that I don't have access to modify objects in Production.
What I want to know is if that is any way to provide system data to the user-defined function without hard coding it? Is there any way to dynamically determine this information?
Thanks in advance.
Regards,
Ricardo Inácio
Hi Ricardo,
I guess you will be having a SAP system as sender or receiver. Get it name in mapping (using dynamic configuration SENDER_SERVICE ) and change you lookup code in such a way that based on this value the SAP system (on which look up will be performed ) is determined dynamically
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, Use Suraj's approach.
However, you have to use the code here:
instead of the RFC using JCo calls as explained in the erpgenie link.
Then use Dynamic Configuration to get the sender service instead of using hard coded value for service name.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.