Skip to Content
0
Former Member
Jan 17, 2008 at 04:40 AM

Onclick F4 directory name and filename should display in different textbox

23 Views

Hi All,

I am using following FM for the list of directories on the application server....

CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'

EXPORTING

i_location_flag = 'A'

i_server = ' '

i_path = search_dir

filemask = c_fnh_mask

fileoperation = 'R'

IMPORTING

o_path = file_path

EXCEPTIONS

rfc_error = 1

OTHERS = 2.

IF sy-subrc EQ 0.

CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'

EXPORTING

full_name = file_path

IMPORTING

stripped_name = lv_source_file_name

file_path = lv_source_file_dir

EXCEPTIONS

OTHERS = 1.

endif.

actually i have two textboxes one is source directory and source filename...

when i click F4 in the text box source directory the directory name should display in source directory field and file name in source file name...

to split i called FM 'SO_SPLIT_FILE_AND_PATH' but not getting displayed ...

so can anyone help me out in this???

helpful answers will be awarded...

Thanks,

Jayshree.