on 08-25-2005 2:20 PM
I was able to access SAP FM successfully from XI mapping via JCo Connector. I created a Java script within the IR (not via IDE). And its working fine.
I want to store connection information within a property file. I have transported this to test system and its still pointing to dev instance.
Can one of you tell me how I can store this in a property file....what is this file and how is it done.
// Change the logon information to your own system/user
JCO.Client mConnection = JCO.createClient(
"010", // SAP client
"SAPUSER", // userid
"XXXXX", // password
"EN", // language
"host.company.com", // host name
"10" ); // system number
Thank you,
Pam
Hi Pam,
It's not a direct answer to your question but
please consider using RFC - API
with this new function you store your logon info inside your communication channel - no nedd for encrypting/storing property files
but it's just an idea:)
Regards,
michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pam,
A better approach is to use the Lookup API which is available from SP13. This allows you to call a FM via the RFC Adapter in your adapter engine. (see http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/frameset.htm)
This frees you from maintaining connection information in a file and use a communication channel instead. The downside, I suppose, is that you must create an XML message representing your request and parse the returned XML rather than using JCo data structures.
Regards,
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.