cancel
Showing results for 
Search instead for 
Did you mean: 

Read file in DTR

Former Member
0 Kudos

Hi,

I have a file in DTR, how to read this file in my Java code?

T&R

Harsha Hegde

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Harsha,

DTR supports Web Folder interface.

You can probably use it to access from java code.

This note shows how to open DTR structure as a Web Folder:

SAP Note Number: 855537

Another option is to use DTR command line clients.

http://help.sap.com/saphelp_nw04/helpdata/en/79/6c9f3f12e1eb0ce10000000a114084/frameset.htm

It is strange that you need to read a file from DTR from Java code.

Usually there is a need to read files deployed on WAS, OS FS, or from the DB.

DTR is for storing the source code, the metadata, but not data.

Regards,

Slava

Former Member
0 Kudos

Hi Slava,

I shall look into the note. The need for me to read a DTR file is that, I have a xml file which resides in the same pckage as my java code file. I need to read the content of the file, is there any other way of doing this?

Thanks

Harsha

Former Member
0 Kudos

Harsha,

In this case you are not reading an XML from the DTR, but you will be accessing and reading a resource deployed on the SAP Web Application server.

There are plenty of posts on this in SDN in Portal Development section.

Regards,

Slava