Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Read file from server ?

Hi @,

I have a requirement where I need to read some CSV files from the server and then format it and pass it as output. How can we read the file from the server as in Upload UI only client side upload is possible .

Also I need to maintain config file kind of thing from where the details abt the location will be read and then files will be read from this particular location?

Regards

replied

In the web dynpro perspective switch to navigation tab and under your project hirarchy put your logon.properties file on following location:

src>mimes>PORTAL-INF>classes

Hopefully it will load your properties files.

Now reading XML files, I have given you the basic file reading code. There are many other classes you can use for reading files line by line etc. Even you could use XML parsing API(already available in Portal) for parsing XML files.

Regards,

Jawed Ali

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question