310: --6 is eAM job
311: IF p_entity_type in (WIP_CONSTANTS.DISCRETE,WIP_CONSTANTS.LOTBASED,6) THEN
312: FOR C IN CDIS LOOP
313:
314: x_dummy := FND_FLEX_KEYVAL.validate_ccid(
315: appl_short_name => 'INV',
316: key_flex_code => 'MSTK',
317: structure_number => 101,
318: combination_id => C.inventory_item_id,
317: structure_number => 101,
318: combination_id => C.inventory_item_id,
319: data_set => p_organization_id);
320:
321: x_item_segments := FND_FLEX_KEYVAL.concatenated_values;
322:
323: x_locator_id := C.inventory_location_id;
324: /* Fix for Bug# 2149033. Added x_locator_id condition in if condition */
325: IF(C.subinventory_code IS NOT NULL) and (x_locator_id IS NOT NULL) THEN
337: IF x_locator_control = 1 THEN
338: x_locator_segments := NULL;
339: ELSE
340:
341: x_dummy := FND_FLEX_KEYVAL.validate_ccid(
342: appl_short_name => 'INV',
343: key_flex_code => 'MTLL',
344: structure_number => 101,
345: combination_id => x_locator_id,
345: combination_id => x_locator_id,
346: data_set => p_organization_id);
347:
348: -- fix for bug 4084598
349: --x_locator_segments := FND_FLEX_KEYVAL.concatenated_values;
350: END IF;
351: ELSE
352: x_valid_locator_flag := 'N';
353: x_locator_id := null; --no locator when sub is not populated
566: ELSE
567:
568: FOR C IN CREP LOOP
569:
570: x_dummy := FND_FLEX_KEYVAL.validate_ccid(
571: appl_short_name => 'INV',
572: key_flex_code => 'MSTK',
573: structure_number => 101,
574: combination_id => C.inventory_item_id,
573: structure_number => 101,
574: combination_id => C.inventory_item_id,
575: data_set => p_organization_id);
576:
577: x_item_segments := FND_FLEX_KEYVAL.concatenated_values;
578: IF(C.subinventory_code IS NULL) THEN
579: x_valid_subinventory_flag := 'N';
580: x_valid_locator_flag := 'N';
581: ELSE
600: IF x_locator_control = 1 THEN
601: x_locator_segments := NULL;
602: ELSE
603:
604: x_dummy := FND_FLEX_KEYVAL.validate_ccid(
605: appl_short_name => 'INV',
606: key_flex_code => 'MTLL',
607: structure_number => 101,
608: combination_id => x_locator_id,
608: combination_id => x_locator_id,
609: data_set => p_organization_id);
610:
611: -- fix for bug 4084598
612: --x_locator_segments := FND_FLEX_KEYVAL.concatenated_values;
613: END IF;
614: END IF;
615:
616: IF C.revision_qty_control_code = WIP_CONSTANTS.REV THEN