cancel
Showing results for 
Search instead for 
Did you mean: 

Display different types of file formats from contents server on web UI

manali_gunjal
Explorer
0 Kudos

Hi,

I have to read different types of documents from content server and display it in web page using webdynpro abap.

Different types of documents are : Tif, Jpeg, BMP, PNG etc. need to be convert into gif format and display

Txt files as it is.

PDF files as it is.

Microsoft office documents as it is.

ALF files i.e. printlists to be shown on web page.

Please anyone has any information regarding this let me know ASAP.

Thanks & Regards,

Manali

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi ,

u can use Mimes for tht

right click on the webdynpro component where u want this image or other doc to to be uploaded.

click on Create >> MIME object >> Import and select file , a pop up appears click on save button.

Once we uploaded the pdf file in to the WebDynpro component an entry named MIMEs appears,

we can see the file under the mime's.

I hope it wud help

regards,

amit

manali_gunjal
Explorer
0 Kudos

Hi Amit,

Thanks for quick reply. But it will not solve my problem.

I have to read documents which are already stored in content server of SAP.

do you have any idea how to create mimes dynamically?

I am having problem in displaying printlists in webdynpro abap.

Thanks & Regards,

Manali

Edited by: Manali Gunjal on Nov 30, 2009 11:58 AM

Former Member
0 Kudos

Check out these inks -

Edited by: Lekha on Nov 30, 2009 12:12 PM

Former Member
0 Kudos

hi ,

pls refer the below thread :

n check wid thomas reply in the thread :

Create the cached response object that we will insert the content

Well you can manipulate the MIME content at runtime by using the API: CL_MIME_REPOSITORY_API. However if your content is temporary, it is more efficient to just place the content directly into the ICM cache. You don't have the overhead of having to both write and then delete it from the database. Here is an example of how you can do this:

I hope it wud be helpful

rgds,

amit

manali_gunjal
Explorer
0 Kudos

Hi Lekha,

Other things are working fine in my application.

I need to complete following task:

1. I need to read ALF file data i.e. printlist from content server.

2. Need to display it in proper format on webpage.

Can you please help me with it.

Input for my application is just content repository id and document id of ALF file.

Thanks & Regards,

Manali

Former Member
0 Kudos

waht is the format of this ALF file...What excatly is this...Is it binary or any other format...

manali_gunjal
Explorer
0 Kudos

Hi Lekha,

Its a printlist format.

It contains two components one is DESCR and other is DATA.

for more info about descr and data check below link:

http://help.sap.com/saphelp_40b/helpdata/pt/4f/9938ff446d11d189700000e8322d00/frameset.htm

I need to display this file on webpage

Thanks & Regards,

Manali

Former Member
0 Kudos

Were you not able to convert this ALF file to binary or xml format so that you can read that file....to display it on webpge..

manali_gunjal
Explorer
0 Kudos

I am unable to do that.

Please check below link:

http://help.sap.com/printdocu/core/print46b/en/data/en/pdf/BCSRVKPRCMS/CMS_STRUCTURE.pdf

Edited by: Manali Gunjal on Nov 30, 2009 3:37 PM