standard status management in custom development http://scn.sap.com/community/abap/blog/2014/04/06/using-the-standard-status-management-in-custom-developments