In ECC6, Generic Object doesn't do any authority checks anymore, but instead they give customization options where customer can add their own checks.
My requirement is to prevent delete on GOS while allow edits. I have done the following in adding customize auth checks:
1. Copied CL_GOS_SRV_ATTACHMENT_LIST to ZCL_GOS_SRV_ATTACHMENT_LIST
2. In ZCL_GOS_SRV_ATTACHMENT_LIST there is a method called: CHECK_STATUS. I overwrote with my check;
on_mode_changed( 'D' ). --- For display
on_mode_changed( 'E' ). --- For edit mode.
3. In SGOS tcode, added VIEW_ATTA to point to ZCL_GOS_SRV_ATTACHMENT_LIST
This works, but when set for display, it does not allow DELETE or CHANGE. But when set to edit, it allow both DELETE and EDIT.
My question is how can I fine tune and allow EDIT without Delete?
Thanks in advance,