on 06-11-2009 11:20 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create one separate window for Graphic.
Right click on window--->Create Graphic. In conditons tab give u r condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.