Skip to Content
avatar image
Former Member

execute SAP GUI Scipt automatically

Hi all,

Can anybody tell me if it is possible to attach an SAP GUI script to a certain table so that the script starts itself when someone presses Enter from the keyboard for a field of the table. The table may be e.g. the table on the right hand side of the structure editor in eCATT ( tr. SECATT, http://help.sap.com/saphelp_47x200/helpdata/EN/2a/121e3bd711bb04e10000000a114084/frameset.htm )

Kind regards:

Svetlana

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 25, 2009 at 06:07 AM

    Hi

    Check this PDF link.Hope this link is helpful for you.

    http://www.synactive.com/download/sap%20gui%20scripting/sap%20gui%20scripting%20userguide.pdf

    Also check following link

    http://www.synactive.com/docu_e/specials/guiscripting.html

    Regards

    Ruturaj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ruturaj,

      Thanks a lot for your hints, the links are really goodu2026

      Regarding:

      http://www.synactive.com/download/sap%20gui%20scripting/sap%20gui%20scripting%20userguide.pdf

      p.4-6: So far I understand, there are only 3 ways to start a script and it seems there is no possibility to run it by keyboard event.

      p.7-17, p.18-24: concern SAP GUI for Java as well AppleScript.

      http://www.synactive.com/docu_e/specials/guiscripting.html

      GuiXT is really good and it is possible to write a GuiXT scipt, which if active calls the necessary Visual Basic script:

      ApplyGuiScript " E:\VB_Scripts\Win.vbs "

      But I need to execute the Visual Basic script periodically, on every Enter key press in the table of interest. This means I have to activate and deactivate GuiXT every time I need the Visual Basic script.

      Do you know if there is a possibility to react on events with a GuiXT script?

      Kind Regards:

      Svetlana

  • Jul 29, 2009 at 08:39 AM

    Hi Svetlana,

    I think that the reference to synactive was correct. So that you do not have to read so much, you can concentrate on:

    On "=TAB02" Fcode="=TAB02" process="...."

    where "=TAB02" is the internal function code of the tab. You can use "Input Recording" to find out the function code.

    Regards,

    ScriptMan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Script Man

      Hi ScriptMan,

      Thanks a lot for the answer. Maybe I will write again when I can return back to this topic.

      Kind Regards:

      Svetlana