When posting data to an SAP IDOC using the 4.2 SAP ALE-Client Adapter, the data written to the IDOC segment field becomes truncated. Does the SAP adapter retrieve field lengths from SAP and truncate based on this value? As I understand, everything is Unicode-String and the SAP Adapter should pass the data to SAP without truncation. In my test example, the “ENTRY_QNT” segment field data is truncated to 13 characters even though SAP has this field defined as 15 characters. Does SAP truncate this data based on “Internal Length” instead of “External Length”? As a side note, I can populate this field with 15 characters when using the IDOC Test Tool. As such, I should also be able to populate this field with 15 characters when posting data using the SAP Adapter. Has anyone else seen this behavior?
ENTRY_QNT : Quantity in unit of entry
internal data type : QUAN
Internal length : 000013 characters
000003 decimal places, without sign
Position in segment : 014, Offset : 0154. external length : 000015