I need to display image document stored on server on welcome view.
For that, I have added MIME object after Importing that image. Then, created image in RootUIElementContainer of 'Welcome View' and does the mapping in context tab. After this, in the Method Tab added the following code in WDDOINIT --
DATA: MR TYPE REF TO IF_MR_API, CONTENT TYPE XSTRING. MR = CL_MIME_REPOSITORY_API=>GET_API( ). MR->GET( EXPORTING I_URL = 'sap/bc/webdynpro/sap/zpicture/J1.jpg' IMPORTING E_CONTENT = CONTENT ).
Finally, I did context mapping in windows.
Now, saved and activated. But, when I test-run it data does not come up.
Hence, will anyone will give me lead as to where I'm wrong or better any link for that purpose.