Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reject button is disabled in Approve Service Entry Sheet App

Hello,

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.

Thanks

Sundeep

Tags:
Former Member replied

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

6 View this answer in context
Not what you were looking for? View more on this topic or Ask a question