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

FM - for Application Server Files

Former Member
0 Likes
859

Hi Experts,

My requirment is <b>"when i click the selection screen parameter, i want to display the total directories existing in Application Server"</b>.

Thanks in advance.

Regards

Rams

1 ACCEPTED SOLUTION
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
677

Hi,

SUBST_GET_FILE_LIST

gives u the list of the directories of the application server.

and for the F4 option u can use this F.M

F4_DXFILENAME_TOPRECURSION

The detail description for it is...

*Popup to select one file from the given application server directory (pattern allowed).

*(Can be used also for selecting file on presentation server: calls WS_FILENAME_GET)

*Parameters: I_LOCATION_FLAG={A|P|space};

  • if I_LOCATION_FLAG is blank then popup to choose Appl./Present.; if I_SERVER='?' then popup to select appl.server.

as in...

CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'

EXPORTING

I_LOCATION_FLAG = 'A' "(A) Server (P) Presentaión

  • I_SERVER = '?'

  • I_PATH =

  • FILEMASK = '.'

  • FILEOPERATION = 'R'

  • IMPORTING

  • O_LOCATION_FLAG =

  • O_SERVER =

  • O_PATH =

  • ABEND_FLAG =

EXCEPTIONS

RFC_ERROR = 1

OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Cheers,

Simha.

null

3 REPLIES 3
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
678

Hi,

SUBST_GET_FILE_LIST

gives u the list of the directories of the application server.

and for the F4 option u can use this F.M

F4_DXFILENAME_TOPRECURSION

The detail description for it is...

*Popup to select one file from the given application server directory (pattern allowed).

*(Can be used also for selecting file on presentation server: calls WS_FILENAME_GET)

*Parameters: I_LOCATION_FLAG={A|P|space};

  • if I_LOCATION_FLAG is blank then popup to choose Appl./Present.; if I_SERVER='?' then popup to select appl.server.

as in...

CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'

EXPORTING

I_LOCATION_FLAG = 'A' "(A) Server (P) Presentaión

  • I_SERVER = '?'

  • I_PATH =

  • FILEMASK = '.'

  • FILEOPERATION = 'R'

  • IMPORTING

  • O_LOCATION_FLAG =

  • O_SERVER =

  • O_PATH =

  • ABEND_FLAG =

EXCEPTIONS

RFC_ERROR = 1

OTHERS = 2

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Cheers,

Simha.

null

Read only

Former Member
0 Likes
677

hi

you can call the transaction AL11. it displays the directories on the app-server

thx

pavan

Read only

Former Member
0 Likes
677

check Function group DX_FILE

F4_DXFILENAME_TOPRECURSION--FM

p_flname like dxfields-longpath lower case, "File name

regards

prabhu