06-26-2012, 06:31 PM
This error usually happens when the item you are trying to select is not available in the list.
Make sure the item you are trying to select is listed under the menu.
Can you try this alternate code.
Let me know the output.
Regards,
Ankesh
Make sure the item you are trying to select is listed under the menu.
Can you try this alternate code.
Code:
SAPGuiSession("Session").SAPGuiWindow("Create Purchase Order").SAPGuiToolbar("ToolBarControl").PressContextButton "SELECT"
SAPGuiSession("Session").SAPGuiWindow("Create Purchase Order").SAPGuiToolbar("ToolBarControl").Object.SelectContextMenuItemByText("Purchase Requisitions")
Let me know the output.
Regards,
Ankesh