You can transfer in FRA. The expression 'self-transfer' is misleading; if you mean that you have two separate tickets then no, you cannot do what you propose because you are not eligible to enter Germany, which is your destination on your first ticket. You'll be denied boarding in BKK. You have to purchase a single continuous ticket.