Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Logo Diplay in SMARTFORMS

Former Member
0 Kudos

Hi,

I need to display different Company Logo in my SMARTFORM based on a field in Internal Table (Ex : if itab-f1 = 'SG01' display logo1. IF itab-f1 = 'SG02' display logo2.

How can I do this?. Can you please advice me.

Regards,

Srinivas

7 REPLIES 7

Former Member
0 Kudos

Hi ,

right click on your window

create>flowlogic>alternative.

write ur condition here .

work area-f1 = ' SG01'

if true

call logo1

False

call logo2.

it may be help full .

Gopal

Edited by: gopaludu p on Sep 22, 2008 7:25 AM

GauthamV
Active Contributor
0 Kudos

hi,

define a flow logic alternative in ur program.

then write ur logic.

if true give one company code.

else.

the other company code.

Former Member
0 Kudos

Hi,

Based on this condt "if itab-f1 = 'SG01' display logo1. IF itab-f1 = 'SG02' " , you can call the respective logo.

Use the alternative to check the condition, and call the respective logo by using the true or false condt.

Regards,

P.S.Chitra

Former Member
0 Kudos

hi Srinivasa,

U pass that variable to smartoforms form interface or u can define %GRAPHIC1 into loop also.

double click on "%GRAPHIC1" u can seecondition tab over there then u can write there u r own condition.

hope u r problem will solve.

Regards,

Sanket.

former_member585060
Active Contributor
0 Kudos

Hi,

Check this link, Vidya Sagar explained clearly

Former Member
0 Kudos

Hi Srini,

Before the Logo add a Program lines and in that write code to assign the LogoName to a Global Variable and assign the variable in the Name Field in the General attributes of the Logo.

The code can be something like;

IF itab-f1 EQ 'SG01'.
GV_LOGO = 'LOGO1'.
ELSEIF itab-f1 EQ 'SG02'.
GV_LOGO = 'LOGO2'.
ENDIF.

And assign in the Name Field of the Logo as &GV_LOGO& .

Revert back if u have any doubts.

Regards

Karthik D

Former Member
0 Kudos

Hi srini vasa

Create two different pages.

In page 1 display the logo1 and in page 2 display the logo2.

In global defintions:

Initialization tab:

Based on condition print the data:

if w_page = 1.

control_parameters-startpage = '%PAGE1'.

else.

control_parameters-startpage = '%PAGE2'.

ENDIF.

Regards,

Sravanthi