DBA Data[Home] [Help]

APPS.BOM_OPERATION_PVT dependencies on FND_MESSAGE

Line 118: Fnd_Message.Set_Name('BOM', 'BOM_ORG_ID_MISSING');

114: End if; -- organization code
115:
116: if nvl(l_operation_rec.organization_id, FND_API.G_MISS_NUM) =
117: FND_API.G_MISS_NUM then
118: Fnd_Message.Set_Name('BOM', 'BOM_ORG_ID_MISSING');
119: FND_MSG_PUB.Add;
120: raise FND_API.G_EXC_ERROR;
121: end if; -- organization_id
122:

Line 131: Fnd_Message.Set_Name('BOM', 'BOM_ASSY_ITEM_MISSING');

127: item_number_in => l_operation_rec.assembly_item_number,
128: item_id_out => l_operation_rec.assembly_item_id,
129: err_text => l_err_text);
130: if l_ret_code <> 0 then
131: Fnd_Message.Set_Name('BOM', 'BOM_ASSY_ITEM_MISSING');
132: FND_MSG_PUB.Add;
133: raise FND_API.G_EXC_ERROR;
134: end if; -- parse failed
135: end if; -- assembly item number

Line 148: Fnd_Message.Set_Name('BOM', 'BOM_DEPT_CODE_INVALID');

144: P_OrgId => l_operation_rec.organization_id) loop
145: l_operation_rec.department_id := l_department_rec.department_id;
146: End loop;
147: If l_operation_rec.department_id is null then
148: Fnd_Message.Set_Name('BOM', 'BOM_DEPT_CODE_INVALID');
149: FND_MSG_PUB.Add;
150: raise FND_API.G_EXC_ERROR;
151: End if; -- invalid dept code
152: End if; -- dept code

Line 163: Fnd_Message.Set_Name('BOM','BOM_OP_DPTFLAG_MUST_BE_NO');

159: AND inventory_item_id = l_operation_rec.Assembly_Item_Id ;
160:
161: If (nvl(l_operation_rec.option_dependent_flag,Fnd_Api.G_Miss_Num) <> Fnd_Api.G_Miss_Num) then
162: If (g_assy_item_type not in (1,2) and l_operation_rec.option_dependent_flag = 1 ) then
163: Fnd_Message.Set_Name('BOM','BOM_OP_DPTFLAG_MUST_BE_NO');
164: FND_MSG_PUB.Add;
165: Raise FND_API.G_EXC_ERROR;
166: End If;
167: Else

Line 190: Fnd_Message.Set_Name('BOM', 'BOM_RTG_SEQ_INVALID');

186: l_routing_rec.routing_sequence_id;
187: End loop;
188: If nvl(l_operation_rec.routing_sequence_id, FND_API.G_MISS_NUM) =
189: FND_API.G_MISS_NUM then
190: Fnd_Message.Set_Name('BOM', 'BOM_RTG_SEQ_INVALID');
191: FND_MSG_PUB.Add;
192: Raise FND_API.G_EXC_ERROR;
193: End if;
194: End if; -- get routing sequence id

Line 211: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_CODE_INVALID');

207: l_operation_rec.standard_operation_id :=
208: l_StdOp_rec.standard_operation_id;
209: End loop; -- get standard operation id
210: If l_operation_rec.standard_operation_id is null then
211: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_CODE_INVALID');
212: FND_MSG_PUB.Add;
213: Raise FND_API.G_EXC_ERROR;
214: End if; -- invalid op code
215: End if; -- std op code

Line 441: Fnd_Message.Set_Name('BOM', 'BOM_OP_SEQ_NUM_MISSING');

437: End if; -- assign values
438:
439: -- verify operation seq num is not null
440: If l_operation_rec .operation_seq_num is null then
441: Fnd_Message.Set_Name('BOM', 'BOM_OP_SEQ_NUM_MISSING');
442: FND_MSG_PUB.Add;
443: Raise FND_API.G_EXC_ERROR;
444: End if;
445:

Line 448: Fnd_Message.Set_Name('BOM', 'BOM_EFF_DATE_MISSING');

444: End if;
445:
446: -- check effective date entered
447: If l_operation_rec.new_effectivity_date is null then
448: Fnd_Message.Set_Name('BOM', 'BOM_EFF_DATE_MISSING');
449: FND_MSG_PUB.Add;
450: Raise FND_API.G_EXC_ERROR;
451: End if;
452:

Line 460: Fnd_Message.Set_Name('BOM', 'BOM_OPERATION_DUPLICATE');

