SAP Knowledge Base Article - Public

3462236 - Why the value be cleared after published Journal Entry Item Substitution?

Symptom

  • Why the value of field, for example, Financial Transaction Type been cleared after entering on the UI in app Clear Outgoing Payments?
  • Why the value of field, for example, Assignment can't be saved in app Manage Journal Entries. The value been cleared after saved.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Custom logic Journal Entry Item Substitution is created
  2. The value of field Assignment can't be saved in app Manage Journal Entries. The value been cleared after saved.

Cause

Resolution

Always copy the values from input to output first before any substitutions, otherwise, the initial values from the output will be used for substitutions.

MOVE-CORRESPONDING accountingdocitem TO accountingdocitemout.

For more details, Show Sample Code in app Custom Logic

See Also

SAP Help Portal: BAdIs for Substitution for Journal Entries

Keywords

Journal Entry Substitution, Journal Entry Item Substitution, Journal Entry Header Substitution, Financial Transaction Type, Assignment, BAdI, Custom Logic , KBA , FI-SL-VSR-2CL , Validation, Substitution and Rules (Public Cloud) , Problem

Product

SAP S/4HANA Cloud all versions