SAP Knowledge Base Article - Public

3846263 - BR: CNAB Segment J-52: CPF/CNPJ field not padded with leading zeros (SAP S/4HANA Cloud Public Edition)

Symptom

The CPF/CNPJ field in the CNAB Segment J-52 record does not automatically pad the value with leading zeros.

Environment

SAP S/4HANA Cloud Public Edition

Cause

Missing or incorrect conversion function for element 13.4J52 (Registration Number) in the format mapping, preventing zero-padding for the alphanumeric CPF/CNPJ field.

Resolution

  1. Open the Map Format Data for Payments app.
  2. Open the relevant CNAB format tree used for Segment J-52 output.
  3. Expand the Detail Record J-52 section.
  4. Locate element 13.4J52 (Registration Number).
  5. Set the conversion function to 'C0' for this element to enable left zero-padding for the CPF/CNPJ field per the bank layout.
  6. Save the mapping and regenerate the CNAB file to validate that Segment J-52 now contains the correctly padded value.

See Also

refer to: Configuration for Payment File Format

Keywords

CNAB, J-52, Segment J-52, CPF, CNPJ, leading zeros, padding, alphanumeric, conversion function, C0, format mapping, Map Format Data for Payments, Febraban, payment file, registration number , KBA , FI-LOC-FI-BR-PMT , PIX, CNAB and Febraban , Problem

Product

SAP S/4HANA Cloud Public Edition all versions