cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between Abap and Java and Java to Abap

Former Member
0 Kudos

HI,

I have installed BI 7.0 and the user complaints that BEx WEB Application Designer Query results are not showing up in the WEB URL Link.

and the BI user suggests that communication between Abap to java and Java to Abap has to be done?

How to setup ABAP to JAVA and JAVA to ABAP communication?

Regards,

Magham.

Accepted Solutions (0)

Answers (3)

Answers (3)

praveenkumar_kadi
Active Contributor
0 Kudos

Hi,

Jco conn from ABAP to Java

=====================

You can use the JCO RFC Provider Service of the Web Application Server for your ABAP to Java calls.

The steps involved in that are

1. Configure destination in SM59 in SAP.

2. Create RFC Destination in Visual Admin.

3. Create a stateless session bean with JNDI name as the name of calling function module in SAP.

4. Add a business method public void processFunction(JCO.Funtion fn) which is called by the JCO RFC Provider Service. The name should be 'processFunction'.

5. Set library references in application-j2ee-engine.xml to type weak for the following

a. com.sap.mw.jco.

b. com.sap.tc.Logging (if you are using the logging api )

Here is the sample code for the EJB biz method

/**

  • Business Method.

*/

public void processFunction(JCO.Function function) {

try {

// Get the import parameters for the function module

JCO.ParameterList importList = function.getImportParameterList();

logger.infoT("The value sent is" +

(String)importList.getValue("USER_NAME"));

// Set the export parameter value for the function module

JCO.ParameterList export = function.getExportParameterList();

export.setValue("From EJB", "RETURN");

function.setExportParameterList(export);

}

catch (java.lang.Exception e) {

e.printStackTrace();

}

}

Jco conn from Java to others(ex:ABAP)

=====================-==========

• Open Visual Admin(C:\usr\sap\SID\JCxx\j2ee\admin\go.bat) and connect to server

• Go to Destinations service

• Open HTTP Settings Tab

• Add/Edit destination SLD_DataSupplier and type following values

URL – http://xyz.corp:53000

Authentication - BASIC

User – dynproxxx

Password - bp52st000

• Press save and test (if you get response code 200 everything is o.k.)

• Add/Edit other HTTP Destination named SLD_Client with the same values as SLD_DataSupplier:

URL – http://xyz.corp:53000

Authentication - BASIC

User – dynproxxx

Password - bp52st000

• Press save and test (if you get response code 200 everything is o.k.)

• Go to SLD Data Supplier service.

• Press the button named: Send the Data to SLD and confirm triggering SLD Data transfer (if you receive successful message everything is o.k.).

===================

following blog might helpfull

=======================

/people/michal.krawczyk2/blog/2005/03/10/registering-a-new-technical-system-in-sld--abap-based

for basic infor

==============

http://help.sap.com/saphelp_nw04s/helpdata/en/21/84570b3ae14e77b3047c82218974b9/frameset.htm

Award points if it helps

Former Member
0 Kudos

Hi

Check out the below link

http://help.sap.com/saphelp_nw2004s/helpdata/en/ed/89746bea5011d6b2e800508b6b8a93/frameset.htm

*****http://help.sap.com/saphelp_nw2004s/helpdata/en/41/12ab41d60bcb46e10000000a155106/frameset.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/45/0e78275adc6cbfe10000000a114a6b/frameset.htm

Former Member
0 Kudos

Hi magham,

Uneed to create jco connections for communication between abap and java & vice-versa.

u need to have a gateway installed also on your java system.

For creatin jco connections refer this:

http://help.sap.com/saphelp_erp2004/helpdata/en/ca/115e4088dc0272e10000000a155106/content.htm

Reward if useful

Thanks,

Srinivas