My employer uses SAP to generate purchase order numbers. The PO number is displayed in a popup window. I need to use VBA and SAP GUI Scripting to copy the PO number (or the whole text) so that it can be pasted into Excel.
I have tried using the SAP GUI script recording tool to get the command (it doesn't record the mouse clicks to select and copy, nor the keyboard commands), and it won't let me print to One Note or Microsoft XPS Document Writer.
Any suggestions would be greatly appreciated. Image of the popup window is here: