You are on page 1of 1

The error happens in bmlslx.ppc 115.

14 and it fails executing this statement

EXEC SQL SELECT A.BILL_SEQUENCE_ID, A.ORGANIZATION_ID


INTO :cmn_bill_sequence_id, :cmn_org_id
FROM BOM_BILL_OF_MATERIALS A, BOM_BILL_OF_MATERIALS B
WHERE A.BILL_SEQUENCE_ID = B.COMMON_BILL_SEQUENCE_ID
AND B.ASSEMBLY_ITEM_ID = :assembly_item_id
AND B.ORGANIZATION_ID = :organization_id
AND ((:alt_option = 2 AND
nvl(B.ALTERNATE_BOM_DESIGNATOR, 'NONE') =
nvl(:v_alternate_bom_designator, 'NONE')
) OR
(:alt_option = 1 AND
(nvl(B.ALTERNATE_BOM_DESIGNATOR, 'NONE') =
nvl(:v_alternate_bom_designator, 'NONE') OR
(B.ALTERNATE_BOM_DESIGNATOR IS NULL AND
NOT EXISTS (SELECT 'X' FROM BOM_BILL_OF_MATERIALS C
WHERE C.ASSEMBLY_ITEM_ID = :assembly_item_id
AND C.ORGANIZATION_ID = :organization_id
AND C.ALTERNATE_BOM_DESIGNATOR =
:v_alternate_bom_designator)
)
)
)
);

This means that it's likely that there is more than 1 bom for this assembly.

4. Run the following sqlstatement to determine this.

SELECT
bbom.organization_id org_id,
bbom.assembly_item_id item_id,
mp.organization_code org,
mif.item_number,
bbom.alternate_bom_designator bom_desig,
count(*)
FROM
bom_bill_of_materials bbom,
mtl_item_flexfields mif,
mtl_parameters mp
WHERE
bbom.organization_id = mif.organization_id and
bbom.assembly_item_id = mif.inventory_item_id and
bbom.organization_id = mp.organization_id
GROUP BY bbom.organization_id, bbom.assembly_item_id,
mp.organization_code, mif.item_number,
bbom.alternate_bom_designator
HAVING count(*) > 1

If the above returns rows, then you must delete one of the duplicate boms and rerun
the process.
In this case you are facing
bug 4352092 - BOMFDBOM - ALLOWS CREATION OF 2 BILLS FOR SAME ITEM/ORG/BOM DESIGNAT
OR

You might also like