Skip to Content
avatar image
Former Member

Status Sequence not letting to change to other status

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 22, 2015 at 06:48 PM

    Hi All,

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

    Thank you all for your answers.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 16, 2015 at 11:06 AM

    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 Former Member 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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Jan 09, 2015 at 04:54 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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