cancel
Showing results for 
Search instead for 
Did you mean: 

My Inbox App not doing any after we hit approve button

former_member189862
Participant
0 Kudos

We are on S/4 HANA 1610.

We created copy of standard workflow template(WS20000075) - in a custom workflow template.

In the MyInbox App - when I click on Approve - it gives a popup to enter comments and I hit on Submit - gives message " Task successfully processed" - but the PO still not approved.

Any idea what could be missing?

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kapil,

Please share the workflow technical log in the backend. We can check the workitem status.

Regards,

Masa / SAP Technology RIG

former_member251475
Discoverer
0 Kudos

Hi Kapil,

I am also facing same issue, however everything works in debug mode.

Did you found any solution to this cause?

Accepted Solutions (0)

Answers (2)

Answers (2)

kammaje_cis
Active Contributor

Hi Kapil, Are you on a 'Decision Task'? If not, you need to manually code the decision in BADI.

https://blogs.sap.com/2015/06/08/fiori-my-inbox-step-6-implement-the-badi-for-updating-the-decision/

former_member189862
Participant
0 Kudos

Hi Krishna,

Thanks for this suggestion, I just did that and approval works fine , now I am facing a strange issue.

Below notification of - "Purchase Order XXX Released" - this comes only if I am in the debugging mode in above BADI. If I run the whole process without debugging mode - PO gets released successfully, however I do not get the below notification after its released.

Is there a way to resolve this issue? Like do I need to put a wait in the BADI implementation or something like that?

Thanks,

Kapil

kammaje_cis
Active Contributor
0 Kudos

No, you will not get it in a usual (non-debug) scenario. This is coming mainly because of the inconsistent state of the workitem during debugging.

former_member189862
Participant
0 Kudos

Hi Krishna,

But this how standard SAP system should work, I need to get the notification when PO is released. Currently its not coming in non debug mode when we release the PO thru MyInbox FIORI App. If I release the PO in normal SAP GUI via SBWP, I get the notification in SAP Business workplace.

This seems to some bug in My Inbox App. Can you please check.

kammaje_cis
Active Contributor
0 Kudos

Ok. That means that issue is with the way you are handling the task in the above BADI.

Compare the workflow which was completed from Fiori with that of completed in GUI (in SWI1 graphical view). The one which is completed by Fiori is most probably not hitting the notification task.

former_member189862
Participant
0 Kudos

but how it hits the notification task only in debugging mode?

kammaje_cis
Active Contributor
0 Kudos

Most probably you are using a COMMIT statement or a COMMIT BAPI inside the above BADI. Add WAIT to it. (COMMIT WORK AND WAIT. or WAIT parameter in the PR Commit BAPI).

sudheer_ganti
Explorer
0 Kudos

Hi Kapil,

Do not force commit with given function modules(DO_COMMIT = 'X') in BADI as Krishna kishore suggested.

Instead use BAPI transaction Commit with wait.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = abap_true
* IMPORTING
* RETURN =
Your issue resolve.