cancel
Showing results for 
Search instead for 
Did you mean: 

Status Sequence not letting to change to other status

Former Member
0 Kudos

Hi All,

I have a question regarding status change using sequence.

I am trying to add sequence to statuses for a status profile, it is like below:

01 Z001 Open              01 99

02 Z002  In Process     01 99

03 Z003  Approve        03 99

04 Z004  Complete      03 99

05 Z005  Closed          04 99

Now my issue:

Once I set the status Z003 (Approve), the system does not allow me to set to status Z002 (In Process) though a program. Is there any way I can set the status Z002 or Z001 without changing the sequence.

Thank you for your quick reply.

Regards,

Abhay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All,

I go an enhance spot for program LCRMBSVAF1C, which I implemented and it worked.

Thank you all for your answers.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Abhay,

I doubt you can achieve this using a BAdi.(May be I'm wrong but I doubt) It may need standard modification after you find the place where system performs this check.

As mentions, you can achieve this by changing Low High values. This will enable you to do it manually as well. And if a certain thing can be done manually on WebUI/GUI it can be automated. But if it cannot be done manually, then normally you cannot automate it.

If you cannot change the configuration for any reason, then look for the place where SAP checks for an allowed status and modify it according to your custom logic.

Cheers,

Niraj

Former Member
0 Kudos

Hi Niraj,

I cannot change the sequence much as I have around 50 status to work with. I agree with you, that I need to look at the place where SAP performs the check and try to modify the logic.

We also have an option of WEBUI using custom tables to maintain the status and then restrict the status display in WEBUI, but wanted to check BADI.

I will keep you all posted if I find a solution.

Thanks,

Abhay

Former Member
0 Kudos

Hi Abhay

Try changing the 3rd entry such that it looks as follows:

03 Z003 Approve 02 99.

This does not change the sequence, however it will make the Approve Option visible along with In Process.

Alternatively there is a Badi Implementation available which could be used here. But this requirement looks relatively straight forward, so you should be able to meet your requirements just by adjusting the Low-High values.

Hope this helps

Regards

Arden

Former Member
0 Kudos

Hi Arden,

Thank you for the reply.

The example I have given above is an easy sequence. In my project we have 30-40 statuses and we would like to give them based on business requirement.

but my issue is: if we group them, how can I set a status from a different group without modifying the sequence.

Like in the above example, I need to go from CLOSED Z005 to OPEN Z0001 or CLOSED to IN-PROCESS Z002. (We have requirements like these, when we sometimes want t open a closed activity).

I would like to know, if we can achieve this through configuration or we will need to use BADI?

Also, can you please provide me the BADI than can be used?

Thank you,

Abhay

Former Member
0 Kudos

Hi Abhay

The status profile sounds more complicated than I had initially thought, so you should look at the BAdi Implementation: CRM_ORDER_STATUS

The documentation for this is within the SPRO Configuration Menu for Status Management.

Regards

Arden

Former Member
0 Kudos

Hi Arden,

I tried the BADI: CRM_ORDER_STATUS, but the BADI only has the option of raising exception 'Not Allowed'. I need a way to bypass the checking of sequence number when the status is set via BATCH program.

Thanks,

Abhay

Former Member
0 Kudos

Hi Abhay,

you can try it with badi BSV_STATUS_PROFILE.

Best regards
Marion

Former Member
0 Kudos

Hi Marion,

I have tried the BADI BSV_STATUS_PROFILE, but it does not work for me as this is only for activating status profile.

Thanks,

Abhay