05-08-2006 5:59 AM
I would like to ask if there is any FM provide similar result to that of CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
but browsing the directories in application server?
I want to open a browse directory dialog for input and return the directory path only (doesn't include file name).
Thanks!
05-08-2006 8:22 AM
Hi Gundam,
Use the following code :
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
Open the Browse Dialog Box on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
IMPORTING
serverfile = p_apath
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
No need to check for sy-subrc
ENDIF.
<b>Please mark helpful answer.</b>
Regards,
Amit Mishra
05-08-2006 6:04 AM
F4_FILENAME_SERVER
example:
parameter: p type i.
data file type IBIPPARMS-PATH.
at selection-screen on value-request for p.
CALL FUNCTION 'F4_FILENAME_SERVER'
EXPORTING
PFAD = file.
Message was edited by: Hymavathi Oruganti
05-08-2006 6:11 AM
05-08-2006 6:11 AM
F4_DXFILENAME_TOPRECURSION
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.
regards
vinod
05-08-2006 8:16 AM
Hi,
You can use /SAPDMC/LSM_F4_SERVER_FILE FM. It will work for both u can select up to path or file also.
rajkumar abbu
05-08-2006 8:22 AM
Hi Gundam,
Use the following code :
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_apath.
Open the Browse Dialog Box on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
IMPORTING
serverfile = p_apath
EXCEPTIONS
canceled_by_user = 1
OTHERS = 2.
IF sy-subrc <> 0.
No need to check for sy-subrc
ENDIF.
<b>Please mark helpful answer.</b>
Regards,
Amit Mishra