Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_DD_DOCUMENT problems with Logo-Displaying

Former Member
0 Likes
531

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

1 REPLY 1
Read only

Former Member
0 Likes
440

Hi, Did you solve this. I have a similar problem. Pls share if any pointers. Thanks!