When you use the WCF-SAP Nco connector type (the .NET Framework connector) in BizTalk Server 2013 R2, additional padding (white spaces) is added and sent to SAP.
When an IDOC Receive operation occurs, text fields are padded with white spaces of a length that is equal to that field length. For example, the OBJECT_KEY element is defined by SAP as a 50-character string.
When you use classic RFC as in the following example, no trailing white spaces are added:
However, when you use the Nco connector type, trailing white spaces are added, as in the following example:
When an IDOC Receive operation occurs, text fields are padded with white spaces of a length that is equal to that field length. For example, the OBJECT_KEY element is defined by SAP as a 50-character string.
When you use classic RFC as in the following example, no trailing white spaces are added:
<OBJECT_KEY>testfromBiztalk</OBJECT_KEY>
However, when you use the Nco connector type, trailing white spaces are added, as in the following example:
<OBJECT_KEY>testfromBiztalk </OBJECT_KEY>