SAP Message TT117 - External TCD data error & & &

Diagnosis
External transaction variant error
The field values of the first transaction in an appropriately labelledprocedure or function are read from external text files, not from theCATT buffer.
The transaction is generally executed repeatedly under externalcontrol, a maximum of 999 times.
The screen sequence in the external data must be identical with theexample screen sequence in CATT.
The values for BDC_OKCODE and BDC_CURSOR always come from the CATTdata.
The values for other input fields in the screens are generally readfrom the external files. The CATT field contents can be used forparticular screens, by using an appropriate control.
The path specification comes from the SPA/GPA parameter CTP; if this isempty, the standard system path is used.
Text files:
Control record WS_UPLOAD from file ABLAUFNR.000
is written back, possibly with modifications
Transaction records WS_UPLOAD from file ABLAUFNR.nnn
are not written back

System Response
Error codes < 10 are output when text files are WS_UPLOADed:
CONVERSION_ERROR = 1
FILE_OPEN_ERROR = 2
FILE_READ_ERROR = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8.
The error code 10 means that an already processed data record is to beprocessed again. The management record has been given the flag 'R' (=Ready) in the first run.
Error codes > 10 mean that the screen sequence passed in a transactiondata record is not the same as the example screen sequence in CATT.

Procedure
Check the specified path and the file name for error code < 10 errorsin WS_UPLOAD. If a control record read access error occurs, the CATTprocedure is not terminated, only the transaction, with its externalvariants is not performed.
For error code 10, check the control record to see whether the 'R' flagshould have been set, and the action should not be repeated.
The 'X' flag is for once-only execution.
Procedures with the 'T' flag can be repeated any number of times.
Subtracting 10 from error codes > 10 leads to the number of the screenwhich does not fit in the example screen sequence in CATT. e.g. errorcode 15 means that the 5th screen does not match the example screen.