on 06-12-2014 11:50 AM
Hi.
I want to check before uploading an excel file from local system to the WD application that the file is opened or not.
if file is opened i need to display an error message.
Plz suggest me solution for this.
Thanks,
Venkata
You can use the FM 'ISHMED_IS_FILE_OPEN' in the 'action' for the button to upload:
DATA: ret TYPE i.
CALL FUNCTION 'ISHMED_IS_FILE_OPEN'
EXPORTING
ss_wavfile = 'BOOK1.XLS' " File name
ss_wavfilepath = 'C:\DOCUMENTS AND SETTINGS\AWI1COB\DESKTOP\' " File path
IMPORTING ss_ret = ret.
IF ret = 1.
MESSAGE 'File is already opened. Close the file' TYPE 'E' DISPLAY LIKE 'S'.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkata,
Unfortunately, we do not have any provision to check if a file is open for editing while uploading file using FILE UPLOAD ui element.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.