cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow commitment error

0 Kudos

We run workflow for project approvement. When the user tries to commit the work item, the error has occurred.

Do you have any idea for this problem?

Thanks in advance.

CNIF_PI056

Diagnosis

In the current LUW (Logical Unit of Work) at least one of the BAPIs listed below or the BAPI "BAPI_PS_PRECOMMIT" has finished with an error.

BAPI Method

BAPI_BUS2001_CREATE ProjectDefinitionPI.CreateSingle

BAPI_BUS2001_CHANGE ProjectDefinitionPI.Change

BAPI_BUS2001_DELETE ProjectDefinitionPI.Delete

BAPI_BUS2001_SET_STATUS ProjectDefinitionPI.SetStatus

BAPI_BUS2054_CREATE_MULTI WBSPI.CreateMultiple

BAPI_BUS2054_CHANGE_MULTI WBSPI.ChangeMultiple

BAPI_BUS2054_DELETE_MULTI WBSPI.DeleteMultiple

BAPI_BUS2001_SET_STATUS WBSPI.SetStatus

BAPI_BUS2002_CREATE NetworkPI.CreateFromData

BAPI_BUS2002_CHANGE NetworkPI.Change

BAPI_BUS2002_DELETE NetworkPI.Delete

BAPI_BUS2002_ACT_CREATE_MULTI NetworkPI.ActCreateMultiple

BAPI_BUS2002_ACT_CHANGE_MULTI NetworkPI.ActChangeMultiple

BAPI_BUS2002_ACT_DELETE_MULTI NetworkPI.ActDeleteMultiple

BAPI_BUS2002_ACTELEM_CREATE_M NetworkPI.ActElemCreateMultiple

BAPI_BUS2002_ACTELEM_CHANGE_M NetworkPI.ActElemChangeMultiple

BAPI_BUS2002_ACTELEM_DELETE_M NetworkPI.ActElemDeleteMultiple

BAPI_BUS2002_SET_STATUS NetworkPI.SetStatus

If an error has occurred in at least one individual BAPI and despite this you call BAPI "BAPI_PS_PRECOMMIT", this message is issued with message type I (information).

If an error has occurred in at least one individual BAPI and in BAPI "BAPI_PS_PRECOMMIT", but despite this you carry out a COMMIT WORK (for example, using BAPI "BAPI_TRANSACTION_COMMIT"), the current program is terminated and this message is issued with message type X (exit).

This is necessary to ensure data consistency for all objects created, changed, and/or deleted in this LUW.

Note that the current LUW was not successfully closed and that no new LUW can be started in this status.

System Response

The precommit is not executed, or the COMMIT WORK leads to a termination.

Procedure

Change the calls of the individual BAPIs so that no errors occur during the individual checks or during the subsequent overall check.

Accepted Solutions (0)

Answers (2)

Answers (2)

I042439
Employee
Employee
0 Kudos

Hi

Have you tried to look for SAP Notes. Search with "BAPI_PS_PRECOMMIT error".

There are multiple notes, see which one is applicable for you.

Maybe you want to close the thread here and open a new on in the PS forum. It may be related to some data/sequence/config issues and you can get answers there.

Regards,

Modak

pokrakam
Active Contributor
0 Kudos

Hello,

More info please. What do you mean "when a user tries to commit the work item"? This is not possible.

Do you mean: The user completes the work item or the code does a COMMIT? What does the work item do? Custom code?

Regards,

Mike

0 Kudos

Hello,

I mean "the work item is triggered by the custom code. The user runs the custom code, we expect the code commits the work item."

In our case, the user has ran the code,the work item has been created and not completed. The status of the work item is processing.


Here is the error message:

CNIF_PI056

Diagnosis

In the current LUW (Logical Unit of Work) at least one of the BAPIs listed below or the BAPI "BAPI_PS_PRECOMMIT" has finished with an error.

BAPI Method

BAPI_BUS2001_CREATE ProjectDefinitionPI.CreateSingle

BAPI_BUS2001_CHANGE ProjectDefinitionPI.Change

BAPI_BUS2001_DELETE ProjectDefinitionPI.Delete

BAPI_BUS2001_SET_STATUS ProjectDefinitionPI.SetStatus

BAPI_BUS2054_CREATE_MULTI WBSPI.CreateMultiple

BAPI_BUS2054_CHANGE_MULTI WBSPI.ChangeMultiple

BAPI_BUS2054_DELETE_MULTI WBSPI.DeleteMultiple

BAPI_BUS2001_SET_STATUS WBSPI.SetStatus

BAPI_BUS2002_CREATE NetworkPI.CreateFromData

BAPI_BUS2002_CHANGE NetworkPI.Change

BAPI_BUS2002_DELETE NetworkPI.Delete

BAPI_BUS2002_ACT_CREATE_MULTI NetworkPI.ActCreateMultiple

BAPI_BUS2002_ACT_CHANGE_MULTI NetworkPI.ActChangeMultiple

BAPI_BUS2002_ACT_DELETE_MULTI NetworkPI.ActDeleteMultiple

BAPI_BUS2002_ACTELEM_CREATE_M NetworkPI.ActElemCreateMultiple

BAPI_BUS2002_ACTELEM_CHANGE_M NetworkPI.ActElemChangeMultiple

BAPI_BUS2002_ACTELEM_DELETE_M NetworkPI.ActElemDeleteMultiple

BAPI_BUS2002_SET_STATUS NetworkPI.SetStatus

If an error has occurred in at least one individual BAPI and despite this you call BAPI "BAPI_PS_PRECOMMIT", this message is issued with message type I (information).

If an error has occurred in at least one individual BAPI and in BAPI "BAPI_PS_PRECOMMIT", but despite this you carry out a COMMIT WORK (for example, using BAPI "BAPI_TRANSACTION_COMMIT"), the current program is terminated and this message is issued with message type X (exit).

This is necessary to ensure data consistency for all objects created, changed, and/or deleted in this LUW.

Note that the current LUW was not successfully closed and that no new LUW can be started in this status.

System Response

The precommit is not executed, or the COMMIT WORK leads to a termination.

Procedure

Change the calls of the individual BAPIs so that no errors occur during the individual checks or during the subsequent overall check.

pokrakam
Active Contributor
0 Kudos

What the message is telling you is that you are trying to commit a transaction with an error.

You call a BAPI which returns an error, and then you try to commit. This is obviously wrong. Implement suitable error handling by reviewing the BAPI return messages, this is always good practice!


Regards,

Mike