Current Position:Home > File extension for: cl_gui_frontend_services= file_open_dialog

File extension for: cl_gui_frontend_services= file_open_dialog

Update:10-11Source: network consolidation
Advertisement
Hello,
I would like to set the file extension for cl_gui_frontend_services=>file_open_dialog such that my default extension in the file open dialogue is the .csv (comma-separated value) file. May I know how can I do that?
Thanks!
Regards,
Anyi

The Best Answer

Advertisement
Hello,
Thanks for the quick reply.
Howeer, I tried to use the extension of CSV and the file dialogue opened up with .RTF (which is the default extension) instead.
Any comment on that?
Thanks!
Anyi
> HI,
>
> Here is the code
>
  DATA:  l_title TYPE string,
>          l_dfext TYPE string,
> l_dfinm TYPE string,
>          l_file  TYPE string,
> l_path  TYPE string,
>          l_fpath TYPE string.
> le = 'SAVE FILE PATH'.
>   l_dfext = 'csv'.
> l_dfinm = 'Error_Idoc'.
>
> CONCATENATE l_dfinm sy-datum sy-uzeit INTO l_dfinm
>  SEPARATED BY '_'.
>
> CONCATENATE  l_dfinm l_dfext INTO l_dfinm SEPARATED
>  BY '.'.
>
> CALL METHOD
>  cl_gui_frontend_services=>file_save_dialog
>    EXPORTING
>    window_title      = l_title
>    default_extension = l_dfext
>    default_file_name = l_dfinm
>     INITIAL_DIRECTORY = L_DIR
> CHANGING
>       filename          =  l_file
> path              =  l_path
>       fullpath          =  l_fpath
> CEPTIONS
>       cntl_error        = 1
> error_no_gui      = 2
>       OTHERS            = 3.
> s,
> Richa
  • File extension for: cl_gui_frontend_services= file_open_dialog Update:10-11

    Hello, I would like to set the file extension for cl_gui_frontend_services=>file_open_dialog such that my default extension in the file open dialogue is the .csv (comma-separated value) file. May I know how can I do that? Thanks! Regards, AnyiHello,

  • Exit CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG once I get the file name Update:10-11

    Hi I have where I have a selection screen that finds the file, you can say where to get the file. After that I need to close that window. How do I close it??? Below is an example of my program. After I choose the file and execute the program, I have

  • Error when using the method cl_gui_frontend_services= file_open_dialog Update:10-11

    Hello Experts, I am currently practicing BDC and I think the first step is to locate where my text file is. Now based on my code below, after selecting my text file nothing happens. Also, what will be my next after getting the file from a specific lo

  • Pop up coming twice while using CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG Update:10-11

    Hello All,   I am calling the method FILE_OPEN_DIALOG of the class CL_GUI_FRONTEND_SERVICES to display the pop up to select the file from the desktop.After i select the file and execute the program it displays the report and when i clcik the back but

  • Upgradtion doubt in calling cl_gui_frontend_services= file_open_dialog Update:10-11

    hi,     Im upgrading from 4.5b to ecc 6.0 in the following code the export parameter  Default extn parameter in the call method cl_gui_frontend_services=>file_open_dialog does not get displayed i,e *.xls should be there bydefault it is not there in 6

  • Server path not drive CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG Update:10-11

    Hi folks When using the CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG or WS_FILENAME_GET we some times have the server path returned. And sometimes the drive letter returned. See two examples: 1: \\blrx1\os390out\id1\test.txt 2: R:\os390out\id1\test.txt

  • Exceptions in  cl_gui_frontend_services= file_open_dialog Update:10-11

    hi when upgrading from 4.5 to 6.o Im getting the following exception When the pop up box is cancelled during the download option, a success message is displayed in 6.0 whereas an error message is displayed in 4.5. here is the code CALL METHOD cl_gui_

  • Regarding CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG Update:10-11

    I'm using CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG to replace WS_FILENAME_GET which is an obsolete function module in ECC6. WS_FILENAME_GET was making use of the file mask - ',.csv  ,.csv ,.txt ,.txt.' When I use the same string in the file_filter

  • CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG Update:10-11

    Hi Experts, I have a customized program with BDC. first My program will convert a .dbf file into .xls file. My second program executes the .xls file. The .xls file that I get from my first program will be transferred into a textbox in my second progr

  • CL_GUI_FRONTEND_SERVICES= FILE_OPEN_DIALOG causes SAPGUI to crash Update:10-11

    Hi, When I try to select a file to download or upload an LSMW project my SAP GUI freezes completely, and the only way out is to kill it via Windows task manager. After quite some research I found out that: - This happens only on some PC's (but all PC