Back to

Advanced mapping

Attaching documents

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:

In TRANSACTION, document attachment is available for recordings in GUI scripting, and also for recordings in non-batch and batch mode. Document attachment is particularly adapted to use with forms. It is not currently available for create transactions, but is available for the following t-codes, which are defined in ShuttleRule.xml:

Recording Modes

 

 

Batch

Non batch with controls

Non batch without controls

MM01

MM01

MM02

MM03

MM03

VA03

FB03

FK02

MK02

VA03

 

 

ME53N

 

 

ME23N

 

 

XD03

 

 

FD02

 

 

XK03

 

 

PA30

 

 

CS03

 

 

MK02

 

 

The following document formats can be uploaded:

Special considerations when attaching documents

Only one document can be attached per run. It best practice is to attach only essential documents. A 5MB limit per document exists, so consider limiting the number of documents that you attach.

To attach documents

  1. In TRANSACTION, record a transaction or open a script that was made from an appropriate transaction.
  2. Open the script in the Mapper.
  3. In TRANSACTION, click Create Mapping.
  4. On the Edit tab, click Add File Attachment Rows Attach doc.

    The new row is added below the Log Column row

    file attach row.

  5. For ease of mapping, click the Basic tab. Drag the Preview column that you want to map to the Attachment Location row. Save the Excel preview file
  6. Open the Excel template in Excel. Under the Attachment Location column, add the local path to the document.
  7. Click Run. The document is uploaded to SAP.

Also in this section

Editing in the Mapper

Filtering mapper settings

Advanced looping capability

Limiting input fields

Mapping Google spreadsheets

Setting conditions: IF statements

Validating data

Validate by list

Compensating for missing SAP screens and fields

Undo and Undo All

Mapping long text

Converting data types to strings

Auto mapping

Downloading from SAP

Editing a TRANSACTION script