FILE_SAVE_DIALOG SAP Method Shows a File Save Dialog









Below is documentation, parameters and attributes of ABAP Method FILE_SAVE_DIALOG within SAP class CL_GUI_FRONTEND_SERVICES. There is also a number of example ABAP code snipts to help you use the functionality of this method.

This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name CL_GUI_FRONTEND_SERVICES into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method FILE_SAVE_DIALOG can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method FILE_SAVE_DIALOG

.

NameTypeData TypeDescriptionDefault Value
DEFAULT_EXTENSIONImportingTYPE
STRING
Default Extension
DEFAULT_FILE_NAMEImportingTYPE
STRING
Default File Name
FILE_FILTERImportingTYPE
STRING
File Type Filter Table
INITIAL_DIRECTORYImportingTYPE
STRING
Initial Directory
PROMPT_ON_OVERWRITEImportingTYPE
ABAP_BOOL
WINDOW_TITLEImportingTYPE
STRING
Window Title
WITH_ENCODINGImportingTYPE
ABAP_BOOL
FILENAMEChangingTYPE
STRING
File Name to Save
FILE_ENCODINGChangingTYPE
ABAP_ENCODING
FULLPATHChangingTYPE
STRING
Path + File Name
PATHChangingTYPE
STRING
Path to File
USER_ACTIONChangingTYPE
I
User Action (C Class Const ACTION_OK, ACTION_OVERWRITE etc)



Exceptions of Method FILE_SAVE_DIALOG

NOT_SUPPORTED_BY_GUI - GUI does not support this

Example ABAP coding


DATA: lv_DEFAULT_EXTENSION TYPE STRING,
lv_DEFAULT_FILE_NAME TYPE STRING,
lv_FILENAME TYPE STRING,
lv_FILE_ENCODING TYPE ABAP_ENCODING,
lv_FILE_FILTER TYPE STRING,
lv_FULLPATH TYPE STRING,
lv_INITIAL_DIRECTORY TYPE STRING,
lv_PATH TYPE STRING,
lv_PROMPT_ON_OVERWRITE TYPE ABAP_BOOL,
lv_USER_ACTION TYPE I,
lv_WINDOW_TITLE TYPE STRING,
lv_WITH_ENCODING TYPE ABAP_BOOL,
lv_other TYPE c.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG(
EXPORTING
DEFAULT_EXTENSION = lv_DEFAULT_EXTENSION
DEFAULT_FILE_NAME = lv_DEFAULT_FILE_NAME
FILE_FILTER = lv_FILE_FILTER
INITIAL_DIRECTORY = lv_INITIAL_DIRECTORY
PROMPT_ON_OVERWRITE = lv_PROMPT_ON_OVERWRITE
WINDOW_TITLE = lv_WINDOW_TITLE
WITH_ENCODING = lv_WITH_ENCODING
CHANGING
FILENAME = lv_FILENAME
FILE_ENCODING = lv_FILE_ENCODING
FULLPATH = lv_FULLPATH
PATH = lv_PATH
USER_ACTION = lv_USER_ACTION ).

Links to Related Class(s)

CL_GUI_F...
Full list of available SAP object classes

Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!