https://www.manualslib.com > ... > Owner's manual
Sanyo FWSB415E Manual Online: connect and set up, Position The Soundbar, Wall Mount The Soundbar(Optional). This Section Helps You Connect Your Soundbar To ...
It can't be done, they are not reprogrammable, not universal.
universal remote codes for Sanyo tv with Instructions
Brand
Code
SANYO
0049 0097 0110 0004 0268 0012 0108 0180
You did not post the model number but if the unit uses pushbuttons on the actual set, the carbon coating on the inside of the switch pad is flaking off and causing problems. You may be able to remove it and clean it up and it would be fine, you may have to use a new coating on the buttons though.