cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a file content in view

former_member224404
Active Participant
0 Kudos

hi team,

I have files which are already uploaded in SAP. I can read the contents of the file but

I can't find the UI element where I can display the content of the file.

I have heard that IFrame can be used to solve the purpose. But using IFrame I am only

capable to show files which are in MIME objects.

Can anybody give suggestions how to achieve it?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Quick and Dirty: place the file into the HTTP-Respond and Windows will do the rest (hopefully)

Greets

Uwe

Former Member
0 Kudos

Hi Mainak Aich,

You can also use <b>TextEdit UI</b> Element with which you can resitrict how many lines of a file you want to show to the end-user.

Regards,

Maheswaran.B

Message was edited by:

Maheswaran B

Former Member
0 Kudos

Hi,

please note that the UI element IFrame is deprecated. Depending on your need you can use Explanation, OfficeControl or InteractiveForm, for example. See also the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/15/c07941601b1d09e10000000a155106/frameset.htm">documentation</a>

Regards, Heidi

former_member224404
Active Participant
0 Kudos

Hi Heidi,

I have files which can be .doc,.txt,.ppt,.xls or .pdf. So is there any partifular UI element

which is capable to display the contents of all these kind of files?

Former Member
0 Kudos

Hmmm, one for all and all for one? ... There's the OfficeControl for .doc and .xls and InteractiveForm for .pdf and FormattedTextView for formatted text.

Regards, Heidi

former_member224404
Active Participant
0 Kudos

Thanks, Heidi. But I am not finding suitable UI element to show text files.

Former Member
0 Kudos

Hi,

have you tried

<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9d/a6884121a41c09e10000000a155106/frameset.htm">TextView</a> or <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/3b/219141c1d0ae5fe10000000a1550b0/frameset.htm">FormattedTextView</a> ?

You could also make a development request.

Regards, Heidi

former_member224404
Active Participant
0 Kudos

Hi Heidi,

When I am reading a .txt file inside SAP I am getting a set of hexadecimal values. Now

If I bind the values to the the value attribute of a textview then it only shows the hex values in it while executing. It can't translate it back to original ASCII format.

So tell me where the problem lies.

thomas_szcs
Active Contributor
0 Kudos

Hi Mainak,

Do you use IE6 or IE7? If you try it with IE7, does it still display hex values?

Best regards,

Thomas