sapgui_select_file
Example | 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.
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);
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.