cancel
Showing results for 
Search instead for 
Did you mean: 

Maintaining Text file in WD Java Component

Former Member
0 Kudos

Hi,

I would like to know if we can maintain a text file or an excel in a WebDynPro for Java Application and read or update the data

from the list inside the WebDynPro Java application.

Best Regards

Sid

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can maintain text or excel file as part of WD Project in the following folder

Switch to the Navigator vies and paste (create) your file here

src/mimes/Applications/<Application Name>

Ex:

src/mimes/Applications/com.sap.demo.testcomp.testapp.TestApp

To read this file

String fileName = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), "Your Filename.extension");

Make use of jxl or poi to read and write to xls file and use normal java file andling to the text file

Regards

Ayyapparaj

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

1)go to navigator tab

2)And go to ur project and copy ur ptext file under src>packages>com.sap(like that)(ur own folder)

Regards

Hazrath

Former Member
0 Kudos

Hi Sid,

Can u elaborate more on ur requirement? What data u want to store in the file ?

regards

Sumit