456: P_RtgSeqId => l_operation_rec.routing_sequence_id,
457: P_OpSeqNum => l_operation_rec.new_operation_seq_num,
458: P_OpType => l_operation_rec.operation_type,
459: P_EffDate => l_operation_rec.new_effectivity_date) loop
460: Fnd_Message.Set_Name('BOM', 'BOM_OPERATION_DUPLICATE');
461: FND_MSG_PUB.Add;
462: Raise FND_API.G_EXC_ERROR;
463: End loop;
464:

Line 469: Fnd_Message.Set_Name('BOM', 'BOM_RTG_SEQ_INVALID');

465: -- check for existence of routing
466:
467: For l_routing_rec in l_routing_csr(
468: P_RtgSeqId => l_operation_rec.routing_sequence_id) loop
469: Fnd_Message.Set_Name('BOM', 'BOM_RTG_SEQ_INVALID');
470: FND_MSG_PUB.Add;
471: Raise FND_API.G_EXC_ERROR;
472: End loop; -- routing existence
473:

Line 483: Fnd_Message.Set_Name('BOM', 'BOM_IMPL_OP_OVERLAP');

479: P_OpSeqNum => l_operation_rec.new_operation_seq_num,
480: P_OpType => l_operation_rec.operation_type,
481: P_EffDate => l_operation_rec.new_effectivity_date,
482: P_DisDate => l_operation_rec.disable_date) loop
483: Fnd_Message.Set_Name('BOM', 'BOM_IMPL_OP_OVERLAP');
484: FND_MSG_PUB.Add;
485: Raise FND_API.G_EXC_ERROR;
486: End loop;
487:

Line 492: Fnd_Message.Set_Name('BOM', 'BOM_COMMON_OP');

488: -- verify that the routing does not have a common. If so, it cannot have
489: -- operations
490: For l_common_rec in l_common_csr(
491: P_RtgSeqId => l_operation_rec.routing_sequence_id) loop
492: Fnd_Message.Set_Name('BOM', 'BOM_COMMON_OP');
493: FND_MSG_PUB.Add;
494: Raise FND_API.G_EXC_ERROR;
495: End loop;
496:

Line 500: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_REQUIRED');

496:
497: -- Op Code is mandatory for Processes and Line Operations
498: If l_operation_rec.operation_type in (g_process, g_LineOp) and
499: l_operation_rec.standard_operation_id is null then
500: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_REQUIRED');
501: FND_MSG_PUB.Add;
502: Raise FND_API.G_EXC_ERROR;
503: End if; -- mandatory op code
504:

Line 522: Fnd_Message.Set_Name('BOM', 'BOM_COPY_REF_OPERATION');

518: End loop;
519:
520: -- Cannot set copied operation to referenced
521: If l_PrevRefFlag = g_no and l_operation_rec.reference_flag = g_yes then
522: Fnd_Message.Set_Name('BOM', 'BOM_COPY_REF_OPERATION');
523: Fnd_Message.Set_Token('OPERATION', l_PrevStdCode);
524: FND_MSG_PUB.Add;
525: Raise FND_API.G_EXC_ERROR;
526: End if;

Line 523: Fnd_Message.Set_Token('OPERATION', l_PrevStdCode);

519:
520: -- Cannot set copied operation to referenced
521: If l_PrevRefFlag = g_no and l_operation_rec.reference_flag = g_yes then
522: Fnd_Message.Set_Name('BOM', 'BOM_COPY_REF_OPERATION');
523: Fnd_Message.Set_Token('OPERATION', l_PrevStdCode);
524: FND_MSG_PUB.Add;
525: Raise FND_API.G_EXC_ERROR;
526: End if;
527:

Line 533: Fnd_Message.Set_Name('BOM', 'BOM_CANNOT_COPY_STD_OP');

529: If nvl(l_PrevStdOp, -1) <> l_operation_rec.standard_operation_id then
530: -- check resources
531: For l_resource_rec in l_OpResources_csr(
532: P_OpSeqId => l_operation_rec.operation_sequence_id) loop
533: Fnd_Message.Set_Name('BOM', 'BOM_CANNOT_COPY_STD_OP');
534: FND_MSG_PUB.Add;
535: Raise FND_API.G_EXC_ERROR;
536: End loop; -- resources exist, cannot copy
537: l_StdOpFound := false;

Line 568: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_ID_INVALID');

