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
- MIGO / Post Goods Movement.
- Goods Receipt (GR) / Purchase Orders (PO).
- Enter the Purchase Order number.
- Leave the delivery note field empty.
- Click on "Check".
- 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
- Modify the message text in the custom logic to ensure it remains below 50 characters per block.
- 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
SAP Knowledge Base Article - Public