Avoiding Menus 

SAP menus are available for use in the Generator GUI, but selecting them does not lead to maintainable programs. SAP Automation accesses menus by their menu number (that is, their ordering in the menu bar):

Sap.MenuToSend = 6 ' &System
bOK = Sap.SendEvent

However, menu numbers in a screen are subject to change. As a result, SAP makes these recommendations:

bOK = Sap.SendKey(vbKeyF5)

To use a transaction code (instead of the menu path Logistics ® SID ® Sales ® Order ® Display), use the transaction code:

bOK = Sap.Transaction( " va03 " )

Choose System ® Status to find out the appropriate transaction code.