Skip to Content
SAP Visual Business

HowTo add an image

Tags:

The detail window supports also the use of a picture. Only one picture per detail window is supported.
The imagecan be set with


LV_DETAILS->SET_PICTURE( IV_NAME = 'pin_yellow.png'

   IV_TOP = 5 IV_LEFT = 80 IV_WIDTH = 60 IV_HEIGHT = 60 ).


As you can see from the sample the image position needs to be given in pixels relative to the left upper corner of the window.
The image is just referenced by name. The actual image data needs to be send to the frontend component upon application start.
Please check ABAP Development: HowTo add own images (e.g. for pins and icons) for further details on this.

No comments