100% found this document useful (3 votes)
5K views11 pages

Dynamically Populating The Logo On The Adobe Form

This document provides steps to dynamically populate logos on an Adobe form by calling a graphic from the SAP system and embedding it in the form. It involves creating an import parameter, global variables, and code to retrieve the graphic based on the import parameter value. The graphic is then bound to an image field on the form layout to display the logo.

Uploaded by

Emil S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
5K views11 pages

Dynamically Populating The Logo On The Adobe Form

This document provides steps to dynamically populate logos on an Adobe form by calling a graphic from the SAP system and embedding it in the form. It involves creating an import parameter, global variables, and code to retrieve the graphic based on the import parameter value. The graphic is then bound to an image field on the form layout to display the logo.

Uploaded by

Emil S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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