You are traveling from one country into another. You will have to go through immigration in Thailand - which would be BKK. You may also need to take your suitcase through customs and re-check it. That's what I have done on all other inter-country flights.