Hello experts,
I am new to smartforms.
I have a requirement where i have to print smartforms equal to the no. of records in the internal table which will be passed from a driver program;
and the logo which will be displayed in the form will change according to the data in the internal table.
For example :
if there are 4 records in the internal table it_final :
Vinnr | model | dealer |
---|---|---|
WV12345 | abc | abc |
WA12345 | abc | abc |
TM12345 | abc | abc |
WV12345 | abc | abc |
The logo will be different for first 3 records and the same for 4th and 1st one .
there will be a condition like :
LOOP AT it_final INTO wa_final.
if wa_final-vinnr cp 'WV*'.
logo = 'V_W'.
ELSEIF wa_final-vinnr cp 'TM*'.
logo = 'VW_SK_LOGO'.
ELSEIF wa_final-vinnr cp 'WA*'.
logo = 'VW_A_LOGO'.
endif.
ENDLOOP.
is it possible ?
if yes then how ?
Where to put this condition ?