In general item category determination is happened through sales document type+item usage + item category group + higher level item category + default item category
In the creating from reference document item category determination is happened from copy control where source item category to target item category. if it is not maintained ,item category determination is happened though normal determination like sales document type + item usage + item category group + higher level item category+default item category.

Related questions