Skip to Content
author's profile photo Former Member
Former Member

how can we display photo of particular person on webdynpro abap view

hello gurus,

i am very new to webdynpro abap.i have one requirement.could any one can suggest me to overcome my requirement.

in my requirement i have one that view i need to display one photo image which ever saved on my desktoop.if i click on save button i should generate one doc number and update what ever the photo image i have displayed in the view against this doc number.after some time if give the doc number in to docnumber field and click on display button it should display what ever the photo we have saved previously against this doc number.this is my exact requirement.i think for this we need to maintain one Z table to stroe the photo and respective doc.number.for this how can we stroe photo against doc number in ztables.what is the type i supposed to give for photo image field.

could you please any one suggest me on this and could any one send me the sample code if possible.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 18, 2011 at 04:27 AM


    Yes you have to take Ztable with doc number and image. for image take data type RAWSTRING in Z Table,

    take File upload UI in View and bind data source to context attribute which has the type Ztable-image .

    After uploading .,

    now take image UI Element in View and Fetch image from Z Table and bind it to image UI.,

    hope this helps u.,

    reply if you need some other clarifications.,

    Thanks & Regards,


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 18, 2011 at 09:41 AM

    Hello Babu,

    I doubt whether you can directly display the image from your desktop into the webdynpro application using Image UI Element. Only solution what I can think of is to load the image into the MIME folder and then bind the path of image in the Source property of the image UI element. But if you ask me this is not a good solution. Let me propose my solution. If no one get back to issue with better approach then you can follow the same

    1. whenever the image the is uploaded from the desktop, create this image in the MIME folder ( you search in SDN for creating objects in MIME folder )

    2. then bind the path of the image in Mime folder to the Source property of the Image UI Element

    3. Once the image is persisted in the DDIC table, delete the image from the MIME folder.

    4. to persist the image in DDIC table, create an attribute of type RAWSTRING.

    5. Whenever you want to display image from DDIC table into the UI, then again create the image in MIME folder and delete the image from MIME folder when you are existing from the application.

    Alternative would be to use the Mime repository for storing the image and in the DDIC table just maintain the Mime folder path for the document number.

    Hope this helps you.

    BR, Saravanan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.