Skip to Content
author's profile photo Former Member
Former Member

Creating a BAPI as a web service using Java

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 11, 2004 at 07:51 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 12, 2004 at 07:32 AM

    > 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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.