Back to

Running scripts

Windows scripting

With Windows scripting, which is enabled through GUI scripting, TRANSACTION records the Windows file selector dialog box in transactions that allow files to be attached. The file location can be mapped to an Excel location. When you run the transaction, the file is selected from the specified location and the attachment is created.

To upload an attachment, the field must still be mapped to the Excel column you want in the mapper. The file path is Windows_Dialog_file with the default value as untitled. TRANSACTION sees only the dialog box; the name is added from the corresponding field in the Excel file.

A file name field is always recorded in the mapper, whether a file was chosen in the dialog box or not. If you don’t want to upload a file, disable the dialog box fields. If you want to upload a file, map the field to an Excel column.

Limitations:

Also in this section

Running multiple or linked files

Scheduling runs

Run options, troubleshooting errors, and Launch GUI

Advanced run settings

Writing Headers

Publishing macros in an Excel workbook

Uploading long text

Uploading characters in Japanese to SAP