Disconnect the back up lamp switch connector.
Check the continuity between no. 1 and 2 terminals of backup lamp switch.
When the shift lever is in reverse, there should be contunuity.
If necessary, repair or replace the backup lamp switch.