In S4 HANA when we implement my inbox fiori app. It shows some action tasks buttons by default like “Suspend”, “Claim”, “Show Log” etc. as follows:

My%20inbox%20fiori%20app%20buttons

My inbox fiori app buttons

In this blog we will discuss how to hide these buttons

In order to hide these buttons we will use the standard BADI “WF_TASK_SUPPORT”.

Go to SE18 and enter BADI Name WF_TASK_SUPPORT.

WF_TASK_SUPPORT%20BADI

WF_TASK_SUPPORT BADI

 

Click on Display. In following screen right click on implementation and “Create BADI Implementation”.

Create%20implementation

Create implementation

Create Enhancement implementation

 

Create%20BADI%20implementation

Create BADI implementation

 

Implementing%20BADI

Implementing BADI

Click on implementing class.

 

Implement the MULTIPLE_TASK_SUPPORT method as follows.

 

Method%20implementation

Method implementation

  method IF_WF_TASK_SUPPORT~GET_MULTIPLE_TASK_SUPPORT.

loop at CH_TASKS_SUPPORTS assigning fieldsymbol(<FS_TASK_SUPPORTS>)
where TASK ‘TS20000166’ or TASK ‘TS20000168’.

<FS_TASK_SUPPORTS>FORWARD ABAP_FALSE.
<FS_TASK_SUPPORTS>CLAIM ABAP_FALSE.
<FS_TASK_SUPPORTS>UIEXECUTIONLINK ABAP_FALSE.
<FS_TASK_SUPPORTS>RESUBMIT ABAP_FALSE“Suspend
<FS_TASK_SUPPORTS>PROCESSINGLOGS ABAP_FALSE.
<FS_TASK_SUPPORTS>WORKFLOWLOG ABAP_FALSE.
<FS_TASK_SUPPORTS>RELEASE ABAP_FALSE.

endloop.

endmethod.

 

Activate the BADI and run my inbox fiori app. Output will be as follows:

 

For more detail please visit https://community.sap.com/topics/abap

https://blogs.sap.com/

S/4 HANA Topic.

Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
1 Comment
Inline Feedbacks
View all comments
https-sapspaces-commarcos-moura

Hi Sara, thanks for this excelent post. I was wondering if you know where can we insert some adictional actions when the user click on on of this butons … our need is to change the status of the document due to approval if the user click on “claim button” from “Sent to analysis” to “In analysis” … I’ll hope I made my self clear and I’m looking forward to hear you about this. Thanks in advance!

1
0
Would love your thoughts, please comment.x
()
x