Hi Prathyusha,
Generally item category for the child would be determine automatically. We need not to pass the item category to the system for the child items.
You can pass the item category manually as well.
can you provide your code which you are using to create sub item.
Best Regards,
Dharmakasi.