DBA Data[Home] [Help]

APPS.EAM_PROCESS_WO_PUB SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 24

         PROCEDURE DELETE_RELATIONSHIP
         ( p_api_version                   IN NUMBER
         , p_init_msg_list                 IN VARCHAR2 := FND_API.G_TRUE
         , p_commit                        IN VARCHAR2 := FND_API.G_FALSE
         , p_validation_level              IN NUMBER   := FND_API.G_VALID_LEVEL_FULL

         , p_parent_object_id              IN NUMBER
         , p_parent_object_type_id         IN NUMBER
         , p_child_object_id               IN NUMBER
         , p_child_object_type_id          IN NUMBER
         , p_new_parent_object_id          IN NUMBER
         , p_new_parent_object_type_id     IN NUMBER

         , x_return_status                 OUT NOCOPY  VARCHAR2
         , x_msg_count                     OUT NOCOPY  NUMBER
         , x_msg_data                      OUT NOCOPY  VARCHAR2
         ) IS
         BEGIN
           null;
Line: 43

         END DELETE_RELATIONSHIP;
Line: 436

        l_eam_wo_tbl.delete;
Line: 437

        l_eam_wo_relations_tbl.delete;
Line: 438

        l_eam_op_tbl.delete;
Line: 439

        l_eam_op_network_tbl.delete;
Line: 440

        l_eam_res_tbl.delete;
Line: 441

        l_eam_res_inst_tbl.delete;
Line: 442

        l_eam_sub_res_tbl.delete;
Line: 443

        l_eam_mat_req_tbl.delete;
Line: 444

        l_eam_di_tbl.delete;
Line: 445

        l_eam_res_usage_tbl.delete;
Line: 446

	l_eam_wo_comp_tbl.delete;
Line: 447

	l_eam_wo_quality_tbl.delete;
Line: 448

	l_eam_meter_reading_tbl.delete;
Line: 449

	l_eam_counter_prop_tbl.delete;
Line: 450

	l_eam_wo_comp_rebuild_tbl.delete;
Line: 451

	l_eam_wo_comp_mr_read_tbl.delete;
Line: 452

	l_eam_op_comp_tbl.delete;
Line: 453

	l_eam_request_tbl.delete;
Line: 474

        l_out_eam_wo_tbl.delete;
Line: 475

        l_out_eam_wo_relations_tbl.delete;
Line: 476

        l_out_eam_op_tbl.delete;
Line: 477

        l_out_eam_op_network_tbl.delete;
Line: 478

        l_out_eam_res_tbl.delete;
Line: 479

        l_out_eam_res_inst_tbl.delete;
Line: 480

        l_out_eam_sub_res_tbl.delete;
Line: 481

        l_out_eam_mat_req_tbl.delete;
Line: 482

        l_out_eam_di_tbl.delete;
Line: 483

	l_out_eam_res_usage_tbl.delete;
Line: 484

	l_out_eam_wo_comp_tbl.delete;
Line: 485

	l_out_eam_wo_quality_tbl.delete;
Line: 486

	l_out_eam_meter_reading_tbl.delete;
Line: 487

	l_out_eam_counter_prop_tbl.delete;
Line: 488

	l_out_eam_wo_comp_rebuild_tbl.delete;
Line: 489

	l_out_eam_wo_comp_mr_read_tbl.delete;
Line: 490

	l_out_eam_op_comp_tbl.delete;
Line: 491

	l_out_eam_request_tbl.delete;
Line: 512

        l_out_eam_wo_tbl_main.delete;
Line: 513

        l_out_eam_wo_rel_tbl_main.delete;
Line: 514

        l_out_eam_op_tbl_main.delete;
Line: 515

        l_out_eam_op_network_tbl_main.delete;
Line: 516

        l_out_eam_res_tbl_main.delete;
Line: 517

        l_out_eam_res_inst_tbl_main.delete;
Line: 518

        l_out_eam_sub_res_tbl_main.delete;
