Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding the file saving @ user required patha

Former Member
0 Likes
479

Hi,

I need F4 help on the file selection. where i can specify the path to save my file.

Please give me any FM

Thanks,

Suresh

3 REPLIES 3
Read only

Former Member
0 Likes
461

Hi ,

You can use the method file_save_dialog

of the class cl_gui_frontend_services.

The code will look some thing like


data:   l_f_file_name   TYPE string ,
          l_f_path        TYPE string ,
          l_f_full_path   TYPE string ,
          l_f_user_act    TYPE i      .

CALL METHOD cl_gui_frontend_services=>file_save_dialog
      CHANGING
        filename          = l_f_file_name
        path              = l_f_path
        fullpath          = l_f_full_path
        user_action       = l_f_user_act
  EXCEPTIONS
    cntl_error        = 1
    error_no_gui      = 2
    OTHERS            = 3
            .

Regards

Arun

Read only

GauthamV
Active Contributor
0 Likes
461

hi,

use f4_filename func module.

reward if hlpful.

Read only

Former Member
0 Likes
461

Hi Buddy,

Just use class CL_GUI_FRONTEND_SERVICES and method FILE_SAVE_DIALOG in this class to specify the file name and path. When u use this class, a pop up comes prompting you for file name and path.

Kindly check it and get back to me incase of any queries.

Dont forget to reward points, if found useful.

Thanks and Regards,

Satyesh