• Not sure, the following works for me:

    declare @ssGrade VARCHAR(8000) = 'PK,KG,01,02';
    SELECT * FROM fn_splitString(@ssGrade);

    Doing the insert into a temp table works as well.