It is stated that Sandhyavandanam japam should be performed while either standing or sitting on the ground (land). Therefore, it is best to avoid performing it on a ship. Do the best you can according to the situation. However, do not completely give up Sandhyavandanam for this reason.

