Mentor SAP

File Adapter

Files can be uploaded to AIF. The figure explains the basic requirements.

In more detail, to upload files, the following is required:

 

The imported file will result in one or more AIF messages. If the content of the file is mapped to one or multiple AIF messages depends on the configuration of the file adapter and the interface/structure of the interface.

 

The following are required transactions:

 

File Upload

This transaction allows you to upload single files from either the application server or from a local PC. It is targeted at users that need to upload files manually. The report provides the option to display the file after upload so that the user can have a look at its content. Furthermore, if you have a flat structure, you can display the result structure before the data is transferred to AIF. This way, you can see how the data was mapped from the file to the structure specified in the file adapter configuration.

 

Transaction: /AIF/LFA_UPLOAD_FILE

Mass File Upload from Server: This transaction allows you to upload multiple files from the application server. The report can be scheduled as a regular job to read data from a predefined path and pass it to AIF. Once a file has been read, it is moved to a new folder on the application server to avoid having the same files read again. This folder can also be specified.

 

Transaction: /AIF/LFA_CHECK_SEND

The transaction for the single file upload.

File Adapter Configuration: The file adapter configuration defines which settings are used for uploading files to the SAP Application Interface Framework. For example, it defines the file type and the structure the uploaded file is moved to.

 

Block Size in Lines: If your file contains multiple data sets, you can specify how many lines are passed to one message. If you do not specify a block size, the entire file content is sent as one message.

For example, you have a file with 1000 data sets.

 

If you have multiple data sets in your file and your structure is only able to handle one data set at a time, the file upload uses an implicit block size of one. In that case, each data set results in one message.

 

Runtime Configuration Group