Skip to Content
0
Former Member
Jul 11, 2008 at 02:13 PM

SAP Enterprise Connector: Where to store login details?

33 Views

I have a Java DC in Web AS 6.40 that needs to call a RFC from a R3 4.6C system. I used the wizard in the NWDS to generate the java proxy classes. Now I need to connect to the R3 system and all the examples I have seen hard code the login info inside a class as follows:

JCO.Client jcoclient =
		JCO.createClient(
			"100",			// SAP-Client
			"username",		// Username
			"password", 		// Password
			"en",			// Language
			"ECC host IP",		// Host IP
			"10");			// System No.

With multiple runtime systems like DEV, TEST and PROD, this wont work.

When calling RFCs from Web DynPro, all the login info is taken care of in the Web Dynpro Content Administrator (IE: "Maintain Jco Destinations"). Is there a way that my Java DC could leverage this? If I cant access this in the Java DC, where is the best place to store the login info? Thanks in advance.