With SAP Application Interface Framework, you can import and process files. A file can be uploaded using the report for uploading files. To be able to upload files, the following entities must be in place:
- A RAW structure/DDIC structure matching the structure of the file: Create a DDIC structure representing the structure of the file. The structure must contain a structure matching the fields of the file. If the file contains a table of entries, the DDIC structure must contain a table with the structure containing the fields of the file as line type. This structure is used as the raw structure in the SAP Application Interface Framework interface.
- An SAP structure defined by the processing functions in the system: Create or reuse an SAP structure. The subsequent processing within the SAP Application Interface Framework determines the creation or reuse of an SAP structure.
- An SAP Application Interface Framework interface: Set interface engines. The Application and Persistence Engines are set to XML. The Selection Engine is set to Index Tables, and the Logging Engine uses the Application Log.
- Define structure mappings and actions: Map the RAW to the SAP structure, trigger the follow-up process structure, and trigger the follow-up process.
- A file adapter configuration: Create the file adapter configuration. There are no default settings for uploading a file. To read a file from the system, the minimum information required is the file type, file content, and text type. To map the file to the interface, the structure name and the field name, where the file content is moved to during the upload, is required.
The imported file results in one or more SAP Application Interface Frameworks messages. The mapping of the file content to one or multiple SAP Application Interface Framework messages relies on the file adapter configuration, interface/structure settings, and upload parameters.