on 01-16-2012 11:51 AM
Hi,
I have 15 logos ,i have to print these logos based on company code ,how can i display?
logic to display logos.
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.