Application Development 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: 

Reading UNIX file

Former Member
0 Kudos

Hi all,

Is it possible to select the UNIX file on selection screen as we do for the normal files which are present on local server?

Thanks.

Warm regards,

Harshad.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Yes it is possible. Use the function module 'F4_DXFILENAME_TOPRECURSION'

call function 'F4_DXFILENAME_TOPRECURSION'

exporting

i_location_flag = ' '

i_server = lv_servername

i_path = '//'

filemask = '.'

fileoperation = 'R'

importing

  • O_LOCATION_FLAG =

  • O_SERVER =

o_path = p_unix

  • ABEND_FLAG =

exceptions

rfc_error = 1

others = 2.

Regards,

S.Dakshna Nagaratnam

3 REPLIES 3

Former Member
0 Kudos

Hi,

I hope it is possible....For that you need to have maintain RFC connection in SM59 Transaction and then try to execute the Function Module SXPG_COMMAND_EXECUTE.

regards

thiru

Former Member
0 Kudos

Yes it is possible. Use the function module 'F4_DXFILENAME_TOPRECURSION'

call function 'F4_DXFILENAME_TOPRECURSION'

exporting

i_location_flag = ' '

i_server = lv_servername

i_path = '//'

filemask = '.'

fileoperation = 'R'

importing

  • O_LOCATION_FLAG =

  • O_SERVER =

o_path = p_unix

  • ABEND_FLAG =

exceptions

rfc_error = 1

others = 2.

Regards,

S.Dakshna Nagaratnam

0 Kudos

That was great thank you so much sir