SAP Message 26167 - There must be a classification record before each assigned values record

Diagnosis
You want to copy document info records from an external system to yourSAP System.
The sequential file you created in your external system does not meetthe specifications (see "Documentation of transferprogram").

Procedure
Correct the program in the source system that produces the sequentialfile.
Each value assignment record (record type 6) must be preceded by aclassification record of the document (record type 5).