on 03-26-2011 7:09 AM
HI All,
In Smartforms,I need to print different graphic logos based on condition..
For eg:- I have 20 different customer numbers , for each customer there is a different logo maintained.
From VA01 t.code while printing the form based on KUNNR(customer number) the respective graphic logo shud be printed in smartforms.
How we can do it in smartforms.
Pls suggest the altenatives.
Thanks in Advance
-Suresh
Hello,
Use the internal table with yr condition type to print logo as (say yr internal table is WA_INV), than you have to make yr condition type with:
WA_INV-BUKRS = 'Company Code'
OR use the same on to the other parts as well in the condition tab of the Template portion of the smartform. May be by that way you get the solution.
Regards,
Akg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As per my understanding , graphic logo should be determined dynamically as variable &var&( where var is of type TDOBNAME) under the General Attributes tab of graphic logo in smartforms.
then based on the condition ..
if cond1.
var = 'logo1' "logo from se78
elseif cond2.
var = 'logo2' . "logo from se78
elseif cond3.
var = 'logo3'. "logo from se78.
.
.
.
endif,
AM I CORRECT?
Pls. advise me
thanks
-suresh
Hi ,
Every logo itself has a conditions tab. In that you can give the condition which you are given.
Thanks & Regards,
Ajeeth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi -Suresh ,
This is quite easy. Just create secondary windows for each logo ie if you have 20 logos, create 20 windows and insert logo in the window. Now put a condition on all windows based on the customer number(KUNNR) as per your requirement. This would resolve your issue. It would be better if you use a folder here.
Windows can overlap so dont wry about it. Just make sure you use right conditions.
Regards
Atul Sachdeva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is quite easy. Just create secondary windows for each logo ie if you have 20 logos, create 20 windows and insert logo in the window. Now put a condition on all windows based on the customer number(KUNNR) as per your requirement. This would resolve your issue. It would be better if you use a folder here.
@Atul: Seriously? Is that how you bill extra time? Would you create 1000 windows for 1000 customers? Yikes!
Syed was correct: use a variable in the logo definition. You can either populate the variable in the smartform interface or populate it in the initialization code of the form definition...
hi,
check this.
"logo should be defined as type TDOBNAME
"in global definition - initialization tab
if cond is true
logo = 'logo1'."logo name from se78
else.
logo = 'logo2'.
endif.
"in page , background picture
name : &logo&
with regards,
syed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.