SAPGUI Scripting - What is required?

We are just starting to used SAP R/3 4.6C. Is SAPGUI Scripting an application/development add on to be installed in addition to the SAP GUI client ?. I try the script examples (....GetObject("SAPGUI")...etc) but Visual Basic raise the infamous "cannot create object error" which I understand that I dont have the ActiveX needed installed in my PC. (I check saplogon.exe and I dont have it on my PC). What do I need to installed and from where I can get it ?

Hello Victor,
SAP GUI Scripting is a subcomponent of the SAP GUI installation that you have to select during the installation process (or during the definition phase of your packages if you are using an installation server). It is part of SAP GUI as of release 6.20 so you need at least this release (but all the older releases are no longer supported anyway).
In the SAP system itself note 480149 has to be applied. You need a minimum level of SAP Kernel.
Here is the text of the note:
Symptom                                                                   
The sapgui/user_scripting parameter is imported again. If this parameter  
is set to TRUE, the scripting functions can be used with a GUI as of      
version 6.20 on the front end.                                                                               
The default value of the parameter is FALSE so that scripting to the      
system is not possible.                                                                               
Note that you must enter the values in upper case;                                                                               
There are 2 options for setting the parameter: In transaction rz11 and    
in the server profile. If the parameter is only set in rz11, the change   
is lost when you restart the server.                                                                               
Setting the parameter in the SAP system                                   
===============================================                                                                               
If possible, dynamic setting of the parameter is executed using           
transaction rz11. Specify the parameter name sapgui/user_scripting and    
select 'Display'.                                                         
Provided that the current value is set to FALSE, select the 'Change       
value' button in the toolbar. A window now appears, in which you can      
enter the new value TRUE. When you save the change, the window closes     
and the current value of the parameter changes to TRUE. This change only  
becomes effective when you log onto the system again.                                                                               
If the parameter is not found, you must import the relevant Support       
Package in accordance with the list below.                                
If the current value does not change accordingly after you have saved  
the change, it means that the kernel is too old. In this case, import  
the required kernel patch, as specified below.                                                                               
Setting the parameter in the server profile                            
======================================                                                                               
If you have not imported the Support Package, you can switch the       
scripting on if you set the parameter in the profile file of the       
application server with the following line:                              
sapgui/user_scripting = TRUE                                             
This procedure only requires the specified kernel patch level, however,  
you must restart the application server.                                 
Other terms                                                                               
Reason and Prerequisites                                                                               
Solution                                                                 
The parameter is delivered with the following kernel patches:                                                                               
o  6.10: 360                                                                               
o  4.6D: 948                                                                               
o  4.5B: 753                                                                               
o  4.0B: 903                                                                               
o  3.1I: 650                                                                               
The parameter can be dynamically activated in the following kernel       
versions, that is, without having to restart the application server:                                                                               
o  6.20 Release 6.20 and subsequent versions                                                                               
o  6.10 Release 6.10 as of patch 391                                                                               
o  Release 4.6D as of patch 972                                                                               
Best regards,
Frank

