This is a test message to test the length of the message box.
Login

Write a comment

Writing comments is only allowed to registered users, registration is free and does not require an email address and can be done quickly here.

WRITE to system message fields

Srinath_Mareedu - 07/29/2025 - 14:30

Sometimes we write custom error messages directly to SY-MSG* fields, is there any cloud alternative to these writes? Or these writes should be avoided completely?


Xexer - 07/29/2025 - 19:15

Hello Srinath,

The system fields are actually only intended for reading information and not for storing messages. There are message logs, such as the ABAP Logger or the XCO classes, that can generate messages. The SYMSG structure also provides all the fields.

What would be the use case for using the SY fields?