how can i reprogram my bcm on 2002 GMC Yukon XL Denali

the battery is new and keeps going dead and the locks only work with a key.the bcm is new it was programmed wrong

Take it back to where it was repaired, if they are a reputable company,they will help you out. Goodluck