In any criminal prosecution, no statement in the possession of the prosecuting attorney, which was made by a prosecution witness or prospective prosecution witness (other than the defendant), shall be the subject of subpoena, discovery, or inspection until such witness has testified on direct examination in the preliminary hearing or in the trial of the case.
SDCL 23A-13-6