cancel
Showing results for 
Search instead for 
Did you mean: 

WS14000084 for contracts in SRM 5.0

Former Member
0 Kudos

Hi Experts,

We are using WS14000084 to set status of the contracts to released once it

is approved. TS14007965 is using method BUS2000113->SETRELEASED for the

same.

Method is callinng function 'BBP_PD_CTR_STATUS_CHANGE_WF'.

The workflow is getting successfully completed even when this function

returning sy-subrc other that 0.

Is there any way to avert this, so that workflow should be in error status

and also can we find out the error cause.

Have tried to look into approval log error analysis but in vain.

Can you please guide me of the way to find out cause of errors and possibly

to avaoid wrong status shown in workflow.

Thanks,

GAurav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

even if the call of the function 'BBP_PD_CTR_STATUS_CHANGE_WF' gives sy-subrc > 0 back,

it does not mean, that the workflow should have error.

If you do not see any red cubes in the swi1 -> there are no errors, so the WFL could be processed.

May you can modify the coding, -depending from sy-subrc -

you can do a RAISING error_in_status_change...

Regards,

Daniel

Former Member
0 Kudos

Thanks for reply danial.

Letu2019s say, error occurred and still workflow is in completed status.

Do we have any analysis method by which we can find out why function not abalr to set status to approved?

This error is getting logged under approval heading in internal error monitoring can be accessed through T code RZ20.

Can you help me, how can we analyze those..

Appreciate your help.

Thanks,

Gaurav

Former Member
0 Kudos

Hello

what error is listed in the RZ20? What does it say?

if you start the setreleased in SWO1 for this object, and debug it you can find the cause of the issue

Daniel

Former Member
0 Kudos

Hi Danial,

Error is u201CError during setting of status for contract XXXXXX to ''approved' ".

Appreciate your help in this regards.

Our main problem is that contract status is remaining in awaiting approval status. Do you have any work around where we can set the status of contract to approved. Workflow has already been completed.

Thanks,

GAurav

Former Member
0 Kudos

Hello

you have to try to debug the setreleased method in the SWO1 transaction.

Then you see why this error happens. May you can open an Oss message for that...

Daniel

Answers (0)