Do you have any question about this error?
Message type: E = Error
Message class: 00 -
Message number: 099
Message text: Field after FROM, TO or CURSOR has incorrect data type
Fields that can be specified for the LOOP AT internal table (FROM, TO,
CURSOR), have an incorrect data type.
&RSYSTEM_RESPONSE&
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Fields must be defined in the same way as SY-INDEX
Example: DATA: START like sy-index.
Error message extract from SAP system. Copyright SAP SE.
00099
- Field after FROM, TO or CURSOR has incorrect data type ?The SAP error message "00099 Field after FROM, TO or CURSOR has incorrect data type" typically occurs in ABAP programming when there is a mismatch in data types in a SELECT statement or when using the cursor in a loop. This error indicates that the fields specified in the SQL statement do not match the expected data types.
Cause:
- Data Type Mismatch: The fields specified in the
FROM
,TO
, orCURSOR
clauses of your SQL statement do not match the expected data types. For example, if you are trying to compare a character field with a numeric field.- Incorrect Field Length: The length of the fields being compared or assigned may not match.
- Using a Non-Database Field: Attempting to use a field that is not part of the database table in the SQL statement.
- Improper Variable Declaration: The variable used in the SQL statement may not be declared correctly or may not have the correct data type.
Solution:
- Check Data Types: Review the data types of the fields in the database table and ensure that the variables used in the SQL statement match these data types.
- Adjust Variable Declarations: Make sure that all variables used in the SQL statement are declared with the correct data types and lengths.
- Use CAST or CONVERT: If necessary, use the
CAST
orCONVERT
functions to explicitly convert data types to match.- Review SQL Statement: Double-check the SQL statement for any syntax errors or logical errors that may lead to this issue.
- Debugging: Use debugging tools to step through the code and identify where the data type mismatch occurs.
Related Information:
By following these steps, you should be able to identify and resolve the cause of the error message "00099 Field after FROM, TO or CURSOR has incorrect data type."
Get instant SAP help. Start your 7-day free trial now.
00098
Program error with LOOP AT int. tab: FROM greater than TO
What causes this issue? The limits within which an internal table should be displayed are incorrect. The specification of FROM is larger than TO.Syst...
00097
Internal table & does not exist or is empty
What causes this issue? Access to internal tables with index = 0.System Response The system issues an error message and will not allow you to contin...
00100
Program error in LOOP AT internal table; FROM is greater than table end
What causes this issue? Incorrect specification of FROM.System Response The system issues an error message and will not allow you to continue with t...
00101
Batch input: Processing mode 'Display errors only' activated
What causes this issue? You have changed the processing mode in interactive batch input. It was changed from 'Process visibly' to 'Dis...
Click on this link to search all SAP messages.