Quantcast
Channel: SCN: Message List - SAP Fiori
Viewing all articles
Browse latest Browse all 2526

Re: Reject button is disabled in Approve Service Entry Sheet App

$
0
0

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.

ScreenShot4650.jpg

 

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


Viewing all articles
Browse latest Browse all 2526

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>