Split production order through X++

Any body help me in Splitting the Production order through Code.