SAP Message BA310 - Following action &1, action &2 is not possible in the same program

Diagnosis
The current program (normally run as a job) contains an invalidsequence of actions: After an action of type &V1& (WRI = write job, DEL= delete job...; see domain ADMI_JOB_T), the system tried to carry outan action of type &V2&.
For example, a delete program must not call function moduleARCHIVE_OPEN_FOR_READ after calling ARCHIVE_OPEN_FOR_DELETE (However, the sequence REA -> DEL is allowed).

System Response
The program or the job was terminated.

Procedure
If the terminated program is a customer-specific program, avoid invalidsequences. If this is a standard SAP program, report this programmingerror to SAP.