1025: mast.parent_line_id,
1026: MSC_ATP_PVT.G_INSTANCE_ID,
1027: p_refresh_number
1028: FROM mrp_atp_schedule_temp mast, 1029: msc_item_id_lid mil 1030: where session_id = p_session_id
1031: --bug 3378648
1032: and status_flag = 99
1033: and ato_model_line_id is not null -- transfer ATO model enteties only;