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

file path

Former Member
0 Likes
661

Hi,

In my selection screen, i want to get a pop-up with choice "application server" and "presentation server" when i hit F4 for my file path field.

if I select "application server" then in f4 search I should see all application storage path and if I select "presentation server" then the presentation path should appear in the same way.

can any one help me on this

4 REPLIES 4
Read only

rainer_hbenthal
Active Contributor
0 Likes
602

How long do you want to wait until all file path regardless of application or presentation server are read in and displayed?

This is really not a good idea.

Read only

former_member209217
Active Contributor
0 Likes
602

For presentation server u can use class cl_gui_frontend_services=>file_open_dialog

Regards,

lakshman.

Read only

Former Member
0 Likes
602

Hi,

Use this code

DATA : lt_file     TYPE filetable,
         ls_filename LIKE LINE OF lt_file,
         l_return    TYPE i.

*--> Pop-up for file directory
  CALL METHOD cl_gui_frontend_services=>file_open_dialog
    EXPORTING
      initial_directory = 'C:\'
    CHANGING
      file_table        = lt_file
      rc                = l_return.

  IF l_return EQ 1.
    READ TABLE lt_file INTO ls_filename INDEX 1.
    IF sy-subrc EQ 0.
      pc_infile = ls_filename-filename.
    ENDIF.
  ENDIF.

Regards

Milan

Read only

Former Member
0 Likes
602

Hi ,

Check this FM to get the path '/SAPDMC/LSM_F4_SERVER_FILE'. for application server.

Regards,

KSR