Line: 519

        l_out_eam_mat_req_tbl_main.delete;
Line: 520

        l_out_eam_di_tbl_main.delete;
Line: 521

	l_out_eam_res_usage_tbl_main.delete;
Line: 522

	l_out_eam_wo_comp_tbl_main.delete;
Line: 523

	l_out_eam_wo_quality_tbl_main.delete;
Line: 524

	l_ou_eam_meter_reading_tbl_m.delete;
Line: 525

	l_out_eam_counter_prop_tbl_m.delete;
Line: 526

	l_ou_eam_wo_comp_rebuild_tbl_m.delete;
Line: 527

	l_ou_eam_wo_comp_mr_read_tbl_m.delete;
Line: 528

	l_out_eam_op_comp_tbl_main.delete;
Line: 529

	l_out_eam_request_tbl_main.delete;
Line: 530

	l_out_eam_counter_prop_tbl_m.delete;
Line: 551

        x_eam_wo_tbl.delete;
Line: 552

        x_eam_wo_relations_tbl.delete;
Line: 553

        x_eam_op_tbl.delete;
Line: 554

        x_eam_op_network_tbl.delete;
Line: 555

        x_eam_res_tbl.delete;
Line: 556

        x_eam_res_inst_tbl.delete;
Line: 557

        x_eam_sub_res_tbl.delete;
Line: 558

        x_eam_mat_req_tbl.delete;
Line: 559

        x_eam_direct_items_tbl.delete;
Line: 560

	x_eam_res_usage_tbl.delete;
Line: 561

	x_eam_wo_comp_tbl.delete;
Line: 562

	x_eam_wo_quality_tbl.delete;
Line: 563

	x_eam_meter_reading_tbl.delete;
Line: 564

	x_eam_counter_prop_tbl.delete;
Line: 565

	x_eam_wo_comp_rebuild_tbl.delete;
Line: 566

	x_eam_wo_comp_mr_read_tbl.delete;
Line: 567

	x_eam_op_comp_tbl.delete;
Line: 659

        l_out_eam_wo_tbl.delete;
Line: 660

        l_out_eam_wo_relations_tbl.delete;
Line: 661

        l_out_eam_op_tbl.delete;
Line: 662

        l_out_eam_op_network_tbl.delete;
Line: 663

        l_out_eam_res_tbl.delete;
Line: 664

        l_out_eam_res_inst_tbl.delete;
Line: 665

        l_out_eam_sub_res_tbl.delete;
Line: 666

	l_out_eam_res_usage_tbl.delete;
Line: 667

        l_out_eam_mat_req_tbl.delete;
Line: 668

        l_out_eam_di_tbl.delete;
Line: 669

	l_out_eam_wo_comp_tbl.delete;
Line: 670

	l_out_eam_wo_quality_tbl.delete;
Line: 671

	l_out_eam_meter_reading_tbl.delete;
Line: 672

	l_out_eam_counter_prop_tbl.delete;
Line: 673

	l_out_eam_wo_comp_rebuild_tbl.delete;
Line: 674

	l_out_eam_wo_comp_mr_read_tbl.delete;
Line: 675

	l_out_eam_op_comp_tbl.delete;
Line: 676

	l_out_eam_request_tbl.delete;
Line: 797

            l_eam_op_tbl_head.delete;
Line: 806

            l_eam_op_network_tbl_head.delete;
Line: 815

            l_eam_res_tbl_head.delete;
Line: 824

            l_eam_res_inst_tbl_head.delete;
Line: 833

            l_eam_sub_res_tbl_head.delete;
Line: 842

            l_eam_mat_req_tbl_head.delete;
Line: 851

            l_eam_di_tbl_head.delete;
Line: 860

            l_eam_res_usage_tbl_head.delete;
Line: 879

            l_eam_wo_comp_tbl_head.delete;
Line: 890

            l_eam_wo_quality_tbl_head.delete;
Line: 899

            l_eam_meter_reading_tbl_head.delete;
