Skip to Content
0

CX_SY_RANGE_OUT_OF_BOUNDS in FM generated web service

Apr 21, 2017 at 08:57 AM

134

avatar image

Hello Community!

we are experiencing a very strange error when calling a web service published from a Z function module. We have only one input parameter which is a non-optional table. In that structure there are bank related fields like BANKS, BANKL or IBAN, which may or may not arrive empty, but with some datasets the SAP Soap core throws an out of bounds exception. The description of the exception is referencing a field of 34 characters and the only field that fits that description in the payload is IBAN.

CL_SOAP_RUNTIME_ROOT==========CP

include CL_SOAP_RUNTIME_ROOT==========CM00

Oddly enough, when we force in the request the field BANKS to have a valid value (eg 'ES') it works. When the IBAN field is informed with something like 'ES0000000000000000000000' it doesn't throw the exception neither.

Is there a way to understand what is happening and what do we need to do to force SAP to accept those fields empty?

Thanks in advance!

Álvaro.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Alvaro Blanco Robayna Apr 21, 2017 at 11:29 AM
0

Solved.

The exception was caused by a subsequent FM call. Anyway, just out of curiosity... what's causing that these errors don't get 'logged' in the ST22 dump analysis log?

Share
10 |10000 characters needed characters left characters exceeded