DBA Data[Home] [Help]

APPS.PA_CONTROL_ITEMS_WF_CLIENT SQL Statements

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

Line: 282

		  select hp.party_id
		    from pa_project_parties ppp,
		    pa_control_items pci,
		    hz_parties hp
		    where pci.ci_id = p_ci_id
		    and ppp.project_role_id = 1
		    and ppp.project_id = pci.project_id
		    and trunc(sysdate) between ppp.start_date_active and nvl(ppp.end_date_active, sysdate)
		    AND ((ppp.resource_type_id = 101 and hp.orig_system_reference = 'PER:' || ppp.resource_source_id
			  ) or (ppp.resource_type_id = 112 and hp.party_id = ppp.resource_source_id
				));
Line: 297

		 select party_id from
		   (
		    select hp.party_id
		     from fnd_user fu,
		    hz_parties hp
		    where fu.user_id = fnd_global.user_id
		    and fu.employee_id is null
		    and fu.person_party_id = hp.party_id -- Bug 4527617. Replaced customer_id with person_party_id.
		    union
		     select hp.party_id
		    from fnd_user fu,
		     hz_parties hp
		    where fu.user_id = fnd_global.user_id
		    and fu.employee_id is not null
		    and 'PER:' || fu.employee_id = hp.orig_system_reference);
Line: 315

			 SELECT
			   pci.project_id,
			   pci.object_id,
			   pci.object_type,
			   pci.date_required,
		     pct.short_name ci_type_name,
		     pci.ci_number,
		     summary,
		     decode(highlighted_flag, 'N', 'No', 'Yes') highlighted,
		     priority_code,
		     hp.party_name,
		     pcc.class_code classification,
		     pci.record_version_number record_version_number,
		     pl.meaning ci_type_class
		     FROM pa_control_items pci, pa_ci_types_tl pct,
		     pa_ci_types_b pcb, pa_lookups pl, hz_parties hp,
		     pa_class_codes pcc
		     WHERE ci_id = p_ci_id
		     and pci.ci_type_id = pct.ci_type_id
		     and pl.lookup_code = pcb.ci_type_class_code
		     AND pcb.ci_type_id = pct.ci_type_id
		     and pl.lookup_type = 'PA_CI_TYPE_CLASSES'
		     and pci.owner_id = hp.party_id
                     AND pct.language = userenv('lang') /*Bug#12553990*/
		     AND pcc.class_code_id = pci.classification_code_id;
Line: 344

	       SELECT
		 customer_name,
		 person_name,
		 carrying_out_organization_name
		 FROM pa_project_lists_v
		 WHERE project_id = l_project_id;
Line: 619

		  SELECT user_name
		    FROM fnd_user
		    WHERE user_id = FND_GLOBAL.user_id;
Line: 626

		  select user_name, party_name, email_address
		    from (
			  select fu.user_name, hp.party_name, hp.email_address
			  from fnd_user fu,
			  hz_parties hp
			  where fu.person_party_id = hp.party_id -- Bug 4527617. Replaced customer_id with person_party_id.
			  and hp.party_id = l_proj_mgr_id
			  and trunc(sysdate) between fu.start_date and nvl(fu.end_date, sysdate)  /* Bug#3838957  */
			  union
			  select fu.user_name, hp.party_name, hp.email_address
			  from fnd_user fu,
			  hz_parties hp,
			  per_all_people_f papf
			  where
			  fu.employee_id = Substr(hp.orig_system_reference, 5, Length(hp.orig_system_reference))
			  AND 'PER:' = Substr(hp.orig_system_reference,1,4) 	--			  'PER:' || fu.employee_id = hp.orig_system_reference
			  and hp.party_id = l_proj_mgr_id
			  and    trunc(sysdate)
			  between papf.EFFECTIVE_START_DATE
			  and		  Nvl(papf.effective_end_date, Sysdate + 1)
			  and trunc(sysdate) between fu.start_date and nvl(fu.end_date, sysdate)  /* Bug#3838957  */
			  and papf.person_id = fu.employee_id)
		    ;
Line: 652

	     select a.old_project_status_code, a.new_project_status_code
	     from (select obj_status_change_id,
	                  old_project_status_code,
	                  new_project_status_code
	           from pa_obj_status_changes
	           where object_type = 'PA_CI_TYPES'
	           and object_id = p_ci_id
	           order by obj_status_change_id desc) a
	     where rownum = 1;
Line: 767

	      pa_control_items_pvt.UPDATE_CONTROL_ITEM_STATUS (
	                p_api_version           => 1.0
	               ,p_init_msg_list         => FND_API.G_TRUE
	               ,p_validate_only         => FND_API.G_FALSE
	               ,p_ci_id                 => l_ci_id
	               ,p_status_code           => l_prev_status
	               ,p_record_version_number => NULL
	               ,x_return_status         => x_return_status
	               ,x_msg_count             => x_msg_count
	               ,x_msg_data              => x_msg_data);
Line: 832

		  select user_name, party_name, email_address
		    from (
			  select fu.user_name, hp.party_name, hp.email_address
			  from fnd_user fu,
			  hz_parties hp
			  where fu.person_party_id = hp.party_id -- Bug 4527617. Replaced customer_id with person_party_id.
			  and hp.party_id = l_owner_id
			  and trunc(sysdate) between fu.start_date and nvl(fu.end_date, sysdate)  /* Bug#3838957  */
			  union
			  select fu.user_name, hp.party_name, hp.email_address
			  from fnd_user fu,
			  hz_parties hp,
			  per_all_people_f papf
			  where
			  --'PER:' || fu.employee_id = hp.orig_system_reference
			   fu.employee_id = Substr(hp.orig_system_reference, 5, Length(hp.orig_system_reference))
			  AND 'PER:' = Substr(hp.orig_system_reference,1,4)
			  and hp.party_id = l_owner_id
			  and    trunc(sysdate)
			  between papf.EFFECTIVE_START_DATE
			  and		  Nvl(papf.effective_end_date, Sysdate + 1)
			  and trunc(sysdate) between fu.start_date and nvl(fu.end_date, sysdate)  /* Bug#3838957  */
			  and papf.person_id = fu.employee_id)
		    ;
Line: 858

		    SELECT
		      owner_id
		      FROM pa_control_items
		      WHERE ci_id = l_ci_id;
Line: 948

		  select user_name, party_name, email_address
		    from (
			  select fu.user_name, hp.party_name, hp.email_address
			  from fnd_user fu,
			  hz_parties hp
			  where fu.person_party_id = hp.party_id -- Bug 4527617. Replaced customer_id with person_party_id.
			  and hp.party_id = l_submitted_by_id
			  and trunc(sysdate) between fu.start_date and nvl(fu.end_date, sysdate)  /* Bug#3838957  */
			  union
			  select fu.user_name, hp.party_name, hp.email_address
			  from fnd_user fu,
			  hz_parties hp,
			  per_all_people_f papf
			  where
			  --'PER:' || fu.employee_id = hp.orig_system_reference
			   fu.employee_id = Substr(hp.orig_system_reference, 5, Length(hp.orig_system_reference))
			  AND 'PER:' = Substr(hp.orig_system_reference,1,4)
			  and hp.party_id = l_submitted_by_id
			  and    trunc(sysdate)
			  between papf.EFFECTIVE_START_DATE
			  and		  Nvl(papf.effective_end_date, Sysdate + 1)
			  and trunc(sysdate) between fu.start_date and nvl(fu.end_date, sysdate)  /* Bug#3838957  */
			  and papf.person_id = fu.employee_id)
		    ;