754: l_gme_batch_step_items (j).batch_id := l_batch_id;
755:
756: SELECT material_detail_id
757: INTO l_gme_batch_step_items (j).material_detail_id
758: FROM gme_material_details
759: WHERE batch_id = l_batch_id
760: AND formulaline_id = p_recipe_rout_matl_tbl (i).formulaline_id;
761:
762: IF (p_recipe_rout_matl_tbl (i).routingstep_id IS NOT NULL) THEN