cancel
Showing results for 
Search instead for 
Did you mean: 

How to Read a .txt file kept on server in WEB UI ?

suchita_phulkar
Active Contributor
0 Kudos

Dear Experts,

We have a file kept on shared drive which is a text file and has just one entry which is a key-guid.

I need to read this guid, append it to a URL as URL parameter and then open the broswer with this URL on click of a button.

I can manage rest of the things but i am stuck up at reading the file kept on server. I tried using GUI_UPLOAD. It worked fine when i tried in SE38 with a sampe file kept on server. But when i implemented the same code in DO_INIT_CONTEXT, it failed giving me a dump of NULL OBJECT REFERENCE.

Can anyone please guid me as how can i read the Key-guid kept in the file in WEB UI ?

Thanks & Regards,

Suchita

Accepted Solutions (0)

Answers (2)

Answers (2)

suchita_phulkar
Active Contributor
0 Kudos

used FM 'RZL_READ_FILE'

Former Member
0 Kudos

Hi,

In ABAP you can read from a file using OPEN DATASET <filename> then using read statement on it.

Did you try above way??

Regards,

chandan