How to read Excel file and write to a SAP screen.
Moderators: JRL, Dorian (MJT support)
How to read Excel file and write to a SAP screen.
I have not seen any examples of how to read an Excel (or text) file and write it one row at a time (multiple cells) into an app with multiple fields in a corresponding table. In other words, load data from a file to a table in SAP. Anybody?
Hi,
Did you see these:
http://www.mjtnet.com/scripts.hts?display+118
http://www.mjtnet.com/scripts.hts?display+106
These show you two methods of grabbing data from Excel. Sending the data to the SAP screen would be a case of simulating user activity. Many many examples of that here and in the Scripts & Tips section (http://www.mjtnet.com/scripts.hts) and I recommend that you read the getting started guide in the documentation which will acquaint you with the concepts required for GUI automation.
Did you see these:
http://www.mjtnet.com/scripts.hts?display+118
http://www.mjtnet.com/scripts.hts?display+106
These show you two methods of grabbing data from Excel. Sending the data to the SAP screen would be a case of simulating user activity. Many many examples of that here and in the Scripts & Tips section (http://www.mjtnet.com/scripts.hts) and I recommend that you read the getting started guide in the documentation which will acquaint you with the concepts required for GUI automation.
MJT Net Support
[email protected]
[email protected]
Those links have changed. Here are the new links with examples of reading from Excel:
http://www.mjtnet.com/forum/viewtopic.php?t=1470
http://www.mjtnet.com/forum/viewtopic.php?t=1482
http://www.mjtnet.com/forum/viewtopic.php?t=1464
As for simulating user activity there are literally thousands of examples of this littered around this site as that is the most common task. For that I would advise looking at the "Scripting Windows for Beginners" section of the help file which explains the most common GUI automation concepts. Then look at SetFocus, Send Character/Text, Press/Release, WaitWindowOpen and other window commands.
What you are wanting to do - reading from Excel and sending data to a window - is a very common scenario. You should find lots of help here. Follow the beginners guide as recommended above, then sketch out the process manually and you'll be half way there then ask questions here if you get stuck at any point.
http://www.mjtnet.com/forum/viewtopic.php?t=1470
http://www.mjtnet.com/forum/viewtopic.php?t=1482
http://www.mjtnet.com/forum/viewtopic.php?t=1464
As for simulating user activity there are literally thousands of examples of this littered around this site as that is the most common task. For that I would advise looking at the "Scripting Windows for Beginners" section of the help file which explains the most common GUI automation concepts. Then look at SetFocus, Send Character/Text, Press/Release, WaitWindowOpen and other window commands.
What you are wanting to do - reading from Excel and sending data to a window - is a very common scenario. You should find lots of help here. Follow the beginners guide as recommended above, then sketch out the process manually and you'll be half way there then ask questions here if you get stuck at any point.
MJT Net Support
[email protected]
[email protected]