Quantcast
Channel: SCN : Discussion List - SAP ERP Operations - Quality Management (SAP QM)
Viewing all articles
Browse latest Browse all 2825

Create & Release Notification Task from QQMA0014

$
0
0

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.


Viewing all articles
Browse latest Browse all 2825

Trending Articles