Skip to Content
author's profile photo Former Member
Former Member

Turning sapgui/user_scripting on and off in code

Hi All, we have a requirement to turn GUI scripting on and off at certain times of the day. Rather than making the basis guys do it by hand using rz11, I want to do it automatically.

The best way seems to be to write ABAP programs to turn the parameter on and off and schedule them as jobs to run at particular times. However, I can't figure out what database table the value of the sapgui/user_scripting parameter is held in, or any other way of getting and setting the parameter value. It's not in TPYFYPROPTY, which is where I thought it would be.

Can anyone give me a clue how to do this?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 10:59 AM


    The table is TPFYPROPTY, not TPYFYPROPTY and the parameter sapgui/user_scripting exists there.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sri,

      thank you for your message, it was very interesting. The example you gave of how to read parameter values was very useful. However, I found a better way of setting the parameter value, which you may find useful:


      write:/ 'Switching GUI Scripting OFF...'.

      call function 'TH_CHANGE_PARAMETER'


      PARAMETER_NAME = 'sapgui/user_scripting'



      UNKNOWN_OPCODE = 101

      NOT_AUTHORIZED = 106

      NOT_IN_SAME_SYSTEM = 107

      NOT_CHANGEABLE = 108

      NOT_FOUND = 109

      INVALID_VALUE = 110

      SHMPRF_ERROR = 111

      OTHERS = 112.


      I can't find any documentation about how this function works, but it does work.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.