Share this page

# Example: sapgui_call_method

The following example uses sapgui_call_method to invoke the method sendVKey which, when passed with a "0" argument, emulates an ENTER-key press.

sapgui_call_method is then invoked to make various calls to the SAP column tree control called shellcont/shell.

    Action() {

    // Load the sample program

        sapgui_set_ok_code("/ndwdm", LAST );
        sapgui_select_active_window("wnd[0]");

        // Press the "ENTER" key

        sapgui_call_method("wnd[0]", "sendVKey", "0", LAST );

        // Select the "SAP column tree" node

        sapgui_call_method("shellcont/shell",
            "SelectItem", "000712", "REPTITLE",
            LAST );

        sapgui_call_method("shellcont/shell",
            "EnsureVisibleHorizontalItem",
            "000712", "REPTITLE", LAST );

        sapgui_call_method("shellcont/shell",
            "DoubleClickItem", "000712",
            "REPTITLE", LAST );

        ...

        return 0;

    }

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: