Skip to Content

Tips and Tricks: SAP GUI scripting object hierarchy view

Hello community,

a good way to work with the object hierarchy of SAP GUI scripting is to load the file C:\Program Files\SAP\FrontEnd\SAPgui\sapfewse.ocx - this is the SAP GUI scripting API - in the object catalog of Excel or another Office application. Press Alt + F11 to go to VBA. Choose menu Tools > References and press the button Browse to select sapfewse.ocx. Now press F2 to open the object catalog and choose SAPFEWSELib. You see all classes with their elements and types.

Cheers

Stefan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2013 at 12:52 PM

    Works! Thank you Stefan!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2014 at 02:30 PM

    Mr. Schnell, I am using VBA to manipulate the tcode ME23N. In this screen there are multiple tabs, however i am having difficulty ensuring that the screen is on the right tab. For example, i may be on the delivery schedule tab but i want vba to select that confirmations tab. Sometimes it works, and sometimes it does not. Sometimes when i open ME23N, it is already on the confirmations tab and it will give me an error. Can you provide any guidance? Thank you.

    Add a comment
    10|10000 characters needed characters exceeded

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.