cancel
Showing results for 
Search instead for 
Did you mean: 

Create & Release Notification Task from QQMA0014

Former Member
0 Kudos

Dear experts, I am building up a very simple custom workflow solution for quality notifications based upon business rules/logic (background: we just decided not to use the standard SAP workflow). The logic has been implemented in QQMA0014 in order to determine whether a new task should be created or not for the notification.

In order to achieve the requirement we planned to use the following standard function modules:

BAPI_QUALNOT_ADD_DATA (used to add new task)

BAPI_QUALNOT_SAVE (save the changes made to the notification)

BAPI_TRANSACTION_COMMIT (commit changes on database)

BAPI_QUALNOT_CHANGETSKSTAT (used to release the task)

BAPI_QUALNOT_SAVE (save the changes made to the notification)

BAPI_TRANSACTION_COMMIT (commit changes on database)

And so we decided to create a Z function module with all above mentioned BAPIs that could be called from QQMA0014 and executed in the update task after notification save. The problem is that SAP does not allow explicit commit work commands when the Z function module is executed in the update task, meaning that I cannot release the newly created task because the BAPI_QUALNOT_CHANGETSKSTAT will not find it in the database.

Any ideas how to solve the problem? Your inputs will be highly appreciated.

Cheers, Julio.

Accepted Solutions (1)

Accepted Solutions (1)

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Julio,

These are few links which will be useful to you:

What can be used instead of COMMIT WORK in a user exit?

Using COMMIT WORK in User Exit or in BADI

Call function module IN Update Task

Can I Call Update task function module in a User Exit?

There are plenty discussions available on this subject here: Google

Good luck

KJogeswaraRao

Former Member
0 Kudos

The update task does not allow commit work at all. Solved problem myself by calling the function module in background task instead.

Answers (0)