Hi David,
We can't use sy-tcode to do the check. Because, if we are in BP Display mode(FPP3 / BP) and from that screen, suppose we clicked 'Switch Display/Change' (F6) button, the sy-tcode will be the same. But fields will go to change mode.
Thanks,
Glady