Changing Function Module
SM02_GET_UNREAD_MESSAGE
...
1. Start transaction SE37.
2. Enter SM02_GET_UNREAD_MESSAGE in the Function module field and choose Change.
3. Enter the following lines after the IF ENTRY_TYPE = CALL_FROM_DYNP query:
SELECT SINGLE * FROM
TEMSGU WHERE BNAME = SY-UNAME
IF SY-SUBRC = 0.
IF TEMSGU-BDATE = SY-DATUM.
LAST_USR_EMSG =
TEMSGU-BID.
ENDIF.
ENDIF.
CALL 'C_SAPGPARAM' ID 'NAME' FIELD
'rdisp/myname'
ID 'VALUE' FIELD
MYNAME.
4. Choose Save and then Activate.
