SAP Message AQV242 - Reference line allowed only with line groups

Diagnosis
You tried to use conditions without defining line groups.

Procedure
If you want to use conditions, you have to assign line groups and andmake an assignment between lines and line groups.