Excuse me I meant Hs-129 not 123. My mistake and typo. However the 87 would have been a lousy carrier bomber, and correct me if I am wrong but the Stuka carrying a torpedo? The Fi-167 was the German carrier based torpedo bomber.
The Ju 87D-4 designation was used for a number of Ju 87D-1 and Ju 87D-3 aircraft that were converted for use as a torpedo bomber. However, they were never used operationally, and were later converted back to the Ju 87D-3 standard.