Application Development 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: 

How To Refer instance of splitter container to an CL_DD_DOCUMENT object?

Former Member
0 Kudos

Hi All,

When we try to use a splitter container,we are not able to assign it to CL_DD_DOCUMENT object,which is used to display the logo.

In the other part of the splitter, we are able to display the ALV grid.

In the code, the method 'DISPLAY_DOCUMENT' is not accepting an object of a splitter container.

Thanks And Regards,

Feros Khan.

CALL METHOD g_splittercontainer->get_container
  EXPORTING
    row       = 1
    column    = 1
  receiving
    container = g_splitlogo.

CALL METHOD g_splittercontainer->get_container
  EXPORTING
    row       = 2
    column    = 1
  receiving
    container = g_splitalv.

      CREATE OBJECT g_logocontainer.


      CALL METHOD g_logocontainer->add_picture
        EXPORTING
          picture_id       = 'ENJOYSAP_LOGO'
          width            = '125%'.

      CALL METHOD g_logocontainer->merge_document.

*      CALL METHOD g_logocontainer->display_document
*        EXPORTING
*          container          = g_splitlogo
*        EXCEPTIONS
*          html_display_error = 1
*          OTHERS             = 2
*              .
*      IF sy-subrc <> 0.
*        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
*      ENDIF.


2 REPLIES 2

Former Member
0 Kudos

Hi Feros,

Try giving the name of the container. The parameter CONTAINER is some sort of a misnomer. It should probably have been CONTAINER_NAME (which in your case turns out to be G_SPLITLOGO).

Regards,

Anand Mandalika.

Former Member
0 Kudos

Hi,

Take a look at a similar post at

See if this helps.

Regards