cancel
Showing results for 
Search instead for 
Did you mean: 

How to call LOGOS dynamically in smartforms

former_member565026
Participant
0 Kudos

Hi,

I have 15 logos ,i have to print these logos based on company code ,how can i display?

logic to display logos.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member565026
Participant
0 Kudos

answered

former_member565026
Participant
0 Kudos

error

Former Member
0 Kudos

because you have not given & before and after your variable name in the graphics object in the smartform

should be like &GV_VAR&

nabheetscn
Active Contributor
0 Kudos

Please use & sign before after variable name and make sure the logo is updated in the se78

Nabheet

nabheetscn
Active Contributor
0 Kudos

Do as follow. It will be a good idea to create a custom table with company code and logo name with table maintainence gen.

In this way you dont need to hard code it in smartform. You just have to use a single select and display your logo. If you dont want to create custom table you can use tvavrc table also.

We have done a similar thing in the past. It helps avoiding hard coding in smartforms

Nabheet

former_member565026
Participant
0 Kudos

Hi madan,

can u explain the logic , because am new to smartforms

nabheetscn
Active Contributor
0 Kudos

Custom table ztest

With fields

Bukrs and logo name create a table maintainence gen for it

After that in your smartform before logo make a code do a select on this table based on company code and fetch the logo name from above table pass this varianle to graphics node

Nabheet

Former Member
0 Kudos

what Nabheet is trying to tell you is that,

declare a variable of type below in the global definition

GV_LOGO TYPE SSFSCREEN-GR_NAME

and before the logo graphics element put a code like

select single logo_name from Ztable in to gv_logo where bukrs = gv_bukrs. => this gv_bukrs is from your code

this z table tolds two columns.. company code and logo name. so you will get one entry in gv_logo.

this should be the name of the logo you have uploaded using se78.

say comp1 has logo name logo_comp1

say comp2 has logo name logo_comp2

so your code say picks up logo_comp1 as your comp code is comp1.

now, the graphics window.

Name       &GV_LOGO&
Object     GRAPHICS
ID         BMAP

you are done

nabheetscn
Active Contributor
0 Kudos

Thanks Soumya..actually at home so no access)

Nabheet

Former Member
0 Kudos

no problem mate :).. its all yours

former_member565026
Participant
0 Kudos

Thank you soumya

former_member565026
Participant
0 Kudos

Hi soumya prakash,

i have done the same process

but it is giving error like formatting error graphic canot be displayed msg no 159.

sri

former_member777515
Participant
0 Kudos

And click the 'Dynamic Field Value' button (black right arrow) that corresponds to the field Name, before you enter variable name &GV_VAR&

Edited by: bloodcool on Jan 18, 2012 6:07 PM

Former Member
0 Kudos

Hi,

create a secondary window an inside a condition based on your company code. in the condition set the image you want to show.

Regards

Jaime