09-22-2008 6:22 AM
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
09-22-2008 6:24 AM
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
09-22-2008 6:25 AM
hi,
define a flow logic alternative in ur program.
then write ur logic.
if true give one company code.
else.
the other company code.
09-22-2008 6:27 AM
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
09-22-2008 6:29 AM
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.
09-22-2008 6:31 AM
09-22-2008 6:34 AM
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
09-22-2008 6:49 AM
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