A logo with name ‘LOGO_ALL’ ( .BMP pic) is uploaded in SE78.
Go to Tx- SFP and create and interface.
Go to global data.
Create a Variable – LOGO type as XSTRING ( this will hold the picture data at runtime )
In Code initialization- Read the SE78 logo data in XSTRING format and save in the global variable. Activate the interface and go back.
CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
EXPORTING
p_object = ‘GRAPHICS’ ” SAPscript Graphics Management: Application object
p_name = ‘LOGO_ALL’ ” logo Name
p_id = ‘BMAP’ ” SAPscript Graphics Management: ID
p_btype = ‘BCOL’ ” SAPscript: Type of graphic
RECEIVING
p_bmp = logo ” Graphic Data
EXCEPTIONS
not_found = 1
internal_error = 2
others = 3.
Create a form by providing the name and then selecting the create button.
Assign the interface.
Map the interface global variable to the form context area.
On the form context area, create a Graphic.
Select graphic type as- Graphic content and provide Graphic content as LOGO ( that holds the graphic value in XSTRING format ) and MIME type as ‘image/bmp’ . Then go to the layout design.
Drag & drop an Image field from Object Library to the form page.
Under binding, click on the data binding option.
Choose Graphic.
So image mapping is done.
Activate and test the form.
So here we have the image.
It worked. Thanks for saving the time!
LikeLike