You are on page 1of 11

Dynamically Populating the Logo on the adobe form

First, upload the required Logos using the Transaction SE78.

Go to Transaction SFP->

Select Interface Radio Button & Enter the name to create New Interface.

(Eg:- ZLOGO).
Click on Create & Enter the Description and Press Save:

Creating a import parameter

Go to Form Interface->import ->Parameters name ->

Create an import parameter IV_VALUE which is of character one.


Go to Global Definitions->Global data
Create to global variables

1) xstring type string

2) String type string.

Go to Initialization->code Initialization.

Enter the below code.

string = 'image/bmp'.

data: lv_logoname TYPE TDOBNAME.

if iv_value IS INITIAL.
lv_logoname = 'ZSAP_LOGO'.
else.
lv_logoname = 'ZSAP_CHANNEL'.
ENDIF.

CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp


EXPORTING
p_object = 'GRAPHICS'
p_name = lv_logoname
p_id = 'BMAP'
p_btype = 'BCOL'
RECEIVING
p_bmp = xstring
EXCEPTIONS
not_found =1
internal_error = 2
OTHERS = 3.
Save, Check & Activate the Interface, once the interface is activated.

Go back to transaction SFP.

Select Form Radio Button & Enter the name to create New Form.

(Eg:- ZLOGO).

Enter the Description & Interface name which we have created and press save button.

Form Context is displayed as below.

Create a Graphic node in the Context


Click on the graphic node

Select the Graphic type to Graphic Content and click on Yes.


In the Graphic Content

Assign XSTRING to Field

STRING to Mime Field


Save and click on Layout to Design the Layout Form layout will be displayed.

From the Object Library -> drag and drop the Image Field.
Select object name ->go to Palettes->Click object->.

Check the Checkbox Embed Image Data Checkbox then go to Binding tab and bind the Graphic
Save and activate the form.

Execute the form.

Passing the Import Parameter IV_VALUE Blank


Passing the Import Parameter IV_VALUE is equal to X.

You might also like