on 01-08-2015 4:34 PM
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
Hi All,
I go an enhance spot for program LCRMBSVAF1C, which I implemented and it worked.
Thank you all for your answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.