SAP Knowledge Base Article - Public

3482087 - Error "Data loss occurred when converting &" in API BankStatementPost_In

Symptom

An error "Data loss occurred when converting &" is received when calling the API BankStatementPost_In.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP S/4HANA Cloud Public Edition

Cause

The length of the data in <NoteToPayeeInBankStatement> exceeds the maximum of 65 characters.

Resolution

To pass memo line that over 65 characters via API BankStatementPost_In, it is recommended to use multiple <NoteToPayeeInBankStatement> tags in a single bank statement item. For example, to accommodate an 85-character memo line, use two <NoteToPayeeInBankStatement> tags as shown below:

<NoteToPayeeInBankStatement>12345678901234567890123456789012345678901234567890123456789012345</NoteToPayeeInBankStatement>
<NoteToPayeeInBankStatement>12345678901234567890</NoteToPayeeInBankStatement>

Keywords

NoteToPayeeInBankStatement, max length, memo line , KBA , FI-BL-PT-BA-2CL , bank statement (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions