cancel
Showing results for 
Search instead for 
Did you mean: 

Write stage; file path; backslash character; SAP GUI

gschang
Level 2

Hi all,

using the write stage I pass on this string to a SAP GUI field:

"C:\\testfolder\\testfile.txt"

However, the value that arrives there looks like this

"C:testfoldertestfile.txt"

Does anyone know what could be the reason for this or how to get around this problem?

Many thanks

Gerrit

1 BEST ANSWER
3 REPLIES 3

gschang
Level 2

Dear Leonardo,

that worked - thank you!

Kind regards

Gerrit

Kind regards

smitbret
Level 2
 

The reason you're seeing "C:testfoldertestfile.txt" in the SAP GUI field instead of "C:\testfolder\testfile.txt" is because of the way backslashes are interpreted.

In Windows, backslashes () are used as path separators. However, some systems, including SAP GUI, might treat backslashes as escape characters. An escape character tells the system to interpret the following character literally, instead of as part of a special sequence.