Share this page

# sapgui_select_file

General Object Functions

Selects a file to populate the next Open File dialog box.

    int sapgui_select_file(const char *filepath);

filepath | The full absolute path to the file.

sapgui_select_file emulates the selection of a local or remote file.

## Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.

## Parameterization

You can parameterize all string (char type) arguments.

## Example

This following example selects File1.dat to upload to the AUT.

sapgui_select_file("C:\\MyFiles\\File1.dat");
sapgui_send_vkey(F4,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1029",
END_OPTIONAL);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: