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
- Open the Map Format Data for Payments app.
- Open the relevant CNAB format tree used for Segment J-52 output.
- Expand the Detail Record J-52 section.
- Locate element 13.4J52 (Registration Number).
- Set the conversion function to 'C0' for this element to enable left zero-padding for the CPF/CNPJ field per the bank layout.
- 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
SAP Knowledge Base Article - Public