Skip to Content
0
Dec 13, 2022 at 01:34 PM

How to create an ANSI encoded file with Abap?

408 Views Last edit Dec 13, 2022 at 01:47 PM 2 rev

Hello dear abapers;


I am facing a strange problem. I need to create an "ANSI" encoded text file using the common OPEN DATASET / TRANSFER / CLOSE DATASET abap commands. I tried to achieve this by playing with ENCODING or CODE PAGE paremeters but it didn't help. Even tried to create the file with the help of SXPG_COMMAND_EXECUTE via Windows' built in CMD. The resulting file is always in "UTF-8" encoding . Does anyone have an idea to solve this?


Kind regards.