cancel
Showing results for 
Search instead for 
Did you mean: 

Sap selectors in blueprism

NidhiMehata
Level 3
How to give regex selectors for sap elements

eg:
For field where tcode is entered, the selector is
/app/con[0]/ses[0]/wnd[0]/tbar[0]/okcd

How can we give regex for conn number, sesion etc
Setting the id to "Regex" or "Wildcard" and giving id as app/con
  • /ses
  • /wnd
  • /tbar[0]/okcd does not work


    Similar question: https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=97&MID=500&CommunityKey=3b501789-976c-4cfa-b9db-88307c6a0a86&tab=digestviewer&ReturnUrl=%2Fcommunities%2Fcomm...
  • 4 REPLIES 4

    Hi Nidhi,

    To be frank it will not work properly as Regex and Wid card is very unstable to use in App Modeller. If you want to use wild card it's better just to use in one parameter not in all.

    like "/app/con[0]/ses
  • /wnd[0]/tbar[0]/okcd
  • "
    Regards,
    Amlan Sahoo

    EmersonF
    MVP
    @NidhiMehata , you can do that "/app/con[0]/ses
  • /wnd[0]/tbar[0]/okcd"
  • , and run a loop to find the right element, but I don't understand why you don't use SAP Script.​​​​
    Sr Cons at Avanade Brazil

    EVIPUTI
    MVP
    Its better to do SAP scripting here . I have copied the below earlier when i wanted to achieve the same from some article or post (don't remember exactly ) but yeah see if this helps you .

    For SAP automation we need to do some pre config with SAP
    Just create new SAP Object in blue prism
    and start spying element using SAP Mode .
    SAP Config Guide is available on internet easy. just refer the enable client side scripting section from it

    Enabling SAP Spy Mode
    To enable SAP spy mode, Blue Prism requires that both client- and server-side scripting are properly enabled.
    i. Enabling Client-Side Scripting
    • Start the SAP Logon and log in to the SAP server.
    • Click the 'Customize Local Layout' toolbar button (ALT+F12).
    • Click Options and in the GUI Options screen select the 'Accessibility and Scripting' node
    • In the ‘Accessibility’ node ensure that the ‘Use Accessibility mode’ option is enabled.
    • In the 'Scripting' node ensure that the ‘Enable scripting’ option is the only option set. Notifications must be switched off to prevent popups from blocking the spy mode.
    o NOTE: If the options 'Notify when a script attaches to SAP GUI' check box and the 'Notify when a script opens a connection' are left checked then when you spy an element in the SAP interface you will see the message “A script is trying to attach to the GUI” every time you attempt to click on it. If you see the message “Scripting support is disabled by the user” then the ‘Enable scripting’ option has not been checked.
    • Save the settings and restart the SAP GUI. The client-side settings have now been set.

    Enabling Server-Side Scripting
    • Start the SAP Logon and log in to the SAP server.
    • Run the ‘RZ11’ transaction (type ‘RZ11 ‘and click the green tick button)
    • Type ‘sapgui/user_scripting’ in the Maintain Profile Parameters window.
    • Click the ‘Display’ button
    • Click ‘Change Value’ in the Display Profile Parameter Attributes window.
    • Type ‘TRUE’ in the ‘New value’ field.
    • Save the settings and log out from SAP Logon.
    • Exit from the SAP Logon program (click the red cross button in the toolbar, or click the ‘X’ window button to close the window and the application). You may be prompted to save any unsaved changes, if you haven’t done so already.

    Just Configure sap and Blue prism as above instruction and start working.
    ------------------------------ Vipul Tiwari Senior Process Simplification Developer Amazon ------------------------------

    dmma
    Level 5
    Hi Nidhi,
    Seems like wildcard usage in SAP elements path is not supported by the Blue prism.
    There is Idea submitted regarding this: https://community.blueprism.com//viewidea/?IdeationKey=3dbbd7de-320f-42ed-84bf-20e136028840

    Uipath seems like have that feature, so it would be great if Blue prism could support this functionality as well.
    Kind regards, [FirstName] [LastName] [Designation] [JobTitle] [CompanyName] [City] [State] [Phone]