Showing results for 
Search instead for 
Did you mean: 

Accessing SAP backend from j2ee without entrprise portal

Former Member
0 Kudos

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



Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Bala,

Client client = JCO.createClient(sapClient, user, passwd, requestedLanguage, hostName, sysNr);


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

ParameterList export = function.getExportParameterList();
ParameterList tableParameterList = function.getTableParameterList();

<b>import* (jrfc.jar)</b>



Answers (0)