on 08-30-2011 8:18 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.