cancel
Showing results for 
Search instead for 
Did you mean: 

need to display image from DMS

0 Kudos

Hi Experts,

I want to display image from the DMS in my webdynpro application. Please let me know how can I achive it.

My requiremnt is that to each material I have a image attached in the DMS system. So a t run time what ever material I enter I need to get it corresponding image displayed.

Thanks in anticipation.

Accepted Solutions (0)

Answers (2)

Answers (2)

sahai
Contributor
0 Kudos

hi madhu,

i had the same scenario in which i had to populate some data in a table and in a column one hyperlink was to be dere b clicking on that hyperlink another window opens wherein the dms document was shown. in short i opened CV03N in another window by my application and also filled the neccessary details requirend by CV03N.

check the following code

DATA: DOC_NO TYPE STRING,
       DOC_TYPE TYPE STRING,
       DOC_PART TYPE STRING,
       DOC_VER TYPE STRING.

 DOC_NO = LS_CTX_VN_DOC-DOKNR.
       DOC_TYPE = LS_CTX_VN_DOC-DOKAR.
       DOC_PART = LS_CTX_VN_DOC-DOKTL.
       DOC_VER = LS_CTX_VN_DOC-DOKVR.

*create URL
  CONCATENATE 'http'
  '://' host ':' port
  '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=CV03N' '%20DRAW-DOKNR=' DOC_NO ';DRAW-DOKAR=' DOC_TYPE
  ';DRAW-DOKTL=' DOC_PART ';DRAW-DOKVR=' DOC_VER
   INTO url.

*get the window manager as we are opening t code in external window.

  DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component TYPE REF TO if_wd_component.
  DATA lo_window TYPE REF TO if_wd_window.

  lo_api_component = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).

*  call the url which we created above

  lo_window_manager->create_external_window(
  exporting
  url = url
  receiving
  window = lo_window ).

  lo_window->open( ).

regards,

sahai.s

UweFetzer_se38
Active Contributor
0 Kudos

It depends, like always.

If your DMS delivers an URL, you only have to change the "source" attribute of the image element.

Else you have to read the image from your DMS into the memory and create a temporary URL.

Regards, Uwe