The parameter values which are being passed from R/3 system are getting truncated when it is being passed on from a unicode enabled RFC destination. When the RFC destination is unicode disabled the parameters are coming correctly.
For example in a func call the import parameters are
When we enable unicode, the value we recive in the rfc detination is
Once we disable unicode from the R/3 side the values are received properly. Looks like the charaters are getting truncated somewhere. We are using the latest java connector (sapjco.jar and other library files).