I have what I believe is a systems settings issue. I'm using Excel's VBA to start and run some SAP transactions during the night. Due to company policies my computer screen must be locked when I'm not present.
The code runs some SAP transactions, imports the results to Excel and then uses a subset of the result for running a new SAP transaction. The subset is imported/exported to SAP using Range("A1").CurrentRegion.copy in Excel and then pastes this into SAP SE16N - MBEW table using the Multiple Selection by Field functionality and the SAP built in Upload from Clipboard button/function:
session.findById("wnd[1]/tbar[0]/btn[24]").press
I have two computers, logging on with the same user in the same network, both running Windows 10, same SAP GUI version, same office version and with all the settings I can think of checking being verified to be equal. Both computers run the code successfully when the screen is active, but only one succeeds with the paste from clipboard functionality when the screen is locked. All other code is successfully completed by both computers when the screen is locked.
The "failure" does not throw any errors, but it "successfully" pastes nothing instead of what is copied from Excel.
Copy in Excel is working. I checked by pasting this back into Excel. "Task successfully failed"
.Select,.Activate,.Copyetc., but I know your case - I was also doing this "trick" in code working with SAP, but no such issue before. Is there any way to change this copy - paste from clipboard into SAP table value = value from your Excel?