Hi Gajanathan,
This is a very basic error, which you will get if you have not maintained any item category for your material. Make sure with the below required.
- Item Category Exists and determination is set for it in the sales order.
- Item Category Group is assigned to the concerned material.
Hope this works for you.
Regards,
Aman