Skip to Content
0
Former Member
Aug 24, 2011 at 09:46 AM

CL_DD_DOCUMENT problems with Logo-Displaying

39 Views

Hi there,

a strange problem raised.

I created a dd_document with class cl_dd_document and show this document on a classic dynpro in a custom_container. That works fine calling these methods:

Data:
  ip_go_dock       type ref to cl_gui_custom_container,
  ip_go_dock_0002  type ref to cl_gui_custom_container,
  ip_go_header     type ref to cl_dd_document,
  ip_repid         type sy-repid.

  ip_repid = sy-repid.


   CREATE OBJECT ip_go_dock
     EXPORTING
       container_name = 'GC_HEADER'
       repid          = ip_repid
       dynnr          = '0001'.

   CALL METHOD ip_go_header->display_document
     EXPORTING
       parent = ip_go_dock.

the Problem

At a second step I want to display the same document on a different dypro, but the graphic is lost. The generated html-code is still the same but somehow the graphic address changed and the logo is not displayed anymore.

CREATE OBJECT ip_go_dock_0002
     EXPORTING
       container_name  = 'GC_HEADER'
       repid           = ip_repid
       dynnr           = '0002'.

   CALL METHOD ip_go_header->display_document
     EXPORTING
       parent = ip_go_dock_0002.

Both dynpros deliver this html-code for the body:

<body bottommargin="0">
<!%_BODYSTART>
<table border="0" cellpadding="3" width="100%">
  <tr>
      <td width="70%" align="left" valign="top">
         <!%_A1!>
         <span class="HEADING">Übergreifende Kommissionierung</span>
         <!%_CURSOR!><!A1>
      </td>
                                                                                <td align="left" valign="top">
         <!%_A2!>
          img src="EB_LOGO2S.jpg" 
         <!%_CURSOR!><!A2>
      </td>
  </tr></table>
  <!%_BODYEND>
  </body>
</html>

Right-clicking the Logo delivers following addresses:

Dynpro 1 Logo is displayed

saphtmlp://htmlviewer.sap.com/X51KJdKuyadX00002cG6bW/EB_LOGO2S.jpg

Dynpro 2 - Logo is not displayed

saphtmlp://htmlviewer.sap.com/c}1KJkIey4dX00002cG6bW/EB_LOGO2S.jpg