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

F4 for selecting a folder on the applicationserver

Former Member
0 Likes
1,073

Hello!

I want to program an F4-help for selecting a FOLDER on the application server.

With the function F4_DXFILENAME_TOPRECURSION you are able to select a file on the applicationserver but I need to select a FOLDER.

Do anybody know how I can implement this kind of F4-help?

Greez Flo

Hello!

I want to program an F4-help for selecting a FOLDER on the application server.

With the function F4_DXFILENAME_TOPRECURSION you are able to select a file on the applicationserver but I need to select a FOLDER.

Do anybody know how I can implement this kind of F4-help?

Greez Flo

7 REPLIES 7
Read only

Former Member
0 Likes
1,027

Hi,

Try this.

data SEL_FOLDER type string.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE

EXPORTING

WINDOW_TITLE = 'Choose folder'

INITIAL_FOLDER = 'C:\'

CHANGING

SELECTED_FOLDER = SEL_FOLDER.

CALL METHOD cl_gui_cfw=>flush.

Svetlin

P.S. Remember to award points for helpful answers.

Message was edited by: Svetlin Rusev

Read only

0 Likes
1,027

Hi!

This can not solve the problem, because I need to select a folder from the server not from the local computer.

Greez Flo

Read only

Former Member
0 Likes
1,027

Hi,

Try this.The FM <b>CFX_BI_RI_CF_SELECT_FOLDER</b> may

help you.

Regards,

Siva

Read only

0 Likes
1,027

Hello!

Do you have an example for CFX_BI_RI_CF_SELECT_FOLDER?

Regards Flo

Read only

0 Likes
1,027

please refer to report

CFX_BI_TAB_TO_CFOLDERS

in 4.7 uni

regards

Read only

Former Member
0 Likes
1,027

Hi,

Check this link,

<u>http://www.sapdevelopment.co.uk/file/file_getdirfiles.htm</u>

Hope it helps u.

Kindly reward points if u find it useful.

Thanks&Regards,

Ruthra.R

Read only

Former Member
0 Likes
1,027

Hi Florian,

Please check if you have Function Module

/SAPDMC/LSM_F4_SERVER_FILE on your system. It exactly meets your requirement .

Cheers