cancel
Showing results for 
Search instead for 
Did you mean: 

how to Inserting logos in smartform Dynamically

Former Member
0 Kudos

Hi Experts,

I need to display logo on smartforms based on Company code. I have 20 company codes and each one has different company logos. Now, based on company code, i need to display respective logo on smartform dynamically. shall able to give graphic object as dynamic variable?

Will you please help me.

Thanks in Advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try this,

1. First upload the logos into SAP based on the company codes(For eg!.. 1100,1200,....)

2. Declare a variable in global definitions as follows w_logo type TDOBNAME

3. Create a program line, in that assign the condition based on ur company code.

4. Create a graphic as logo and in the general attributes of that graphic give the following as (Name = &W_LOGO&, Objects =GRAPHICS and ID)

satyajit_mohapatra
Active Contributor
0 Kudos

Yes...you can. Create a Graphic node with image name as a variable say &IMAGE& defined in global data of the smartform. Create a program line just before calling the graphic node and pass the desired logo name as per company code.

Former Member
0 Kudos

Hi,

You can pass the variable in place of the name of the graphics.

Before calling the graphics call a program line and assign the name of logo to that variable according to the company code.

Do not forget to declare the variable in the global data of Global Defination.

Regards

DKS