Changing Function Module SM02_DELOLD_MESSAGE
...
1. Start transaction SE37.
2. Enter SM02_DELOLD_MESSAGE in field Function module and choose Change.
3. Enter the following lines at the end of the program code, before the ENDFUNCTION statement:
*
---------------------------------------------
* Delete your last own ID from yesterday
* ---------------------------------------------
DELETE FROM TEMSGU
WHERE BNAME = SY-UNAME
AND
BDATE < SY-DATUM
ENDFUNCTION
4. Choose Save and then Activate.