cancel
Showing results for 
Search instead for 
Did you mean: 

Input parameter error: "string too long"

Former Member
0 Kudos

Hi,

SAP4Rails and SAPNWRFC run really well now, and I have not experienced a problem for a long, long time.

However, in an RFC I want to use, there is an import parameter (a plain value), which is of the type SYSUUID. The definition of this type says

<Format - Data Type "RAW" - No. characters "16"> and <Output Characteristics - Output Length "32">. Locally it works with 32 characters of input, but if I try to call the RFC through SAP4Rails, the error "RfcSetByte string too long" occurrs. Any idea, why this could be?

Thanks a lot in advance,

Bernd

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This maybe a bug - if you can compile your own sapnwrfc can you try finding the following code:


    if (RSTRING(value)->len > max)
        rb_raise(rb_eRuntimeError, "RfcSetByte string too long: %sn", StringValueCStr(value));

and changing it to:

code]

if (RSTRING(value)->len > max*2)

rb_raise(rb_eRuntimeError, "RfcSetByte string too long: %s\n", StringValueCStr(value));

[/code]

and let me know what effect that has.

Cheers.

Answers (0)