function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
星融 潘 6星融 潘 6 

How to use SOAP API in SAP.

I have down load the XML file  enterprise.wsdl from salesforce.
I want to cteate a enterprise service in SAP,when I active the service,it show error message "Recursions must be eliminated".
Then I found below code result the error.
<complexType name="DataCategory">
                <sequence>
                    <element name="childCategories" type="tns:DataCategory" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="label" type="xsd:string"/>
                    <element name="name" type="xsd:string"/>
                </sequence>
</complexType>


Example:
A packing unit is described by its length, width, height, and content. The content can also consist of packing units.
<complexType name="PackingUnit">
  <sequence>
    <element name="length"  type="int"/>
    <element name="width"   type="int"/>
    <element name="height"  type="int"/>
    <element name="content" type="PackingUnit"
maxOccurs="unbounded"/>
  </sequence>
</complexType>

In ABAP, recursively defined structures are not possible.

Currently, the only solution is to replace a recursive reference by a reference to the data element XSDANY, so that the structure looks like this:
  Dictionary structure PACKING_UNIT
    Field LENGTH  TYPE INT4
    Field WIDTH   TYPE INT4
    Field HEIGHT  TYPE INT4
    Field CONTENT TYPE PACKING_UNIT_CONTENT_TAB
  Dictionary table type PACKING_UNIT_CONTENT_TAB
    Line type XSDANY (not TYPE PACKING_UNIT)

How can I deal with this? I try to change XML file,but make more error.
ShashForceShashForce
Please see if this helps: http://www.slideshare.net/karanrajs/salesforce-and-sap-integration
星融 潘 6星融 潘 6
Hi Shashank,
Thanks for your help.
I considered set a java service as midware,But it will take more development and resoures ,so as .NET.
So I just want to figure out is possible connet SAP with salesforce directly without any midware.