How to change user status sequence for a status profile through code
I have a very peculiar requirement. There are certain rules which needs to be followed for the sequencing of the statuses in a status profile. This sequence settings can be maintained in SPRO through Status management. But we have a requirement wherein the sequencing can only be maintained to certain extent via SPRO.
Apart from that, when the user sets particular status, we need to manually override the settings in SPRO via STATUS BADI and assign new sequence based on current status message.
If anyone knows any FM/method or something to achieve the same, it would be really appreciable.
Useful answers will be rewarded with points.
Thanks in advance,