Line: 908

            l_eam_counter_prop_tbl_head.delete;
Line: 917

            l_eam_wo_comp_rebuild_tbl_head.delete;
Line: 926

            l_eam_wo_comp_mr_read_tbl_head.delete;
Line: 935

            l_eam_op_comp_tbl_head.delete;
Line: 944

            l_eam_request_tbl_head.delete;
Line: 960

          l_mesg_token_tbl.delete;
Line: 961

          l_token_tbl.delete;
Line: 976

          EAM_ERROR_MESSAGE_PVT.Translate_And_Insert_Messages
          (  p_mesg_token_tbl     => l_mesg_token_tbl
           , p_error_level        => EAM_ERROR_MESSAGE_PVT.G_WO_LEVEL
           , p_entity_index       => l_eam_wo_rec_head.row_id
           , p_application_id     => 'EAM'
           );
Line: 1211

         fnd_msg_pub.delete_msg(p_msg_index => fnd_msg_pub.Count_Msg);
Line: 1213

         EAM_ERROR_MESSAGE_PVT.Delete_Message;
Line: 1483

		   	--Before inserting the error message, insert the confirmation message of work order creation.
				x_return_status     := l_return_status;
Line: 1495

				l_eam_wo_list.delete;
Line: 1496

				--Insert the error message.
				select wip_entity_name into l_wo_name
				from wip_entities
				where wip_entity_id = l_temp_wip_entity_id;
Line: 1722

            EAM_PROCESS_WO_PUB.G_OPR_DELETE then

            if l_eam_wo_relations_tbl(i).parent_relationship_type in (1,3,4) then

              SAVEPOINT Delink_Relation_Start;
Line: 1832

              SAVEPOINT Delete_Dependency_Start;
Line: 1833

         IF ( EAM_PROCESS_WO_PVT.Get_Debug = 'Y') THEN EAM_ERROR_MESSAGE_PVT.Write_Debug(to_char(sysdate,'DD-MON-YY HH:MI:SS')||' EAM_PROCESS_WO_PUB.PROCESS_MASTER_CHILD_WO : Calling the Delete_Dependency procedure ... ') ; END IF ;
Line: 1835

              EAM_WO_NETWORK_DEFAULT_PVT.Delete_Dependency
              (
                p_api_version                   => 1.0,
                p_init_msg_list                 => FND_API.G_FALSE,
                p_commit                        => FND_API.G_FALSE,
                p_validation_level              => FND_API.G_VALID_LEVEL_FULL,

                p_prior_object_id               => l_eam_wo_relations_tbl(i).parent_object_id,
                p_prior_object_type_id          => l_eam_wo_relations_tbl(i).parent_object_type_id,
                p_next_object_id                => l_eam_wo_relations_tbl(i).child_object_id,
                p_next_object_type_id           => l_eam_wo_relations_tbl(i).child_object_type_id,

                x_return_status                 => l_return_status,
                x_msg_count                     => l_msg_count,
                x_msg_data                      => l_msg_data,
                x_mesg_token_tbl                => l_mesg_token_tbl
              );
Line: 1863

                 rollback to Delete_Dependency_Start;
Line: 2061

        x_eam_wo_tbl.delete;
Line: 2062

        x_eam_wo_relations_tbl.delete;
Line: 2063

        x_eam_op_tbl.delete;
Line: 2064

        x_eam_op_network_tbl.delete;
Line: 2065

        x_eam_res_tbl.delete;
Line: 2066

        x_eam_res_inst_tbl.delete;
Line: 2067

        x_eam_sub_res_tbl.delete;
Line: 2068

        x_eam_mat_req_tbl.delete;
Line: 2069

        x_eam_direct_items_tbl.delete;
Line: 2070

	x_eam_res_usage_tbl.delete;
Line: 2072

	 x_eam_res_usage_tbl.delete;
Line: 2073

	 x_eam_wo_comp_tbl.delete;
Line: 2074

	 x_eam_wo_quality_tbl.delete;
