inventtransid and route number for the quality order

dear guys, I have created a quality order by the code only diffrence between the manual quality order creation and the quality order is that it is not fetching route number and reference lot any help will be appriecated … thanks, rohit

this is the screen shot of these 2 fields…

it is solved now relation between prodtable and inventqualityorder table related by prodid