Thanks .
it has been solved to some extent.
But if there are multiple records in the internal table then variable logo takes the latest value .
The requirement states that after printing the first record of it_final the logo should change for the second record to be printed depending on the condition.