The problem is clearly in the ABAP code in the inbound function module. We can't know on SCN what that code is but an ABAPer should be able to help you with this.
Since you've already marked this as answered I guess it's all good now... If you found a solution yourself then kindly share with the community, so that others could learn from it too.