Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Not able to read file from application server

Former Member
0 Likes
1,480

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,089

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,089

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

Read only

0 Likes
1,089

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

Read only

former_member150733
Contributor
0 Likes
1,089

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

Read only

Former Member
0 Likes
1,090

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

Read only

Former Member
0 Likes
1,089

Hi all,

thread closed.

Thanks

Sruthy