Skip to Content

ALV cl_dd_document with docking container but not custom

I am using cl_gui_docking_container to create a ALV, not using splitter, there's only one ALV

wanted to display the logo using cl_dd_document-display_document but the exporting parameter should be of type

cl_gui_custom_container but I am using docking container. Searched on sdn but could not find solution for this. There is a solution if we use splitter.

is there any other class instead of cl_dd_document for docking container.

Please help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 23, 2012 at 08:43 AM

    you're using the container o_docking twice - once as parent for the grid and as parent for the html-document. The might overlay each other. Try to use a separate container for the html-document.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 23, 2012 at 05:31 AM

    hi ,

    first of all to add a logo u have other methods too.

    you can directly display the logo as well as text as there are methods already available in class  CL_DD_DOCUMENT(For eg, ADD_TEXT, ADD_PICTURE, ADD_ICON etc).

    Data:  lo_document TYPE REF TO cl_dd_document.

    CREATE OBJECT lo_document

        EXPORTING

          style = 'ALV_GRID'.

    CALL METHOD lo_document->add_text                   " To add text

        EXPORTING

          text         = text-006

          sap_fontsize = '18'

          sap_emphasis = cl_dd_area=>strong. 

    CALL METHOD lo_document->add_picture             " For picture

        EXPORTING

          picture_id       = 'TRVPICTURE01'

          width            =  '100'.

    And in the method display_document the exporting parameter is of type CL_GUI_CONTAINER.

    try the above it will resolve your issue.

    Add comment
    10|10000 characters needed characters exceeded