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: 654

        l_out_eam_wo_tbl.delete;
Line: 655

        l_out_eam_wo_relations_tbl.delete;
Line: 656

        l_out_eam_op_tbl.delete;
Line: 657

        l_out_eam_op_network_tbl.delete;
Line: 658

        l_out_eam_res_tbl.delete;
Line: 659

        l_out_eam_res_inst_tbl.delete;
Line: 660

        l_out_eam_sub_res_tbl.delete;
Line: 661

	l_out_eam_res_usage_tbl.delete;
Line: 662

        l_out_eam_mat_req_tbl.delete;
Line: 663

        l_out_eam_di_tbl.delete;
Line: 664

	l_out_eam_wo_comp_tbl.delete;
Line: 665

	l_out_eam_wo_quality_tbl.delete;
Line: 666

	l_out_eam_meter_reading_tbl.delete;
Line: 667

	l_out_eam_counter_prop_tbl.delete;
Line: 668

	l_out_eam_wo_comp_rebuild_tbl.delete;
Line: 669

	l_out_eam_wo_comp_mr_read_tbl.delete;
Line: 670

	l_out_eam_op_comp_tbl.delete;
Line: 671

	l_out_eam_request_tbl.delete;
Line: 792

            l_eam_op_tbl_head.delete;
Line: 801

            l_eam_op_network_tbl_head.delete;
Line: 810

            l_eam_res_tbl_head.delete;
Line: 819

            l_eam_res_inst_tbl_head.delete;
Line: 828

            l_eam_sub_res_tbl_head.delete;
Line: 837

            l_eam_mat_req_tbl_head.delete;
Line: 846

            l_eam_di_tbl_head.delete;
Line: 855

            l_eam_res_usage_tbl_head.delete;
Line: 874

            l_eam_wo_comp_tbl_head.delete;
Line: 885

            l_eam_wo_quality_tbl_head.delete;
Line: 894

            l_eam_meter_reading_tbl_head.delete;
Line: 903

            l_eam_counter_prop_tbl_head.delete;
Line: 912

            l_eam_wo_comp_rebuild_tbl_head.delete;
Line: 921

            l_eam_wo_comp_mr_read_tbl_head.delete;
Line: 930

            l_eam_op_comp_tbl_head.delete;
Line: 939

            l_eam_request_tbl_head.delete;
Line: 955

          l_mesg_token_tbl.delete;
Line: 956

          l_token_tbl.delete;
Line: 971

          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: 1206

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

         EAM_ERROR_MESSAGE_PVT.Delete_Message;
Line: 1473

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

				l_eam_wo_list.delete;
Line: 1486

				--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: 1711

            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: 1821

              SAVEPOINT Delete_Dependency_Start;
Line: 1822

         IF ( EAM_PROCESS_WO_PVT.Get_Debug = 'Y') THEN EAM_ERROR_MESSAGE_PVT.Write_Debug('Entering the Delete_Dependency procedure ... ') ; END IF ;
Line: 1824

              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: 1852

                 rollback to Delete_Dependency_Start;
Line: 2050

        x_eam_wo_tbl.delete;
Line: 2051

        x_eam_wo_relations_tbl.delete;
Line: 2052

        x_eam_op_tbl.delete;
Line: 2053

        x_eam_op_network_tbl.delete;
Line: 2054

        x_eam_res_tbl.delete;
Line: 2055

        x_eam_res_inst_tbl.delete;
Line: 2056

        x_eam_sub_res_tbl.delete;
Line: 2057

        x_eam_mat_req_tbl.delete;
Line: 2058

        x_eam_direct_items_tbl.delete;
Line: 2059

	x_eam_res_usage_tbl.delete;
Line: 2061

	 x_eam_res_usage_tbl.delete;
Line: 2062

	 x_eam_wo_comp_tbl.delete;
Line: 2063

	 x_eam_wo_quality_tbl.delete;
Line: 2064

	 x_eam_meter_reading_tbl.delete;
Line: 2065

	 x_eam_counter_prop_tbl.delete;
Line: 2066

	 x_eam_wo_comp_rebuild_tbl.delete;
Line: 2067

	 x_eam_wo_comp_mr_read_tbl.delete;
Line: 2068

	 x_eam_op_comp_tbl.delete;
Line: 2069

	 x_eam_request_tbl.delete;
Line: 4689

	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: 4724

	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: 4771

	 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: 4789

		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: 4815

			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: 4859

			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: 5230

	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: 5234

	 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;