cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a BAPI as a web service using Java

Former Member
0 Kudos

Hi,

I am trying to create a BAPI as a web service.There is a BAPI which is used to send mails. It takes four Parameters. Three parameters are of type String but the fourth one that is the actual message takes an object of a Structure defined in SAP. I am getting a class of that type after generating the proxy class for the BAPI using SAP Enterprise Connector. In Java when I am trying to set the object of the structure to the input object I am not getting the same object as a parameter but instead i am getting the object as Text, which i am not able to set.

Can anybody tell me if there is any other way?

Regards

Cash

Accepted Solutions (0)

Answers (2)

Answers (2)

athavanraja
Active Contributor
0 Kudos

> Hi,

> I am trying to create a BAPI as a web

> web service.

How are you doing this?

with your system (6.4) it is possible to get the WSDL with the following url

http://<was_server>:<port>/sap/bc/soap/wsdl11?services=<BAPI_NAME_IN_CAPS>&sap-client=021

It looks to me that the tables parameter is set to optional in BAPI deifnition. If yes -> you need to initialize the table parameter in you java code.

Regards

Raja

gregorw
Active Contributor
0 Kudos

Hello Prakash,

what Application Server Version are you using? If you are running 6.20 the BAPI is already as a Webservice. Have a look at the BSP Application "webservicebrowser".

Regards

Gregor

Former Member
0 Kudos

HI Gregor,

I am having Web Application Server 6.40 and R/3 4.7 Enterprise. Is there any way in this version to do the same.

Thanks & Regards

Prakash

gregorw
Active Contributor
0 Kudos

Hello,

yes of course. And even better possibilities I think.

Regards

Gregor

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sorry,

but this is not possible. You cannot run 4.7 on 6.40!

This must be something different.

Regards,

Benny

Former Member
0 Kudos

Hi,

I work for a SI company, and we are working with a customer who has SAP 4.7 installed and then need to integrate a BPM product which has web services. I need to know if SAP 4.7 is web service enabled, if so, where do I get information/tutorial on this?

thanks

gregorw
Active Contributor
0 Kudos

Hello,

4.7 runs on WebAS 6.20. And all RFC enabled Function Modules are also avaliable as Webservices. Have a look at:

http://your.server.dom:8000/sap/bc/bsp/sap/webservicebrowser/search.html

Regards

Gregor