why my transmission temperature warning light always come on. on 2002 BMW 745i

when i am stuck in traffic, or i could just drive 10 miles or less and the transmission light comes on telling me to pull over and let the car cool down, then after 30 min i am good to go. and also the RPM would just keep going up,

Asked by for the 2002 BMW 745i
It means your car has the obd2 code problem, the first you need is to check out the code and then delete/reset it. I know this tool is helpful for your car.
Or you can take your car to the local dealer to diagnose out the code, then they will tell you how to fix it.