In this tutorial we combine
some VB.NET functions (sending an e-mail) with the calling up of SAP GUI
scripting. First we add a new pushbutton that will process an InputScript: GuiXT
InputScript send_email_order_va03.txt: GuiXT
|
Step no. 1: Add a reference to
guinet.dll to the VB.NET project. This file is shipped with the GuiXT
setup.
Step no. 3: Read in the required data: (Please have a look the the documentation for a complete list of all possible commands: Synactive docu -> GUI Scripting in VB) VB.NET
Step no. 4: You can easily read complete tables. We will do so with the command g.GuiSession.ReadTable for the items of the order: VB.NET
Step no. 5: The data type of the table read is DataTable and needs to be converted to HTML so it can be displayed in an e-mail: VB.NET Step no. 6: Now we can send the HTML string as an e-mail: VB.NET
Result: ![]() |