Hi,
I'm trying to copy either a whole line from the Detail List or any of the individual columns and put them into an Excel sheet that is already open via VBA and Excel 2010. The interface between Excel and SAP is working fine - I can make Excel get to the Material Document List -
session.findById("wnd[0]").sendVKey 48
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").selectedRows = "0"
That snippet gets me to the Detail List where I can see the data I need. Right clicking in the Material field gives the option for Copy Text but the last thing that it does is just open that context menu but the script won't record the pressing of the 'copy text' option.
Would anyone have a suggestion as to how I can manipulate the data from MB51 without dumping the whole report to Excel - I only need the previous days information so for example, today (7/28), I would need to just pull all entries from 7/27 and do some calculations in Excel to them for use in another macro.
I was hoping there was something like a VKey I could send to do the copying - for example a VKey that represented CTRL-C to get the line to the Clipboard.
Thanks for any help - I realize I didn't include a bunch of code but I'm not able to do that due to work policies.
Regards,
Brian