Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

cl_gui_frontend_services=>file_save_dialog?

Hi All,

Im trying to use the below method, what are all the parameters need to fill and hw to declare those parameters.

CALL METHOD cl_gui_frontend_services=>file_save_dialog

  • EXPORTING

  • WINDOW_TITLE =

  • DEFAULT_EXTENSION =

  • DEFAULT_FILE_NAME =

  • FILE_FILTER =

  • INITIAL_DIRECTORY =

  • WITH_ENCODING =

  • PROMPT_ON_OVERWRITE = 'X'

CHANGING

filename =

path =

fullpath =

  • USER_ACTION =

  • FILE_ENCODING =

  • EXCEPTIONS

  • CNTL_ERROR = 1

  • ERROR_NO_GUI = 2

  • NOT_SUPPORTED_BY_GUI = 3

  • others = 4

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Puppy.

Former Member
Former Member replied
data:
    lws_filename     type string,    
    lws_filepath     type string,
    lws_tot_filename type string.

  call method
    cl_gui_frontend_services=>file_save_dialog
   EXPORTING
      WINDOW_TITLE = 'TITLE'
    changing
      filename             = lws_filename
      path                 = lws_filepath
      fullpath             = lws_tot_filename
    exceptions
      cntl_error           = 1
      error_no_gui         = 2
      not_supported_by_gui = 3
      others               = 4.

  if sy-subrc ne 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

Regards,

Gurpreet

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question