I have to save an itab in SAP system to SAP directory in CSV format. As per my understanding I have to change the content to character type however I get a Casting error. Below is my code: , This is the error message: An exception occurred that is explained in detail below. The exception, which is assigned to class 'CX_SY_ASSIGN_CAST_ILLEGAL_CAST', was not caught in procedure "F_OPENDATA" .....