When changing direct speech to indirect speech, the reporting verb 'said' (past tense) requires a change in the tense of the reported speech. 'Am' (present simple) changes to 'was' (past simple). The pronoun 'I' changes to 'he' to reflect the speaker. So, 'I am happy' becomes 'he was happy'.