Line: 2075

	 x_eam_meter_reading_tbl.delete;
Line: 2076

	 x_eam_counter_prop_tbl.delete;
Line: 2077

	 x_eam_wo_comp_rebuild_tbl.delete;
Line: 2078

	 x_eam_wo_comp_mr_read_tbl.delete;
Line: 2079

	 x_eam_op_comp_tbl.delete;
Line: 2080

	 x_eam_request_tbl.delete;
Line: 3194

		SELECT PENDING_FLAG INTO l_pending_flag
		FROM EAM_WORK_ORDER_DETAILS
		WHERE
		WIP_ENTITY_ID=l_eam_wo_rec.wip_entity_id;
Line: 3203

	IF l_pending_flag IS NOT NULL AND l_pending_flag='Y' AND l_eam_wo_rec.transaction_type=EAM_PROCESS_WO_PUB.G_OPR_UPDATE THEN

		FND_MESSAGE.SET_NAME('EAM', 'EAM_UNAUTHORISED_UPDATE');
Line: 3211

	IF l_pending_flag IS NOT NULL AND l_pending_flag='Y' AND l_eam_wo_rec.transaction_type=EAM_PROCESS_WO_PUB.G_WF_OPR_UPDATE THEN
		l_eam_wo_rec.transaction_type:=EAM_PROCESS_WO_PUB.G_OPR_UPDATE;
Line: 3425

    EAM_ERROR_MESSAGE_PVT.write_debug(to_char(sysdate,'DD-MON-YY HH:MI:SS')||' EAM_PROCESS_WO_PUB.PROCESS_WO : Transaction Type : '||l_eam_wo_rec.TRANSACTION_TYPE||' (1:Create / 2:Update / 3:Delete / 4:Complete / 5:UnComplete)');
Line: 4496

                  SELECT ORGANIZATION_ID INTO  l_organization_id from wip_entities where wip_entity_id = l_wip_entity_id;
Line: 4510

                                   (   p_validation_level           => EAM_PROCESS_WO_PVT.G_OPR_UPDATE
                                     , p_organization_id	           => p_eam_wo_rec.organization_id
                                     , p_permit_wo_association_tbl  => l_permit_wo_association_tbl
                                     , p_work_permit_id             => l_permit_wo_association_tbl(1).SOURCE_ID
                                     , x_permit_wo_association_tbl  => lx_permit_wo_association_tbl
                                     , x_mesg_token_tbl             => l_out_Mesg_Token_Tbl
                                     , x_return_status              => l_return_status
                                    );
Line: 5397

	select
		wip_entity_id		,
		organization_id		,
		operation_seq_num 	,
		standard_operation_id	,
		department_id         	,
		operation_sequence_id 	,
		description           	,
		minimum_transfer_quantity	,
		count_point_type      ,
		backflush_flag        ,
		shutdown_type         ,
		first_unit_start_date             ,
		last_unit_completion_date        ,
		attribute_category    ,
		attribute1            ,
		attribute2            ,
		attribute3            ,
		attribute4            ,
		attribute5            ,
		attribute6            ,
		attribute7            ,
		attribute8            ,
		attribute9            ,
		attribute10           ,
		attribute11           ,
		attribute12           ,
		attribute13           ,
		attribute14           ,
		attribute15           ,
		long_description
	from wip_operations
	where wip_entity_id = p_wip_entity_id;
