>1.He said that he was having dinner when they knocked the door.

>2.He said that he had been having dinner when they knocked the door.

What is the difference in using past continuous & past perfect continuous tense in this sentence? Which tense is apt to use?