CSV file from AL11 folder is opened and read using the below commands
OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED
Reading dataset is as below:
READ DATASET filename INTO wa_tab_dataset.
While checking the first 3 characters of WA_TAB_DATASET it is ignoring the third character as shown below.
This happens only for the first line of the file. In the file we could not see any spaces as well.
Any inputs regarding this will be helpful.
Thanks and Regards,
Look at the "hexadecimal" part:
It's probably FFFE...
FFFE is the Byte-Order-Mark character for UTF-16 Little Endian (it could be also UTF-32LE but it's very rare).
Make sure with the architects that this format is as expected. It should also be documented in the requirement.
If it's confirmed, then you need to: