Show TOC

mime-download MacroLocate this document in the navigation structure

Use

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

        
mime-download mimedata (in,ITAB) mimedata_Length (in,NUM) mimetype (in,CHAR)
         

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:

        
mime-download mimetab mimelength 'application/excel'.
         

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.