I know this is a bedtime story for 0-3 age but let's refresh our memories. We can change the popup icon displayed on the left. To do this, we simply specify an icon name starting with ICON_MESSAGE_ in the POPUP_TYPE parameter.
📄 ABAP code:
DO 5 TIMES.
DATA(popup_type) = SWITCH icon-name( sy-index
WHEN 1 THEN 'ICON_MESSAGE_INFORMATION'
WHEN 2 THEN 'ICON_MESSAGE_WARNING'
WHEN 3 THEN 'ICON_MESSAGE_ERROR'
WHEN 4 THEN 'ICON_MESSAGE_QUESTION'
WHEN 5 THEN 'ICON_MESSAGE_CRITICAL' ).
However, these texts will be displayed in the login language.
In this blog post, you have learned how to customize the appearance of the POPUP_TO_CONFIRM function by changing the left icon and the icons of the first two buttons. You've also learned to display a hint when users hover the mouse over these buttons.
These may be very simple details, but they are actually important for user-friendly development.
I know these stories are not for senior developers but may be helpful for beginners. But don't miss the next part. We'll dive quite deeper. I call it "Operation 48/57".
Story 3: Splitting Text into 48-Char Sentences and Starting on New Lines
Story 4: Splitting Text into 57-Char Sentences and Starting on New Lines