SAP Knowledge Base Article - Public

3681626 - Extra space in error message text displayed by BAdI MMIM_HEAD_CHECK in SAP S/4HANA Cloud Public Edition

Symptom

  • An error message generated by the custom logic in BAdI MMIM_HEAD_CHECK displays an unintended space between "deliver" and "y" in the message text.
  • Observed error message: "Please enter the Challan/Invoice number in deliver y note".

MMIM_HEAD_CHECK 

*DATA: ls_message TYPE if_mmim_head_check_data=>ts_messages.

IF header-deliverydocumentbyvendor is initial.
ls_message-messagetype = 'E'.
ls_message-messagetext = 'Please enter the Challan/Invoice number in delivery note'.
APPEND ls_message TO messages.
ENDIF.

Environment

  • S/4HANA Public Cloud Edition

Reproducing the Issue

  1. MIGO / Post Goods Movement.
  2. Goods Receipt (GR) / Purchase Orders (PO).
  3. Enter the Purchase Order number.
  4. Leave the delivery note field empty.
  5. Click on "Check".
  6. Observe the error message displayed: "Please enter the Challan/Invoice number in deliver y note".   << with a space

Cause

  • The maximum number of characters for the message text is 200, split into 4 blocks of 50 characters.
  • The text reaches the character limit at the letter "r" of "delivery", causing the subsequent part of the text to be moved to another field (sy-msgv2), resulting in the unintended space.

Resolution

  1. Modify the message text in the custom logic to ensure it remains below 50 characters per block.
  2. Update the message text to: "Please enter Challan/Invoice Nr in delivery note".

Keywords

BAdI MMIM_HEAD_CHECK, error message text, extra space, SAP S/4HANA Cloud Public Edition, delivery note, message text limit, custom logic, unintended space, GR for PO, message formatting, 200, 50 , KBA , MM-FIO-IM-SGM-2CL , Fiori UI for Stock and Goods Movements (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions