Hi Sundeep,
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'.
ENDLOOP.
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...
Regards,
Oscar