SAP Message 0S038 - Insufficient storage space for replacing statement variables

Diagnosis
Whilst replacing variables in the SQL statement, the memory areaprovided was used up.
System Response
The system outputs the SQL statement so far as it has been formatted.

Procedure
Use the detail display. You can also display the SQL trace by choosingfunction key F8.