cancel
Showing results for 
Search instead for 
Did you mean: 

Status profile- when document contains error then should not show the status 'Closed'

Former Member
0 Kudos

Hello CRM Experts,

We have a requirement in status profile where in we should have status named 'closed', If the document contains error while processing the document then in status field the status 'Closed' needs to be disappear. when the document is error free then this status 'Closed' should be available in the status field, upon selecting the closed status, the document should be completed.

We have tried in different ways includes 'adding system status and business transaction control to corresponding status but we could not get it.

Please provide with your precious information to attain this functionality.

Thank you very much in advance Experts!

BR,

Thiru.P 

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Thiru,

This can be achieved by implementing BAdi - CRM_ORDER_STATUS, method BEFORE_CHANGE. It is a filter dependent Badi, i.e. you need to add status profile and status in Badi implementation.

You can check your conditions there and raise exception NOT_ALLOWED. Your status will not be visible in drop down list.

Niraj

Former Member
0 Kudos

Hi

There is a Badi attached to the Status Profile configuration in SPRO.

Take a look at this, I believe it should be possible to influence what Status values are permitted using this Badi.

Regards

Arden

former_member200342
Active Contributor
0 Kudos

Hi Thiru,

One way of doing this is implementing an ORDER_SAVE Badi and checking the system status in the before save method. If the system status contains the Error Status ID then do not save the document.

You can also customize a message for the user on this event.

Regards,

Prajit