Is there any functionality within the .NET connector to remove "spaces" from the end of a field? We have a field of 134 characters that when padded with spaces at the end will be seen by the .NET app as containing less. If we fill up the entire field with "non-space" characters we see the proper length.
In SAP the field is being sent with the proper spaces.
We've had to program a workaround where .NET counts the field length and adds the appropriate spaces to the end in order for the data to be correct. Is this a behaviour of the .NET connector? Is there any way to disable this behaviour?
Yes, it is the .NET Connector that removes trailing "spaces" from a character (ABAP C) field when getting data from SAP because the trailing "spaces" are insignificant in ABAP. There is no way, in my opinion also seems no reason ,to disable this behaviour.
Can you explain the scenario where it is necessary to add the appropriate spaces to the end of a field? Are you concatenating fields of a structure and depending on the trailing spaces to keep the offsets correct?