Maintain Menu Items Automation through Tree View
The Recorder can record and generate artifacts that are required to automate menu items in SAP GUI for Windows (also called SAP WinGUI). It encapsulates the steps involved in automating menu items. The automation of menu items can be operated on the main window page itself. It is not required to recognize the menu item dropdown as it appears only after clicking the More button.
Menu items are available in the Tree view with the type GuiMenu. It is recommended not to change the actual name of the declared item in recording artifacts so that it can be easily located in the menu items for maintenance purposes. Later, if you want to edit the bot with a new menu item, you can access these menu items through the tree-view and declare it as shown in the following screenshot.

Then, you must add the Click activity in a workflow of automation and add a target for the declared menu item as shown in the following screenshot.
