Advice needed. A journal cap came off!

Main cap, You had better check the torque on the rest of them and check them for wear. You can't replace the cap with a new one without alignboring the block. You can reuse the old one with a new bearing, I hope your crank is smooth otherwise your fix will be short lived.