Show TOC

mime-uploadpart MacroLocate this document in the navigation structure

Use

You use the mime-uploadpart macro to transfer a specified section of MIME data from the ITS to the SAP system. This is useful for handling very large MIME objects (for example, >100 KB).

Before uploading the complete file to the application server, mime-uploadpart examines the contents of very large files and allows you to read and process the MIME data in sections rather than reading everything into one huge internal table and then processing the data.

Usage

mime-uploadpart
mimeinfo_index    (in,NUM)
mimeinfo_offset   (in,NUM)
mimeinfo_length   (in,NUM)
mimetab           (out,ITAB)
         

Parameter

Description

mimeinfo_index

Index into mime-info index.

mimeinfo_offset

Start position of section of MIME data.

mimeinfo_length

Length of section of MIME data.

mimetab

Internal table into which the data is copied.

The macro accepts any internal table and copies the value of the context field to the internal table components. If one record is not sufficient, it adds additional records.

The value of mimeinfo_index is determined by calling mime-info, but you must provide values for mimeinfo_offset and mimeinfo_length.

To accommodate the data, the ITS creates as many rows as necessary in mimetab.