on 10-29-2007 5:34 PM
Hi All,
I have a requirement which is migrating the applications hosted on tomcat server to SAP web AS and accessing the SAP ERP system from the web application.As of now i have two options one is importing the web application into NWDS and creating a webdynpro application or creating j2ee application.
<b>Now my doubt is how do i access sap ERP system from the application(I dont have any enterprise portal which should have made my job easy by creating JCO destinations and accessing them in the webdynpro application)</b>
Please let me know how to access backend from j2ee or webynpro from NWDS without Enterprise portal
Thanks
Bala
Hello Bala,
Client client = JCO.createClient(sapClient, user, passwd, requestedLanguage, hostName, sysNr);
then
IRepository repository = JCO.createRepository("MyRepository", client);
IFunctionTemplate ftemplate = repository.getFunctionTemplate("BAPI Function name");
JCO.Function function = new JCO.Function(ftemplate);
ParameterList importParameterList = function.getImportParameterList();
importParameterList.setValue(Object, "Input parrameter name");
...
and finally
client.execute(function);
...
ParameterList export = function.getExportParameterList();
...
ParameterList tableParameterList = function.getTableParameterList();
<b>import com.sap.mw.jco* (jrfc.jar)</b>
regards.
mz
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 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.