Similar Messages

  • Sapgui scripting

    Happy to meet Mr Cohr here.
    Let me tell you some comments on Sapgui scripting.
    a) The code generated is really different depending if your are using a slow or a regular lan connection. It is not that fun, I made some developments to use indexed fields instead of using names.
    schnick.schnack.scnock
    /1/2/0
    where schnick was the second control available
    schnack the third son of schnick
    schnock the first son of schnack
    it remains valid in any case.
    b) the management of session number  and connnection is not easy.
    how do you do that on your own?
    regards
    Didier

    Hi Didier,
    the problem with the low-speed-connection is a documented 'feature'. Unfortunately during a low-speed- connection the server does not send us the field names that we use to identify objects. I think according to the documentation Scripting doesn't work at all in low-speed-connection. As you noticed it's not quite that bad. The Scripting will work, but you get different Ids for your elements. These Ids follow the same concept as your solution: We use an index to identify objects on the same level of the hierarchy.
    Session and connection numbers are meaningless most of the time. They depend so much on what else you are or were doing in SAP GUI that a script relying on them will fail most of the time.
    The sample recorder generates code that will always access the first session of the first connection using app.children(0).children(0). All Ids in the scripts are then relative to this session and do not contain a session or connection number. That's ok if you work with one open session most of the time.
    We also have a property app.ActiveSession, which will return the session that is currently the topmost.
    If you need to access several sessions then it becomes difficult. You can distinguish sessions by checking the connection information in session.info or the window title, but that requires some code writing.
    Best regards,
    Christian

  • EEM: SAPGUI scripting not enabled on server

    Hi Gurus,
    I have setup SAPGUI EEM monitoring via SOLMAN 7.1 but after deployment there's an error message "SAPGUI scripting not enabled on server()-214722150:disabledByServer=True". I already checked the backend system, and the paramater of sapgui/user_scripting is set to TRUE.
    Please advise what else do I need to check in order for the SAPGUI scripting to be working in EEM? Is there any additional parameter that I need to change in the backend system?
    Thanks,
    Virgilio

    Hi Virgilio,
    See this link is usefully
    Security for the Use of SAP GUI Scripting - eCATT Security Guide - SAP Library
    Regards,
    Deva

  • What is required in the HOST and QUEUE field when ...

    Hi
    When setting up my printer, i fill the options identical to what follows:
    PRINTER:  SAMSUNG HOME
    DRIVER:    GENERAL
    BEARER:  LPR <-----------------------------( NOT SURE IF IT IS THE CORRECT OPTION TO SELECT )
    The following fields appear once LPR is selected:
    ACCES POINT : HOME
    HOST:              WHAT COMES HERE?
    USER:              SKY00BER
    QUEUE:            WHAT COMES HERE?
    ORIENTATION: PORTRAIT
    PAPER SIZE: A4
     if it helps, my printer is SAMSUNG CLX-3175FW. It is Wifi Enable and is connected to my HOME acces point.
    please do correct me if there has to be changes to the BEARER or anything else.
    i could really use some help.
    thanks in advanced.

    sky00ber wrote:
     Hi,
    What is required in the HOST and QUEUE field when setting a WIFI printer?
    When setting up my printer, i fill the options identical to what follows:
    PRINTER:  SAMSUNG HOME
    DRIVER:    GENERAL
    BEARER:  LPR <-----------------------------( NOT SURE IF IT IS THE CORRECT OPTION TO SELECT )
    The following fields appear once LPR is selected:
    ACCES POINT : HOME
    HOST:              WHAT COMES HERE?
    USER:              SKY00BER
    QUEUE:            WHAT COMES HERE?
    ORIENTATION: PORTRAIT
    PAPER SIZE: A4
     if it helps, my printer is SAMSUNG CLX-3175FW. It is Wifi Enable and is connected to my HOME acces point.
    please do correct me if there has to be changes to the BEARER or anything else.
    HELP URGENTLY NEEDED!
    I'm not sure but I give it a try.Turn your security(WPA/WEP) and Firewall temporarely off. HOST is the IP address of the printer. QUEUE can be YES or a specific amount of prints, like 1,2,3......
    If I look at the manual of your printer I see that you can find the IP and MAC addresses in the Network Configuration Report.I don't know what the USER is doing there because if there is a user then there must be a password.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • HT4108 What is required to use the video composite out on the iPhone 4.  Left and right audio works ok

    What is required to use the video composite out on the iPhone 4   The left and right audio works ok

    Please not that the iPhone uses mono channel for internal speakers, the other path that you see is not the speaker per say. It is the phone microphone. Try using headphones, you will hear both channels. If the problem still persists when using headphones, check your sound balancing in the settings. Go to setting-general-accessibility scroll down and check the slide under mono audio. It should be put at the centre for you to hear both channels ON YOUR HEADPHONES

  • Hello I am not able to published to the web using an FTP the test has a negative response  I do not know what is required in Directory/path Protocol and port

    Hello I am not able to published to the web using an FTP the test has a negative response  I do not know what is required in Directory/path Protocol and port

    If you use FTP then ftp is the protocol and 21 is the port.
    Your webhoster will tell you what path to use.
    You probably can read it in the FAQ/Help/Support pages where you host your website.
    All difficult words are explained in manuals, dictionaries or wikis.

  • TS2057 what is required to record off tv onto dvd super drive with a mac mini

    What is required to recod off TV onto a super drive hooked up to a mac mini?

    EyeTV should make it easy...
    http://www.elgato.com/elgato/na/mainmenu/home/what-is-eyetv.en.html
    Well, as far as the Recording part, then you need to burn it to a Disc, of which there are a few Apps to do it with.

  • In Material Master Screen,functionally what is Requirement Group in the MRP

    In Material Master Screen,functionally what is Requirement Group in the MRP Screen.Pls explain its functionality

    Hi,
    The safety time / actual range of coverage ensures that the planned warehouse stock covers the requirements of a defined number of days. It therefore serves as a time float and thus works alongside the safety stock, which acts as quantity float.
    The system simulates bringing the requirements forward by the specified number of days and the planning for the receipts, created for these requirements in the planning run, is also brought forward by this number of days.
    Prerequisites
    ·   You have set the Safety Time indicator in the material master record (MRP 2 View) to define whether the safety time is only to apply to independent requirements or to all requirements.
    ·    In the material master record (MRP 2 View), in the Safety Time/Actual Range of Coverage field, you have entered the number of workdays by which the requirements are to be brought forward.
    ·    If, in addition to this actual range of coverage, you also want to define a different number of workdays in certain periods or a safety time less than one day then, in Customizing for MRP in the activity Define Period Profile for Safety Time/Actual Range of Coverage you can define a period profile and assign it to the material in the material master record.
    Regards,
    Vijay

  • What system requirement do i need to get os x lion?

    what system requirement do i need to get os x lion? i got mac os x 10.4.11 right now

    Well the primary reason is because it's what Apple recommends. When users vary from the manufacturers solutions is when they have problems. Apple makes it very clear what the system requirments are when they publish:
    General requirements
    Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or Xeon processor
    2GB of memory
    OS X v10.6.6 or later (v10.6.8 recommended)
    7GB of available space
    Some features require an Apple ID; terms apply.

  • PythonWin and SAPGUI Scripting

    I was hoping that somebody else might have posted some examples of SAPGUI scripting and Python(Win) - but I couldn't find any.
    Here is a very small example of SAPGUI Scripting with PythonWin. It might serve as a quick start for others who might also share an interest in Python and GUIscripting.
    In short - I've got so far as to get basic manipulation working.
    import win32com.client
    False, True = 0 , -1
    app = win32com.client.Dispatch("Sapgui.ScriptingCtrl.1")
    conn = app.OpenConnection("D47", True)
    At this point the SAPGUI opens with the initial logon screen of the system. A connection has been created. I enter my user ID and password
    >>> print conn.Id
    returns /app/con[0]
    >>> ses = app.FindById("ses[0]")
    >>> ses.CreateSession() "opens up a new session Good!
    >>> ses.SendCommand(Command="/nIW31") "starts Tx IW31
    >>> ses.StartTransaction(Transaction="IW31") "start IW31 also
    >>> window = ses.activeWindow
    >>> print window.Id
    /app/con[0]/ses[0]/wnd[0]
    start SE38...
    >>> field = window.FindByName(Name="RS38M-PROGRAMM", Type="GuiCTextField")
    >>> print field.Id
    /app/con[0]/ses[0]/wnd[0]/usr/ctxtRS38M-PROGRAMM
    So - it seems that basic manipulation works OK
    Next step is to try some useful...
    I'll let you know how it goes..
    Andrew
    Message was edited by: Andrew Barnard
    Incorporated successful code and removed some questions which I've now solved myself. (The successful code covers the questions!).

    Further to the above, I've now been able to translate and run VBS recordings within Python with only a few minor changes:
    Here is the approach I've taken:
    "// Some introductory setup..
    import win32com.client
    False, True = 0, -1
    app = win32com.client.Dispatch("Sapgui.ScriptingCtrl.1")
    con = app.OpenConnection("D47", True)
    session = app.FindById("ses[0]")
    "// Some input steps (reading from CSV files or other sources...
    "// Then the actual GUI scripting steps..
    Some "translation" hints:
    (1) A VBS recording writes session.findById. In Python it is more accurately written as session.FindById
    (2) A VBS statement such as session.findById("wnd[0]").resizeWorkingPane 132,25,false
    would be written as session.FindById("wnd[0]").resizeWorkingPane( 132, 25, False)
    similarly:
    session.findById("wnd[0]").sendVKey 0 from VBS would be written session.FindById("wnd[0]").sendVKey( 0 )
    Other than that - all seems pretty straight forward..

  • Is it possible to execute SAPGUI scripts from java program?

    Hi everyone..
         I need to develop an java applications that executes the SAPGUI script or any technique that execute set of transaction as client.
         Is it possible to execute SAPGUI scripts from java program? if so, how it can be achieved? is there any other technique to achieve above mention scenario?.
         it will be more helpful, if docs related to that are shared..
         Thanks in advance

    Oh, bummer. Would be much more convenient if I could just use iTunes for everything. Can't stand WMP. I wonder if WinAmp might be a good compromise?
    Thanks for this answer . . .
    Sharon

  • What are required feilds values for creating a sales order using va01?

    What are required feilds values for creating a sales order using va01?
    Please give examples if possible.

    Hi,
    go through this URL:
    <a href="http://web.mit.edu/cao/www/SB2002/CR/VA01.htm">http://web.mit.edu/cao/www/SB2002/CR/VA01.htm</a>
    Hope this will help you.
    Thanks
    Shiva

  • What is required to integrate Microsoft Exchange Server 2010 (On premise) to SharePoint O365?

    The client has his AD and Exchange 2010 on premise and would like to integrate with Office 365 SharePoint.
    I know it is possible to integrate SharePoint On premise to Exchange Online but how possible and what is required to create it in the opposite way while using AD and Exchange On Premise to SharePoint Office 365?
    Thanks! 

    This is not possible. The only integration point for SharePoint Online is Exchange Online.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • What is Required for Distribution of Desktop App

    Hi,
    I'm trying to figure out what is required to distribute JMF. I don't want to make users install an executable, I just want to include required JARS/data files/libraries for a streaming webcam (no audio). (I have read the README and searched all over online, but I'm still not sure)
    I create my app, and I have customizer.jar, jmf.jar, jmf.properties, mediaplayer.jar, multiplayer.jar, sound.jar in the lib folder. Although I only need the jmf.jar, and possibly the jmf.properties? I am using NetBeans.
    Anyways, I still can't get it to work on another WinXP computer. If I disconnect my camera on my computer, the app still knows what type of device camera it is looking for (vfw:Microsoft WDM Image Capture (Win32):0), but when I trying to run it on another computer with or without the camera connected , it doesn't seem to know because no devices print out when I print the list.
    Thanks for your time, I am out of ideas.
    J

    806359 wrote:
    Captfoss,
    Do you know where I can find a programmer's guide that explains the Dll's that I need to include for JMF distribution without the installer? I can't find documentation anywhere. The Windows delivery doesn't seem to include any, so I guess they are only installed with the executable installer?AFAIK, there isn't one...
    Or better yet, do you know much about DirectShow? or can you point me to a nice replacement to JMF, possibly one that has some JNI included? I just want a lightweight simple video framecapture support on Windows 7. ( I have read that JMF might not work on Windows 7 anyways) I can't believe I haven't found anything good online yet, maybe I am looking in all the wrong places.Adobe Flex and Silverlight 4 are probably the most commonly used "new" technologies for dealing with AV data... You can use C/C++/C# to use some native AV libraries, but as far as using Java, there really isn't much support for video because you really need lower-level access than Java provides to take advantage of things like hardware acceleration and such...
    So all of the Java APIs (JMF, FMJ, Quicktime for Java, etc) are essentially Java wrappers for native code... so those are the 3 things I'm aware of that do AV in Java...

  • What permissions require to create CASES (Service Module). Creating new role.

    Hi All,
    Can you please suggest me what permission require to create new case from service module. Steps is below i followed to create case and assigned to user.
    1- Created new blank role.
    2- Went in service module.
    3- Given the Create, Read, Write, Append & Append To permission to CASE entity on organization Level.
    4- Assigned this role to user.
    After assigning this role login into crm online and trying to create case. Its giving message "Insufficient Permission".
    Kindly suggest me the steps i am missing here. Want to assigned single custom created role.
    Thanks in Advance

    Hello,
    Recheck following article -
    http://www.powerobjects.com/blog/2015/02/13/access-denied-identify-fix-security-role-issue/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+PowerobjectsMicrosoftCrmBlog+%28PowerObjects+Microsoft+CRM+Blog%29
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

Maybe you are looking for