Switching ABS off for a particular section and an ABS fault are different states. Before using it, check the instructions for your version, and after returning to the road, check the system is back on.
Factory button
Per the manual reviewed, with the bike stopped, hold the button for 3–5 seconds and release it. When switched off, the light flashes roughly once every 1.2 seconds. To switch it on, use the same hold; then, when you move off, a healthy system turns the indicator off.
A press that is too short or too long may not work; over 30 seconds, the manual describes the switch being blocked until the key is turned off and on again. Don't hold the button for a long time instead of checking the indication.
When diagnosis is needed
If the light behaves differently, especially after a tyre change or wheel repair, inspect the sensors, rings and wiring, and read the fault codes. Pulling the fuse isn't a standard substitute for the button. This document doesn't confirm the promise of switching off only the rear channel.
The instructions from the manual give the full procedure; an ABS fault is covered separately. Don't check that it works by deliberately locking a wheel hard in traffic.