Reject button is disabled in Approve Service Entry Sheet App
The Reject button in the Approve Service Entry Sheet App is disabled even though my SES has not been released.
Can you please help me why the Reject button in the SES fiori app is disabled? Is there something I am missing.
Approve button is working fine.
I was able to do this.
You need to:
- Implement BADI_MMSRV_APPROVAL_APP in your backend.
- Change table CT_WORKITEM_INBOX in method CHANGE_WORKITEM_INBOX.
- In this table you need to assign a value to NEXT_REJECT_CODE column (in my case I used '01'). Then REJECT button will be enabled.
- Sample code
FIELD-SYMBOLS: <fs_worktiem> LIKE LINE OF ct_workitem_inbox.
LOOP AT ct_workitem_inbox ASSIGNING <fs_worktiem>.
<fs_worktiem>-next_reject_code = '01'.
After that, in the same BADI, you can customize actions for Approve/Reject by using methods CHANGE_APPROVE_ACTION / CHANGE_REJECT_ACTION
Hope this works for you too...