Line: 5432

	select
		wor.wip_entity_id		    ,
		wor.organization_id		    ,
		wor.operation_seq_num               ,
		wor.resource_seq_num                ,
		wor.resource_id                     ,
		wor.uom_code                        ,
		wor.basis_type                      ,
		wor.usage_rate_or_amount            ,
		wor.activity_id                     ,
		wor.scheduled_flag                  ,
		wor.firm_flag			    ,
		wor.assigned_units                  ,
		wor.maximum_assigned_units          ,
		wor.autocharge_type                 ,
		wor.standard_rate_flag              ,
		wor.applied_resource_units          ,
		wor.applied_resource_value          ,
		wor.start_date                      ,
		wor.completion_date                 ,
		wor.schedule_seq_num                ,
		wor.substitute_group_num            ,
		wor.replacement_group_num           ,
		wor.attribute_category              ,
		wor.attribute1                      ,
		wor.attribute2                      ,
		wor.attribute3                      ,
		wor.attribute4                      ,
		wor.attribute5                      ,
		wor.attribute6                      ,
		wor.attribute7                      ,
		wor.attribute8                      ,
		wor.attribute9                      ,
		wor.attribute10                     ,
		wor.attribute11                     ,
		wor.attribute12                     ,
		wor.attribute13                     ,
		wor.attribute14                     ,
		wor.attribute15                     ,
		wor.department_id
	 from   wip_operations wo,
	        wip_operation_resources wor
	 where wo.wip_entity_id = p_wip_entity_id
	   and wor.wip_entity_id = p_wip_entity_id
	   and wo.operation_seq_num = wor.operation_seq_num;
Line: 5479

	 select
		wori.wip_entity_id       	,
		wori.organization_id     	,
		wori.operation_seq_num   	,
		wori.resource_seq_num    	,
		wori.instance_id         	,
		wori.serial_number      	,
		wori.start_date       		,
		wori.completion_date     	,
		wori.batch_id
	 from  wip_op_resource_instances wori,
	       wip_operation_resources wor
	 where wor.wip_entity_id = p_wip_entity_id
	   and wori.wip_entity_id = p_wip_entity_id
	   and wori.operation_seq_num = wor.operation_seq_num
	   and wori.resource_seq_num = wor.resource_seq_num;
Line: 5497

		SELECT
			wip_entity_id		 ,
			organization_id		 ,
			prior_operation          ,
			next_operation		 ,
			attribute_category       ,
			attribute1               ,
			attribute2               ,
			attribute3               ,
			attribute4               ,
			attribute5               ,
			attribute6               ,
			attribute7               ,
			attribute8               ,
			attribute9               ,
			attribute10              ,
			attribute11              ,
			attribute12              ,
			attribute13              ,
			attribute14              ,
			attribute15
		FROM
			wip_operation_networks
	       WHERE    wip_entity_id = p_wip_entity_id;
Line: 5523

			SELECT
			wip_entity_id              ,
			organization_id            ,
			operation_seq_num          ,
			inventory_item_id          ,
			quantity_per_assembly      ,
			department_id              ,
			wip_supply_type            ,
			date_required              ,
			required_quantity          ,
			released_quantity          ,
			quantity_issued            ,
			supply_subinventory        ,
			supply_locator_id          ,
			mrp_net_flag               ,
			mps_required_quantity      ,
			mps_date_required          ,
			component_sequence_id      ,
			comments                   ,
			attribute_category         ,
			attribute1                 ,
			attribute2                 ,
			attribute3                 ,
			attribute4                 ,
			attribute5                 ,
			attribute6                 ,
			attribute7                 ,
			attribute8                 ,
			attribute9                 ,
			attribute10                ,
			attribute11                ,
			attribute12                ,
			attribute13                ,
			attribute14                ,
			attribute15                ,
			auto_request_material      ,
			suggested_vendor_name      ,
			vendor_id                  ,
			unit_price
		  FROM  wip_requirement_operations wro
		  WHERE wro.wip_entity_id = p_wip_entity_id
		    AND wro.organization_id = p_organization_id;
