Skip to Content
0
Jul 04 at 04:34 PM

Using FM FTP_SERVER_TO_R3, how to change the special characters?

73 Views Last edit Jul 06 at 04:11 PM 8 rev

Hi guys! I tried to look for answers regarding this matter but it seems not working for my case. I can't use OPEN Dataset as I am using Username/PW and destination to connect to the folder.

The other option for a program is to select a file from Local directory. Using GUI_UPLOAD has a parameter to use CODEPAGE = 4110. So this method is perfectly fine. My only problem left is FTP_SERVER_TO_R3 and how to convert to normal characters.

Below are the steps on how I coded it in order and tried other method to convert it.

1.) SAPFTP, no ascii to FTP Command

From server: This is the character that is from the upload file

After calling FTP_SERVER_TO_R3, it converts into this in the debug mode

2.) Tried to use FM 'SCP_REPLACE_STRANGE_CHARS' ,using default parameters. Not sure what codepage I need to enter to those parameters.

Output

3.) If I change destination from SAPFTP to SAPFTPA

After calling FTP_SERVER_TO_R3, it converts into this in the debug mode

4.) Using ASCII to FTP Command

5.) Tried LT_BLOB and convert to XSTRING but it is truncated and format is no good.

Hoping for your ideas. Thank you!

Attachments

8bjkz.png (1.3 kB)
cj6pq.png (2.6 kB)
2a.png (19.4 kB)
2a.png (19.4 kB)
2b.png (1.0 kB)
3.png (881 B)
3.png (881 B)