After a witness called by the state's attorney has testified on direct examination, the court shall, on the motion of a respondent or a child, order the state's attorney to produce any statement, as defined in § 26-7A-67, of the witness in the possession of the state's attorney which relates to the subject matter on which the witness has testified. If the entire contents of any statement relate to the subject matter of the testimony of the witness, the court shall order it to be delivered directly to the respondent or the child for examination and use by the party.
SDCL 26-7A-64