2009 Aug 13 2:01 PM
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
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.
2009 Aug 13 2:08 PM
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.
2009 Aug 13 2:12 PM
For presentation server u can use class cl_gui_frontend_services=>file_open_dialog
Regards,
lakshman.
2009 Aug 13 2:14 PM
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
2009 Aug 13 2:20 PM
Hi ,
Check this FM to get the path '/SAPDMC/LSM_F4_SERVER_FILE'. for application server.
Regards,
KSR
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |