on 10-06-2008 8:56 PM
Hi All,
I want to execute a RFC from PDK based component (AbstractPortalComp/JSPDynp).
What are the different options availabel for doing executing RFC?
Is there a way I can live without hard coding SAP system Connetion params in the project code or in a properties file?
Any help is appreciated.
Thanks
Aakash
Hi ,
check the sample code
Koti Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you could also use Sap Enterprise Connector - see [http://help.sap.com/saphelp_webas630/helpdata/en/79/c6213e225f9a0be10000000a114084/frameset.htm|http://help.sap.com/saphelp_webas630/helpdata/en/79/c6213e225f9a0be10000000a114084/frameset.htm] for more info.
For getting the client without specifying the login/pass in the code just get it from the usermapping of the current user (from the request) for the alias of the system used:
IJCOClientService clientService =
(IJCOClientService) PortalRuntime.getRuntimeResources().getService(IJCOClientService.KEY);
IJCOClientPoolEntry poolEntry = clientService.getJCOClientPoolEntry(systemAlias, request);
Client client = poolEntry.getJCOClient();
if (!client.isAlive()) {
client.connect();
}
the rest is as usual - see the help.
Romano
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.