2007 Jun 19 11:06 AM
Hi,
I have written a file to the tmp directory on the application server, with the .dat extension.
I am however unable to read the file. I get a message, "Unable to display this file". The "useable file" flag is not set which is probably the reason behind the file not opening.
I dont know how this flag is set, and how the file can be read.
If anyone knows, please reply.
Thanks,
Sruthy
2007 Jun 19 1:19 PM
HI,
selection-screen begin of block b1 with frame .
PARAMETER : FILE(100) lower case.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = '.'
MASK = ' '
MODE = ' '
TITLE = ' '
IMPORTING
FILENAME = FILE
RC =
.
data file1 type string.
file1 = file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = file1
TABLES
DATA_TAB = ti_recORD[].
end-of-selection.
loop at ti_record.
write:/ ti_record.
endloop.
<b>Reward points</b>
Regards
Hi,
I have written a file to the tmp directory on the application server, with the .dat extension.
I am however unable to read the file. I get a message, "Unable to display this file". The "useable file" flag is not set which is probably the reason behind the file not opening.
I dont know how this flag is set, and how the file can be read.
If anyone knows, please reply.
Thanks,
Sruthy
2007 Jun 19 11:10 AM
hi Sruthy,
I guess there are no relevant authorizations to read the file from the application server for your ID talk to basis guy in this reagard.
Regards,
Santosh
2007 Jun 19 1:07 PM
Hi Santosh,
I checked transaction SU53, and there is no authorization object assigned against my id. No restrictions have been mentioned.
I am able to write a file to the application server and delete it as well, but I am not able to read the file.
If it is an authorization issue, it should also be applicable for writing and deletion of the file.
Thanks,
Sruthy
2007 Jun 19 1:15 PM
If you have authorisation you can manually verify if the file is actually present in the application server in the directory you specified.
T.code to do that is AL11
Regards,
Anish
2007 Jun 19 1:19 PM
HI,
selection-screen begin of block b1 with frame .
PARAMETER : FILE(100) lower case.
selection-screen end of block b1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR FILE.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = ' '
DEF_PATH = '.'
MASK = ' '
MODE = ' '
TITLE = ' '
IMPORTING
FILENAME = FILE
RC =
.
data file1 type string.
file1 = file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = file1
TABLES
DATA_TAB = ti_recORD[].
end-of-selection.
loop at ti_record.
write:/ ti_record.
endloop.
<b>Reward points</b>
Regards
2007 Jun 19 1:46 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |