SAP Knowledge Base Article - Public

3798211 - Coding block custom field gets truncated to 30 characters in Create Incoming Invoices app - SAP S/4HANA Cloud Public Edition

Symptom

A coding block custom field configured with a 150‑character text length is automatically truncated to approximately 30 characters on user input. When long‑text content is entered within the Create Incoming Invoices app and the document is saved or posted, only the first 30 characters are retained in the system.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the Create Incoming Invoices app.
  2. Navigate to the accounting coding block section on the document line‑item.
  3. Locate the extended coding block custom text field.
  4. Input text longer than 30 characters into the field.
  5. Save and post the supplier document.
  6. Check the stored field value and confirm that text truncation occurs.

Cause

The Create Incoming Invoices app is built on the legacy SAP GUI transaction framework. Coding block custom fields have a hard 30‑character UI input limitation for SAP GUI‑based transactions. Key‑user extensibility configurations for the accounting coding block business context do not fully apply to legacy transaction UIs, even if the backend custom‑field definition allows a maximum length of 150 characters.

Resolution

Use one of the following alternative approaches to retain full long‑text content for coding block custom fields.

Use the Upload Customer Open Items (F4051) app for document creation and upload. This app fully supports extended coding block custom field lengths without 30‑character truncation restrictions, as documented in KBA 3479502 - Custom fields in template of app Upload Customer Open Items - SAP for Me.

Alternatively, create invoice documents via the standard incoming invoice app first, then maintain and update full custom‑field text values afterward through the Manage Journal Entries app. Refer to KBA 3448139 - Manage journal entries extensibility - SAP for Me for detailed operating guidance.

Keywords

coding block, custom field, truncate, truncated, 30 character, 150 character, incoming invoice, supplier credit memo, key user extensibility, FINS_CODING_BLOCK, FB70 , KBA , FI-FIO-AP-TRA-2CL , Transaction Apps: Public Cloud , Problem

Product

SAP S/4HANA Cloud Public Edition all versions