<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Turning sapgui/user_scripting on and off in code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057032#M90672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The table is TPFYPROPTY, not TPYFYPROPTY and the parameter sapgui/user_scripting exists there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2005 10:59:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-20T10:59:09Z</dc:date>
    <item>
      <title>Turning sapgui/user_scripting on and off in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057031#M90671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give me a clue how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 10:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057031#M90671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T10:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Turning sapgui/user_scripting on and off in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057032#M90672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The table is TPFYPROPTY, not TPYFYPROPTY and the parameter sapgui/user_scripting exists there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 10:59:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057032#M90672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T10:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Turning sapgui/user_scripting on and off in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057033#M90673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Svetlin, &lt;/P&gt;&lt;P&gt;you're right, I misspelled the table name. However, I cannot see a field in the TPFYPROPTY table which holds the actual value of the parameter. Can you point me in the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 13:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057033#M90673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Turning sapgui/user_scripting on and off in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057034#M90674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check the table content you can find the record mentioned by Svetlin. Goto SE16 and enter this table and give the following value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJ_NAME(Object Name)  =   SAPGUI/USER_SCRIPTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can use the transaction RZ11 to maintain this. How about writing a BDC program using this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info please have a look at this document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.synactive.com/download/sap%20gui%20scripting/sap%20gui%20scripting%20security%20settings.pdf" target="test_blank"&gt;http://www.synactive.com/download/sap%20gui%20scripting/sap%20gui%20scripting%20security%20settings.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Vinod C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 13:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057034#M90674</guid>
      <dc:creator>Vinod_Chandran</dc:creator>
      <dc:date>2005-10-20T13:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Turning sapgui/user_scripting on and off in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057035#M90675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Actually take a look at program RSPFLDOC and subroutine CHANGE_VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  From what I can see they use the following logic to change value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      IF ON_ALL_HOSTS = 'X'.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'TH_SERVER_LIST'&lt;/P&gt;&lt;P&gt;             TABLES&lt;/P&gt;&lt;P&gt;                  LIST           = SRVLIST&lt;/P&gt;&lt;P&gt;             EXCEPTIONS&lt;/P&gt;&lt;P&gt;                  NO_SERVER_LIST = 1&lt;/P&gt;&lt;P&gt;                  OTHERS         = 2.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        RC = SY-SUBRC.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;          DESCRIBE TABLE SRVLIST LINES NO_SERVER.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Keine Server-Liste erhalten&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          MESSAGE E623(00).&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;        NO_SERVER = 1.&lt;/P&gt;&lt;P&gt;        CALL 'C_SAPGPARAM' ID 'NAME'  FIELD 'rdisp/myname'&lt;/P&gt;&lt;P&gt;                           ID 'VALUE' FIELD MYNAME.&lt;/P&gt;&lt;P&gt;        SRVLIST-NAME = MYNAME.&lt;/P&gt;&lt;P&gt;        APPEND SRVLIST.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT SRVLIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MSG = TEXT-310.&lt;/P&gt;&lt;P&gt;        REPLACE '&amp;amp;' WITH TPFYPROPTY-PARANAME INTO MSG.&lt;/P&gt;&lt;P&gt;        REPLACE '$' WITH SRVLIST-NAME        INTO MSG.&lt;/P&gt;&lt;P&gt;        MSG+400 = '...'.&lt;/P&gt;&lt;P&gt;        CONDENSE MSG.&lt;/P&gt;&lt;P&gt;        PROZENT = SY-INDEX * 100 / NO_SERVER.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  PERCENTAGE = PROZENT&lt;/P&gt;&lt;P&gt;                  TEXT       = MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;        PERFORM CHANGE_VALUE_ON_HOST USING SRVLIST-NAME&lt;/P&gt;&lt;P&gt;                                     CHANGING RC MSG EXIT_LOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;        CASE RC.&lt;/P&gt;&lt;P&gt;          WHEN 0.&lt;/P&gt;&lt;P&gt;            MSG = TEXT-312.&lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;' WITH TPFYPROPTY-PARANAME INTO MSG.&lt;/P&gt;&lt;P&gt;            REPLACE '$' WITH SRVLIST-NAME        INTO MSG.&lt;/P&gt;&lt;P&gt;            CONDENSE MSG.&lt;/P&gt;&lt;P&gt;          WHEN 110.&lt;/P&gt;&lt;P&gt;            LEAVE_SCREEN = SPACE.&lt;/P&gt;&lt;P&gt;        ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  PERCENTAGE = PROZENT&lt;/P&gt;&lt;P&gt;                  TEXT       = MSG.&lt;/P&gt;&lt;P&gt;        IF RC = 0. MSG = TEXT-318. ENDIF.&lt;/P&gt;&lt;P&gt;        IF EXIT_LOOP = 'X'.&lt;/P&gt;&lt;P&gt;          EXIT.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Similarly take a look at subroutine READ_VALUE.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  They use the following C call to read parameter values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL 'C_SAPGPARAM' ID 'NAME'    FIELD TPFYPROPTY-PARANAME&lt;/P&gt;&lt;P&gt;                     ID 'VALUE34' FIELD USR_PARVALUE&lt;/P&gt;&lt;P&gt;                     ID 'VALUE44' FIELD SHM_PARVALUE.&lt;/P&gt;&lt;P&gt;  ON_ALL_HOSTS = TPFYPROPTY-CHECKALL.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Try using this as a reference and arrive at a solution..&lt;/P&gt;&lt;P&gt;  Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 13:22:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057035#M90675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Turning sapgui/user_scripting on and off in code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057036#M90676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sri, &lt;/P&gt;&lt;P&gt;     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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'Switching GUI Scripting OFF...'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'TH_CHANGE_PARAMETER'&lt;/P&gt;&lt;P&gt;  exporting:&lt;/P&gt;&lt;P&gt;    PARAMETER_NAME = 'sapgui/user_scripting'&lt;/P&gt;&lt;P&gt;    PARAMETER_VALUE = 'FALSE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    EXCEPTIONS      COMMUNICATION_FAILURE&lt;/P&gt;&lt;P&gt;     UNKNOWN_OPCODE     = 101&lt;/P&gt;&lt;P&gt;     NOT_AUTHORIZED     = 106&lt;/P&gt;&lt;P&gt;     NOT_IN_SAME_SYSTEM = 107&lt;/P&gt;&lt;P&gt;     NOT_CHANGEABLE     = 108&lt;/P&gt;&lt;P&gt;     NOT_FOUND          = 109&lt;/P&gt;&lt;P&gt;     INVALID_VALUE      = 110&lt;/P&gt;&lt;P&gt;     SHMPRF_ERROR       = 111&lt;/P&gt;&lt;P&gt;     OTHERS             = 112.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find any documentation about how this function works, but it does work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2005 13:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/turning-sapgui-user-scripting-on-and-off-in-code/m-p/1057036#M90676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-20T13:46:49Z</dc:date>
    </item>
  </channel>
</rss>

