on 10-15-2008 1:28 PM
Hello
I am using the Dotnet Connector to make RFC calls to Backend system. I am making a call to the function module called 'INSERTINTOQUEUE' from a dotnet client application.
i am getting an error "System exception thrown while marshaling .NET type System.Byte[] to RFCTYPE_BYTE"
InnerException "Source array was not long enough. Check srcIndex and length, and the array's lower bounds."
Can you please help in geetting out of this. Soltuon will be appreciated.
Thanks in advance !!
Best regards
Shankar
Hey Shankar
It is because of sending an array of incorrect size....
Thank you
Best Regards
Jothi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Joke
I was facing an error while sending an Byte array to one of the function module present in the backend ABAP system via RFC.
Marshalling happens from BYTE[] to RFCTYPE_BYTE. But In order to convert to RFCTYPE_BYTE., your source array should be of predefined length ie 32000 bytes. If the source array size is less than 32000, then you will get an error as I have reported in the oroginal post.
So when you are converting Dotnet Type to SAP Type, you need to define the source array of length 32000.
Regards
Shankar
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.