Show TOC

Background documentationmime-download Macro Locate this document in the navigation structure

 

You use the mime-download macro to transfer MIME data from the SAP system to the ITS during PBO.

Syntax Syntax

  1. mime-download
    mimedata          (in,ITAB)
    mimedata_Length   (in,NUM)
    mimetype          (in,CHAR)
End of the code.
Parameters

Parameter

Description

mimetab

Internal table with an arbitrary structure.

The mime-download macro loops through the rows of the internal table and sends the contents of each internal table component as part of the MIME data to the Web browser.

mimelength

Length of the data to be sent to the Web browser.

mimetype

MIME type.

Example

Suppose you want to send an Excel spreadsheet from SAP system to the ITS. You have read the spreadsheet data from an SAP system database into an internal table called mimetab and set the value of mimelength. To transfer the data, you use the following code fragment:

Syntax Syntax

  1. mime-download mimetab mimelength 'application/excel'.
End of the code.

The ITS sends the downloaded MIME data to the Web browser without generating an HTML template. Only one mime-download is possible during PBO processing.