Skip to Content
avatar image
Former Member

GuiXT CopyText problem

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 21, 2014 at 02:37 PM

    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


    GuiXT.jpg (109.4 kB)
    Add comment
    10|10000 characters needed characters exceeded