SAP Message RTCMMD163 - Article variant & can only be created below the category

Diagnosis
The hierarchy node to which you assign the material must appear below anode that is flagged as a category.

Procedure
Select a structure with a flagged category node and assign the materialto a node below the category.