cancel
Showing results for 
Search instead for 
Did you mean: 

Download to file (.xls) problem

Former Member
0 Kudos

I am running my application in 2004s Environment. It is throwing ClassCastException with the below code. Class IWDModifiableBinaryType is deprecated. Is there any way i can get the same functionality.

IWDAttributeInfo mAttInfo =

wdContext.getNodeInfo().getAttribute("DataSource");

IWDModifiableBinaryType mBinaryType =

(IWDModifiableBinaryType) mAttInfo.getModifiableSimpleType();

Is there any ready to use functionality for this. Your answers are highly appreciated.

Regards,

Learner

Message was edited by:

SAP Learner

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If u r using this for file upload/Download .You can use IWDResource instead of IWDmodifiableBinaryType

https://help.sap.com/javadocs/NW04S/SPS09/wd/com/sap/tc/webdynpro/progmodel/api/IWDModifiableBinaryT...

Answers (1)

Answers (1)

former_member186148
Active Participant
0 Kudos

Hi Learner!

What functionality do you need?

If you want to save a dynpro table to Excel file, look this blog:

/people/bertram.ganz/blog/2007/05/25/new-web-dynpro-java-tutorials--uploading-and-downloading-files-in-sap-netweaver-70

If you want to download Excel file from your database, see this thread, especially last post:

Hope it helps.

Regards, Lev