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 display image and data in module pool screen?

P13599469
Explorer
0 Kudos
179


Hi,

I want to display image and relevant data besides the image in module pool screen, I am using docking container to display the image.

Actually I am able to display image or data any one but not both.

one more thing I want to display multiple images and their data.

Please suggest some one if you have any idea.

Regards,

Dileep.

5 REPLIES 5

Former Member
0 Kudos
73

Hi Dileep,

Which class you are using to display the images ? Why cant you try with split containers ? Split the container to 2 and display image and data

Try with cl_gui_picture for images and  cl_dd_document for the data

Thanks & Regards,

Arun

0 Kudos
73

You can try below way, I have used in report.


DATA: gc_docking              TYPE REF TO cl_gui_docking_container, "#EC NEEDED  "Docking Container

       gc_split                 TYPE REF TO cl_gui_easy_splitter_container, "#EC NEEDED  "Splitter

       gc_top_container         TYPE REF TO cl_gui_container, "#EC NEEDED  "Top Container

       gc_bottom_container      TYPE REF TO cl_gui_container, "#EC NEEDED  "Bottom Container

      gc_document              TYPE REF TO cl_dd_document, "#EC NEEDED  "Document

       gc_events                TYPE REF TO lcl_event_class, "#EC NEEDED  " Local Event Class

       gc_grid                  TYPE REF TO cl_gui_alv_grid, "#EC NEEDED  " ALV Class


" Creating Docking

CREATE OBJECT gc_docking

       EXPORTING

         ratio = c_95.

     IF sy-subrc EQ 0.

* Splitting the Docking container

       CREATE OBJECT gc_split

         EXPORTING

           parent        = gc_docking

           sash_position = c_10 "Position of Splitter Bar (in Percent)

           with_border   = c_1. "With Border = 1 Without Border = 0

     ENDIF.

*   Placing the containers in the splitter

     gc_top_container = gc_split->top_left_container .

     gc_bottom_container = gc_split->bottom_right_container .

*   Creating Grid

     CREATE OBJECT gc_grid

       EXPORTING

         i_parent = gc_bottom_container.

   ELSE.

* Background job handling

     CREATE OBJECT gc_grid

       EXPORTING

         i_parent = gc_docking.

   ENDIF.

*   Creating the document

   CREATE OBJECT gc_document

     EXPORTING

       style = 'ALV_GRID'.

Regards,

Sameer

0 Kudos
73

Hi,

helpful, but not for my requirement, where I need to display multiple images and the file source is network drives.

Regards,

Dileep.

0 Kudos
73

Hi Aruna,

Thanks for your info, but we can't make both at side by side, I guess.

I tried to the as you said...but couldn't make it.

Regards,

Dileep.

Former Member
0 Kudos
73

This message was moderated.