01-10-2008 7:43 AM
Dear All,
I want a popup for the application server from where I can select file for further processing. I have used F4_FILENAME_SERVER, but the function module is not working. It is giving a popup with the filenames but after selection of a particular file if I select the check button, it is not returning anything (coming blank). Please can you suggest anything on this.
Thanks and regards,
Atanu
01-10-2008 8:16 AM
Try using FM: /SAPDMC/LSM_F4_SERVER_FILE
*** Display Directories on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
DIRECTORY = <directory_name>
* filemask = ''
IMPORTING
SERVERFILE = P_FILE
EXCEPTIONS
CANCELLED_BY_USER = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE W016 WITH P_FILE.
ENDIF.
Kind Regards
Eswar
01-10-2008 8:10 AM
Please can anyone suggest if there is any other function module available.
Thanks and regards,
Atanu
01-10-2008 8:16 AM
Try using FM: /SAPDMC/LSM_F4_SERVER_FILE
*** Display Directories on the Application Server
CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'
EXPORTING
DIRECTORY = <directory_name>
* filemask = ''
IMPORTING
SERVERFILE = P_FILE
EXCEPTIONS
CANCELLED_BY_USER = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE W016 WITH P_FILE.
ENDIF.
Kind Regards
Eswar
01-10-2008 8:19 AM
Hi atanu,
1. use the FM F4_DXFILENAME_TOPRECURSION
2. Give the parameter I_LOCATION_FLAG = 'A' (for application server)
regards,
amit m.