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 726: Fnd_Message.Set_Name('BOM', 'BOM_STD_OP_ID_INVALID');

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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