SAP Knowledge Base Article - Preview

3639198 - Json deserialization issue for 8-digit packed decimal fields in SAP S/4HANA post-upgrade

Symptom

  • Issues arise when deserializing JSON data using the method "/ui2/cl_json" for packed decimal fields with a length of 8.
  • The deserialization process incorrectly appends `0000` to the amount, multiplies it by 1000, and fails in the BAPI call.
  • The issue is specific to 8-digit integers, while 7-digit and 9-digit amounts are processed correctly.


Read more...

Environment

  • SAP S/4HANA
  • ABAP Runtime

Product

SAP S/4HANA all versions

Keywords

json deserialization, packed decimal, 8-digit integer, /ui2/cl_json, SAP S/4HANA, custom API, BAPI failure, PL22, PL21, ABAP runtime, deserialization bug, accounting document post, SAP/abap-to-json, open-source fix, JSON interface issue. , KBA , BC-FES-BUS-RUN , Runtime , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.