11-05-2018 1:56 PM
I've created a simple program to display an initial image like the one we see in SE80. I also noticed it uses a function called WB_BITMAP_SHOW, so I created a FORM 'z_image' calling the same function. I uploaded an image using SE78 and tried to call the image as follows:
CALL FUNCTION 'WB_BITMAP_SHOW'
EXPORTING
image_name = 'IMG_PEDIDO'
* container =
* PARENT = ''
* stretch_picture = 'X'.
* IMPORTING
* IMAGE_CONTROL =
* CUSTOM_CONTAINER =
The 'custom_control_1' is the area where image is supposed to appear, but nothing appears even trying different ways. What am I doing wrong? Thank you in advance.
11-05-2018 3:37 PM
You have to pass either CONTAINER (name) or PARENT (instance) to the FM so it will be able to use those to create/use container for the picture, or don't use the FM and directly call classes such as CL_GUI_PICTURE and CL_GUI_CUSTOM_CONTAINER which are well documented.)