Hi,
That shouldn't be the case! I hope the error in create_rec is an exporting parameter with same time as mentioned by you. Have you check the value returned by check_data method?
Please keep a break point at the check_data method call and see the returning value. Also check the source of error in ST22.
Regards,
Kiran