Line: 5567

			SELECT
			description                    ,
			purchasing_category_id         ,
			direct_item_sequence_id        ,
			operation_seq_num              ,
			department_id                  ,
			wip_entity_id                  ,
			organization_id                ,
			suggested_vendor_name	       ,
			suggested_vendor_id            ,
			suggested_vendor_site	       ,
			suggested_vendor_site_id       ,
			suggested_vendor_contact       ,
			suggested_vendor_contact_id    ,
			suggested_vendor_phone         ,
			suggested_vendor_item_num      ,
			unit_price                     ,
			auto_request_material	       ,
			required_quantity              ,
			uom                            ,
			need_by_date                   ,
			attribute_category             ,
			attribute1                     ,
			attribute2                     ,
			attribute3                     ,
			attribute4                     ,
			attribute5                     ,
			attribute6                     ,
			attribute7                     ,
			attribute8                     ,
			attribute9                     ,
			attribute10                    ,
			attribute11		       ,
			attribute12                    ,
			attribute13                    ,
			attribute14                    ,
			attribute15
		FROM    wip_eam_direct_items wedi
                WHERE   wedi.wip_entity_id = p_wip_entity_id
                AND     wedi.organization_id = p_organization_id;
Line: 5938

	update wip_discrete_jobs
	   set primary_item_id = l_old_activity_id
	 where wip_entity_id = l_out_eam_wo_rec.wip_entity_id;
Line: 5942

       	update wip_entities
	   set primary_item_id = l_old_activity_id
	 where wip_entity_id = l_out_eam_wo_rec.wip_entity_id; /*added for bug 9974953*/
Line: 5946

	 update wip_operations wo
	    set STANDARD_OPERATION_ID = ( select STANDARD_OPERATION_ID from wip_operations wo1
					   where wo.OPERATION_SEQ_NUM = wo1.OPERATION_SEQ_NUM
					   and wo1.wip_entity_id = p_wip_entity_id
					   )
	    where wip_entity_id = l_out_eam_wo_rec.wip_entity_id;
Line: 6219

PROCEDURE UPDATE_WO_ADD_DES_DIR_ITEM
        (  p_wip_entity_id                IN  NUMBER
         , p_operation_seq_num            IN  NUMBER
         , p_inventory_item_id            IN  NUMBER
         , p_description                  IN  VARCHAR2
         , p_organization_id              IN  NUMBER
         , p_purchasing_category_id       IN  NUMBER
         , p_suggested_vendor_name        IN  VARCHAR2 := NULL
         , p_suggested_vendor_id          IN  NUMBER   := NULL
         , p_suggested_vendor_site        IN  VARCHAR2 := NULL
         , p_suggested_vendor_site_id     IN  NUMBER   := NULL
         , p_suggested_vendor_contact     IN  VARCHAR2 := NULL
         , p_suggested_vendor_contact_id  IN  NUMBER   := NULL
         , p_suggested_vendor_phone       IN  VARCHAR2 := NULL
         , p_suggested_vendor_item_num    IN  VARCHAR2 := NULL
         , p_required_quantity            IN  NUMBER
         , p_unit_price                   IN  NUMBER
         , p_uom                          IN  VARCHAR2
         , p_need_by_date                 IN  DATE
         , p_amount                       IN  NUMBER
         , p_order_type_lookup_code       IN  VARCHAR2
         , x_direct_item_sequence_id      IN OUT NOCOPY NUMBER
         , x_return_status                OUT NOCOPY VARCHAR2
         ) IS

         l_direct_item_sequence_id NUMBER := NULL;
Line: 6266

       select sum(count) into l_count from
       (
	 select count(*) as count
	 from wip_eam_direct_items wed
	 where wed.wip_entity_id = p_wip_entity_id and
	       wed.operation_seq_num = p_operation_seq_num and
	       wed.direct_item_sequence_id = x_direct_item_sequence_id and
	       wed.organization_id = p_organization_id

	 union all

	 SELECT count(*) as count
	 FROM
	   po_requisition_lines_all pr,
	   wip_entities we
	 WHERE
	       pr.destination_organization_id = p_organization_id
	 AND pr.item_id is null
	 AND pr.wip_resource_seq_num = x_direct_item_sequence_id
	 AND pr.destination_type_code = 'SHOP FLOOR'
	 AND pr.wip_entity_id = we.wip_entity_id
	 AND pr.wip_operation_seq_num = p_operation_seq_num
	 AND pr.wip_entity_id = p_wip_entity_id
	 AND we.entity_type in (6,7)

	 union all
	 SELECT count(*) as count
	 FROM
	   po_distributions_all pd,
	   po_lines_all pl,
	   wip_entities we
	 WHERE
	       pd.destination_organization_id = p_organization_id
	 AND pd.po_line_id = pl.po_line_id(+)
	 AND pl.item_id is null
	 AND pd.wip_resource_seq_num = x_direct_item_sequence_id
	 AND pd.destination_type_code = 'SHOP FLOOR'
	 AND pd.wip_entity_id = we.wip_entity_id
	 AND pd.wip_operation_seq_num = p_operation_seq_num
	 AND pd.wip_entity_id = p_wip_entity_id
	 AND we.entity_type in (6,7)
       ) ;
