Write on Production table using script

SOLVED

Are we able to write on the Production table from the Sales Order Entry UI?

I have items that based on the S/O Entry need to be put on a Production Entry so was wondering if after they are entered in the SO and the Picking Sheet is printed, I can write this items in a new Batch and set the required fields in the Production based on lines from the S/O details.