Here is an image showing the pin diagram of this transistor.
Complementary NPN transistor
The complementary NPN transistor to the BD938F is the BD937F.
SMD Version of BD938F transistor
The BDP952 (SOT-223) and BDP954 (SOT-223) is the SMD version of the BD938F transistor. These transistors are of the same type, have similar parameters and are designed for surface mounting.