SAP Message C5645 - Error occurred when exploding BOM in &1 in master recipe &2

Diagnosis
An error has occurred during explosion of theBOM
&v1& (BOM category/
BOM/
alternative BOM) ofmaster recipe &v2& (
task list type
task list number/task list alternative)(SY-SUBRC = &v3& ).

System Response
The system cannot process the BOM further and terminates the transaction
.

Procedure
Check the BOM that wasentered. The error may be due to one of the following causes:
(Specific) alternative notfound [SY-SUBRC = 1]
BOM is not active (statusnot correct) [SY-SUBRC = 2]
(Special) BOM not found[SY-SUBRC = 3]
Invalid call [SY-SUBRC = 4]
No alternative found[SY-SUBRC = 5]
No BOM found [SY-SUBRC = 6]
Other causes [SY-SUBRC = 7]
Correct the error and execute the transaction again

Procedure for System Administration
Set a break point in function module CS_ALT_SELECT_MAT. Start the printreport again. Check where the error was triggered.