Line: 6315

  select count(*) into l_count from wip_eam_direct_items wed where
                        wed.wip_entity_id = p_wip_entity_id and
                        wed.operation_seq_num = p_operation_seq_num and
                        wed.description = p_description and
			wed.organization_id = p_organization_id;
Line: 6323

    select max(direct_item_sequence_id) into x_direct_item_sequence_id
                        from wip_eam_direct_items wed where
                        wed.wip_entity_id = p_wip_entity_id and
                        wed.operation_seq_num = p_operation_seq_num and
                        wed.description = p_description and
			wed.organization_id = p_organization_id;
Line: 6333

  select wip_eam_di_seq_id_s.nextval into l_direct_item_sequence_id from dual;
Line: 6339

  SELECT department_id INTO l_department_id
  FROM wip_operations
  WHERE wip_entity_id = p_wip_entity_id AND
        operation_seq_num = p_operation_seq_num AND
        organization_id = p_organization_id;
Line: 6347

  select distinct uom_code into l_uom_code from mtl_uom_conversions muc where muc.unit_of_measure = p_uom;
Line: 6350

  INSERT INTO WIP_EAM_DIRECT_ITEMS
         (
           DESCRIPTION
         , PURCHASING_CATEGORY_ID
         , DIRECT_ITEM_SEQUENCE_ID
         , OPERATION_SEQ_NUM
         , DEPARTMENT_ID
         , WIP_ENTITY_ID
         , ORGANIZATION_ID
         , SUGGESTED_VENDOR_NAME
         , SUGGESTED_VENDOR_ID
         , SUGGESTED_VENDOR_SITE
         , SUGGESTED_VENDOR_SITE_ID
         , SUGGESTED_VENDOR_CONTACT
         , SUGGESTED_VENDOR_CONTACT_ID
         , SUGGESTED_VENDOR_PHONE
         , SUGGESTED_VENDOR_ITEM_NUM
         , UNIT_PRICE
         , AUTO_REQUEST_MATERIAL
         , REQUIRED_QUANTITY
         , UOM
         , NEED_BY_DATE
         , last_update_date
         , last_updated_by
         , creation_date
         , created_by
         , last_update_login
         , AMOUNT
         , ORDER_TYPE_LOOKUP_CODE)

         VALUES
         (
           p_description
         , p_purchasing_category_id
         , l_direct_item_sequence_id
         , p_operation_seq_num
         , l_department_id
         , p_wip_entity_id
         , p_organization_id
         , p_suggested_vendor_name
         , p_suggested_vendor_id
         , p_suggested_vendor_site
         , p_suggested_vendor_site_id
         , p_suggested_vendor_contact
         , p_suggested_vendor_contact_id
         , p_suggested_vendor_phone
         , p_suggested_vendor_item_num
         , p_unit_price
         , 'Y'
         , p_required_quantity
         , l_uom_code
         , p_need_by_date
         , SYSDATE
         , FND_GLOBAL.user_id
         , SYSDATE
         , FND_GLOBAL.user_id
         , FND_GLOBAL.login_id
         , p_amount
         , p_order_type_lookup_code);
Line: 6417

    END UPDATE_WO_ADD_DES_DIR_ITEM;