SAP Message 26165 - There must be a document info record before each object allocation 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 object allocation record (record type 4) must be preceded bydocument header record (record type 1).