cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically multiple logo display in smartform

Former Member
0 Kudos

how will i display multiple logos in a smartform dynamically?

if <condition> = this.

logo1 will be displayed.

elseif. <cond> = this.

logo2 will be displayed.

endif.

pls help with coding and steps.

help will be appreciated.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

First upload all the logos with same properties in SE78. then go to smart form create program lines node before displaying graphic node. In program line node write all conditions like :

If <cond>

l_graphic = 'figure1'.

elseif <cond>.

l_graphic = 'figure2'.

........

endif.

in Graphic node provide name as l_graphic.

Madhurivs23
Participant
0 Kudos

create a variable zlogo type char20 in the global definitions.

Write code in the initialization tab to assign the value of the graphic name to Zlogo.

create a graphic window and give zlogo in the name field.

regards,

MAdhuri

Jelena
Active Contributor
0 Kudos

For cripes sake... It doesn't have to be that complicated.

1) Create a global variable, for example GD_LOGO_NAME with TYPE TDOBNAME.

2) Create a Graphic element for the logo, as usual. Find a button with a triange next to the Name field. Click on the button so that it is pointing like this: < . Enter &GD_LOGO_NAME& in the Name field.

3) Anywhere in the Smartform before the graphic element add a Command node and put your ABAP code in there. You'll need to fill in GD_LOGO_NAME with the logo name you've used in SE78 (or wherever you loaded the logos).

Former Member
0 Kudos

Hi,

Right click on Window name where u want to display.

select Graphic, Here in General Attributes tab give the values to 'NAME' 'ID' & 'OBJECT' then in Conditions tab give the condition when this logo has to print (Eg: BUKRS = '5160').

like that U create the Graphics for all the conditions...

(OR)

U maintain all the LOGO's in a Z table based on condition (eg, based on Company Code). then get the value from that Z table based on that condition. Now create the Graphic and give the name of that LOGO..

Hope its clear!!

Rgds,

Pavan

Former Member
0 Kudos

Hi,

Create one separate window for Graphic.

Right click on window--->Create Graphic. In conditons tab give u r condition.