on 07-30-2007 5:37 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.