Skip to Content
Jan 19, 2021 at 09:46 AM

How to get pure value from text object in SAP Screen Personas Scripting


Hi Experts,

I create Text field object with default value in SAP Screen Personas 3.0 SP 10. After that, I create following script:

var input = session.findById("wnd[0]/usr/ctxtPersonas_161000174728578").text;
session.findById("wnd[0]/usr/ctxtPersonas_161000174728578").text = "D:\\Invoice.txt";
var file  = session.findById("wnd[0]/usr/ctxtPersonas_161000174728578").text;

In javascript debbuger, I found that value between variable input and variable file are different as follows:

I can pass variable file without any problem to rfc function module for get data from txt file, but can't if I pass variable input.

How to get pure value ("D:\Invoice.txt" only without additional value) of variable input as same as variable file?

Best regards,

Andy Pataselano


untitled.jpg (32.8 kB)