Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9212

Dynamic logo in smartforms based on internal table values.

$
0
0

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
modeldealer
WV12345abcabc
WA12345abcabc
TM12345abcabc
WV12345abcabc

 

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 ?


Viewing all articles
Browse latest Browse all 9212

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>