564: l_operation_rec.backflush_flag := nvl(l_operation_rec.backflush_flag,l_StdOp_rec.backflush_flag);
565: l_operation_rec.operation_yield_enabled := nvl(l_operation_rec.operation_yield_enabled,l_StdOp_rec.operation_yield_enabled);
566: End loop; -- copy standard operation
567: If not l_StdOpFound then
568: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_ID_INVALID');
569: FND_MSG_PUB.Add;
570: Raise FND_API.G_EXC_ERROR;
571: End if; -- invalid op code
572: -- copy op resources

Line 722: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_ID_INVALID');

718: l_operation_rec.backflush_flag := l_StdOp_rec.backflush_flag;
719: l_operation_rec.operation_yield_enabled := l_StdOp_rec.operation_yield_enabled;
720: End loop; -- copy standard operation
721: If not l_StdOpFound then
722: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_ID_INVALID');
723: FND_MSG_PUB.Add;
724: Raise FND_API.G_EXC_ERROR;
725: End if; -- invalid op code
726: End if; -- referenced

Line 733: Fnd_Message.Set_Name('BOM', 'BOM_DEPT_ID_INVALID');

729: For l_dept_rec in l_dept_csr(
730: P_RtgSeqId => l_operation_rec.routing_sequence_id,
731: P_DeptId => l_operation_rec.department_id,
732: P_EffDate => l_operation_rec.new_effectivity_date) loop
733: Fnd_Message.Set_Name('BOM', 'BOM_DEPT_ID_INVALID');
734: FND_MSG_PUB.Add;
735: Raise FND_API.G_EXC_ERROR;
736: End loop; -- invalid department
737:

Line 757: Fnd_Message.Set_Name('BOM', 'BOM_OPERATION_ERROR');

753: or (l_operation_rec.reverse_cumulative_yield not between 0 and 1)
754: or (l_operation_rec.include_in_rollup not in (1,2))
755: or (l_operation_rec.operation_yield_enabled not in (1,2))
756: then
757: Fnd_Message.Set_Name('BOM', 'BOM_OPERATION_ERROR');
758: FND_MSG_PUB.Add;
759: Raise FND_API.G_EXC_ERROR;
760: End if; -- etc, etc, etc
761:

Line 801: Fnd_Message.Set_Name('BOM', 'BOM_PARENT_OP_NULL');

797:
798: If nvl(l_operation_rec.operation_type, g_event) <> g_event and
799: (l_operation_rec.process_op_seq_id is not null or
800: l_operation_rec.line_op_seq_id is not null) then
801: Fnd_Message.Set_Name('BOM', 'BOM_PARENT_OP_NULL');
802: FND_MSG_PUB.Add;
803: Raise FND_API.G_EXC_ERROR;
804: End if; -- only events can have parents
805:

Line 808: Fnd_Message.Set_Name('BOM', 'BOM_PARENT_OP_INVALID');

804: End if; -- only events can have parents
805:
806: For l_process_rec in l_parents_csr(
807: P_ParentSeqId => l_operation_rec.process_op_seq_id) loop
808: Fnd_Message.Set_Name('BOM', 'BOM_PARENT_OP_INVALID');
809: FND_MSG_PUB.Add;
810: Raise FND_API.G_EXC_ERROR;
811: End loop; -- invalid process
812:

Line 815: Fnd_Message.Set_Name('BOM', 'BOM_PARENT_OP_INVALID');

811: End loop; -- invalid process
812:
813: For l_LineOp_rec in l_parents_csr(
814: P_ParentSeqId => l_operation_rec.line_op_seq_id) loop
815: Fnd_Message.Set_Name('BOM', 'BOM_PARENT_OP_INVALID');
816: FND_MSG_PUB.Add;
817: Raise FND_API.G_EXC_ERROR;
818: End loop; -- invalid line operation
819:

Line 1588: Fnd_Message.Set_Name('BOM', 'BOM_INVALID_OPERATION');

1584:
1585: End loop; -- get old values
1586:
1587: If not l_OperFound then
1588: Fnd_Message.Set_Name('BOM', 'BOM_INVALID_OPERATION');
1589: FND_MSG_PUB.Add;
1590: Raise FND_API.G_EXC_ERROR;
1591: End if; -- missing operation
1592:

Line 1874: Fnd_Message.Set_Name('BOM', 'BOM_INVALID_OPERATION');

1870: End if; -- SQL error in modal delete
1871: End loop; -- Add to delete group
1872:
1873: If not l_OperFound then
1874: Fnd_Message.Set_Name('BOM', 'BOM_INVALID_OPERATION');
1875: FND_MSG_PUB.Add;
1876: Raise FND_API.G_EXC_ERROR;
1877: End if; -- missing operation
1878: