cancel
Showing results for 
Search instead for 
Did you mean: 

GuiXT CopyText problem

Former Member
0 Kudos

Hello everyone,

I am currently starting to use GuiXT (all components installed) and I have run into a problem with the CopyText function.

My goal is to have the script paste the value from Clipboard into the ZCJI3 screen element F[WBS Element]. I tried using the following:

CopyText ToScreen="F[WBS Element]" -fromclipboard

But I got an error saying:

Please specify a text variable as source or as destination.

I tried to circumvent this problem by first CopyTexting from clipboard to a V[ForHelp] and then setting F[WBS Element] to V[ForHelp] but that did not work either. I cannot get the CopyText function to copy anything from the clipboard no matter what I do.

Any suggestions as to where the problem may be?

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_schnell
Active Contributor
0 Kudos

Hello Radim,

welcome to the SAP GUI Scripting forum.

I believe that your solution doesn't work, try the following GuiXT script:

Set V[t1] ""

CopyText toText="vText" -fromClipboard

CopyText fromText="vText" toString="t1"

Set F[Funktionsbaustein] "&V[t1]"

In my case this solution works.

Hint: You can find a lot of GuiXT tips and tricks on Gérald Koehns site here.

Cheers

Stefan