Data from one child table to another child table in different doctypes

How can i enter the detials in to that stock entry items table automatically that i am having in the current doctype child tables items …

What you are trying to achieve is similar to the “Transfer Material” functionality in Material Request. Please check related code here.