Show TOC

Function documentationINFILE Prompt() Command Locate this document in the navigation structure

 

This command is used to prompt the user for a file to import.

Syntax: PROMPT(INFILE, [variable], [label], [mask])

Where

Means

Default Value

INFILE

One or more data files

n/a

[variable]

The name of the returned variable

%FILE%

[label]

The text to display to the user

Please select a file.

[mask]

The file types to display in the selected folder

Data files (*.txt), *.txt, All files(*.*),*.*

The INFILE prompt command supports file names stored on the Application Server and FTP. The qualified path and file name need to be entered, for example, \uxcikf1\usr\sap\TEMP\file.csv.

Example

PROMPT(INFILE,%FILE%,"Test for INFILE:",”Data files (*.txt), *.txt, All files(*.*),*.*”,)

Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or by its gross negligence.