Help Center>Studio (Connect)

Attach documents

If Winshuttle Function Module (WFM) is installed on the SAP system, you can attach documents to transactions for some t-codes that are recorded in Batch Input mode, Non-Batch with Controls mode, or Non-Batch without Controls mode. See below for a list of supported t-codes and the recording modes to use for them, as well as a list of the supported attachment file types.

If WFM is not installed on the SAP system, documents can be attached only to Transaction scripts that are recorded in GUI Scripting mode, and only the BDS attachment type is available.

Attach a document

  1. Click Add File Attachment Rows.

    advanced features group add file attachment rows

  2. Choose the method that you want to use. Winshuttle Studio v11 supports three ways to attach a document:
    • GOS: Store the business document in an archival table, so that main tables are not affected by large attachments.
    • DMS: Create an external document (URL). The attachment is stored on an external server.
    • BDS: Create an attachment. This attachment option was offered in previous versions of Winshuttle Transaction.

      Note: If WFM is not installed on the SAP system, only the BDS method is available.

  3. Map the field to the data file.
  4. Open File Explorer and locate the document that you want to attach.
  5. Copy the file path and file name.
  6. In Studio, click the Run tab.
  7. Paste the file path and name in the Location field.

Important: Upload speed depends on the network and on the SAP system.


  • AS02
  • AS03
  • CS03
  • CV02N
  • FB02
  • FB03
  • FBD3
  • FD02
  • FK02
  • IW22
  • IW23
  • KS02
  • ME22N
  • ME23N
  • ME52N
  • ME53N
  • MIR4
  • MK02
  • MM01
  • MM02
  • MM03
  • PA30
  • VA02
  • VA03
  • XD02
  • XD03
  • XK02
  • XK03

Note: To request an enhancement to incorporate new t-codes into Winshuttle Function Module, contact Support.

Document types

  • PDF
  • TIFF
  • JPEG
  • PNG
  • DOC(X)
  • XLS(X)
  • TXT

Add other document types

You can customize which document types you can attach.

  1. Open the ShuttleRule.xml file (in C:\Program Files\Winshuttle\STUDIO or in C:\Program Files (x86)\Winshuttle\STUDIO).
  2. Enter the MIME type for the document type that you want to add.

    For example, to add .mht files, enter the following:

    <TypeEntry MimeType="message/rfc822">




Maximum file size

The default maximum file size is set at 30 MB.

The tested maximum file size for attachments for web services is 20 MB.

You can change the maximum file size in the Studio Options box.

  1. Click File, and then click Options.
  2. Click the SAP Settings tab.
  3. Under Advanced, in the Document attachment limit (MB) box, type the maximum size for attached documents.

Document attachment scenarios

Sales order and material processes in SAP often include the capability to attach and upload supporting documents along with the data upload. Depending on the transaction, you might want to attach and upload the following types of documents:

  • Personnel (PA30): Social Security/national insurance paperwork, proof of residency or citizenship, work permits, passport scans, personnel photos, training certificates
  • Sales Order: Faxed orders, PDF files, invoices, POs, purchase requisitions
  • Material Master: Drawings
  • BOMs: Drawings
  • Customer: Credit reference, registration certificates
  • Vendor: Credit reference, registration certificates

You can also attach the current document to use for the next script in a chain. For example, you can run an FB50 script to return document numbers and then link it to an FB03 script, with the data file as an attachment so that FB03 can use the document numbers and return the attachment and run logs to that data file.

Note: This is not available for scripts that use the data file type XML Form.

  1. Record and map the first script.
  2. Record the second script and map it to the data file that you used for the first script.
  3. Click Add File Attachment Rows, and click Use Current File.
  4. Save and close the second script.
  5. In the first script, click the Run tab, and then click Chain Scripts.
  6. Add the second script to the chain.
  7. Run the first script. Studio will automatically run the second script.

    Note: The run logs from the second script will not be available in the Excel file that is attached to the SAP document.