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

find out file path?

Former Member
0 Likes
370

Hello Friends,

I need to find out file path in local system through SAP.

Is there any class available?

I searched in cl_gui_frontend_services. no use.

file name = xxxx.doc

i need complete path ....

plese help me.

thanks

raghu

Hello Friends,

I need to find out file path in local system through SAP.

Is there any class available?

I searched in cl_gui_frontend_services. no use.

file name = xxxx.doc

i need complete path ....

plese help me.

thanks

raghu

1 REPLY 1
Read only

Former Member
0 Likes
347
REPORT GET_ARCHIVO.

DATA: filetable TYPE FILETABLE,
      rc TYPE I,
      user_action TYPE I,
      p_path TYPE STRING.

CLASS cl_gui_frontend_services definition load.

CALL METHOD cl_gui_frontend_services=>file_open_dialog
  EXPORTING
    window_title            = 'Selección de Archivo'
    default_extension       = 'TXT'
  CHANGING
    file_table              = filetable[]
    rc                      = rc
    user_action             = user_action
  EXCEPTIONS
    file_open_dialog_failed = 1
    cntl_error              = 2
    error_no_gui            = 3
    not_supported_by_gui    = 4
    others                  = 5.

READ TABLE filetable INDEX 1 INTO p_path.