cancel
Showing results for 
Search instead for 
Did you mean: 

File Display

Former Member
0 Kudos

Hi all,

Here there is requirement of uploading and downloading a file. This file can be a PDF, MS Word, Excel, etc...

Uploading and Downloading is already acomplished and working fine with the Text file.

However, when we try dwonloading a MS Word or Excel file it shows the value but the formating is incorrect and hence we are not able to see the data correctly.

To be precise in a leymans language the data is garbled/incorrect.

How can we make sure the file is displays the same data in the same format as it was uploaded?

Cheers,

Kunjal

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Please describe the procedures you are using to process the files and download them. Without some details about what you are doing to the files, it is impossible to say exactly why they are becoming corrupted. Seems likely that you aren't keeping the data in binary (XSTRING) format and therefore corruption is occuring if you are moving them to strings.

Former Member
0 Kudos

Hi Thomas,

Thanks for the reply...

The i wanted to do is now done with using File download in the Web-Dynpro...

Yes, i am using the XSTRING for the content reading.

Here, the client needs to restrict the file size to a certain limit. Yesterday i tried using the Class CL_GUI_FRONTEND_SERVICES, however that didnt work for me......

Is there any way in web-dynor by which we can limit that?

Cheers,

Kunjal

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

CL_GUI_FRONTEND_SERVICES like all CL_GUI_* classes is not usable from Web Dynpro because these classes are specially designed for the SAPGUI Control Framework.

Your running in a browser so you have very limited and sandboxed access to the client filesystem. Therefore there is no way to check file sizes before uploading. You can only check the length of the XSTRING after the upload is complete.

Former Member
0 Kudos

Ok.. Thanks for the reply.. It was quite helpful.

However, there is another thing related to the same thing that i would like to ask you is:

I am working on EIC Forms and we need to add this attachments to it however, there is no standard functionality provided.

To avoid redundent data when saving, i want to make this attached form data to be saved in the Workflow.

I have not found any way by which i can pass the data from web-dynpro to either BADI in the EIC or Workflow would be really helpful.

Is there any way of doing it?

Cheers,

Kunjal