Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Web service from Function Module: parameter issue

Former Member
0 Kudos

Hi,

when I create a Webservice from a Function Module, the parameters seem to be put in alphabetical order in my webservice definintion, so the order is not equal to the parameter order in my Function Module. Is this the way standard SAP works? Can i change the order of the parameters, because there's a need for a certain parameter to be the first in every webservice.

Pieter

1 REPLY 1

bodo_koerner
Participant
0 Kudos

Hi Pieter,

this seems to be the way SAP works. I tested the reaction with SOAP UI from the generated WSDL out of SOAMANAGER.

The parameter sequence of the Function Module is not important if you generate a webservice.

The generating tool sorts them by name (internal and external view).

The only way to handle this seems to be calling the FM directly by calling the FunctionModule over /sap/bc/soap/rfc.

This is a webservice for all rfc FMs.

The problem there is you need to call it with parameternames as capitals (FM does only accept parameters in capitals).

Kind regards, Bodo Körner FLS GmbH, Germany