DBA Data[Home] [Help]

APPS.OKC_DELIVERABLE_WF_PVT SQL Statements

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

Line: 35

  SELECT busDocTL.name,
         busDocTL.document_type,
	 deliverable.business_document_number,
	 deliverable.deliverable_name,
         deliverable.notify_prior_due_date_value,
	 deliverable.notify_prior_due_date_uom
    FROM okc_bus_doc_types_tl busDocTL, okc_deliverables deliverable
    WHERE deliverable.deliverable_id = l_del_id
	  AND   deliverable.business_document_type = busDocTL.document_type
          AND   busDocTL.language = userenv('LANG');
Line: 83

        select meaning into l_uom_text from fnd_lookups
        where lookup_type = 'OKC_DELIVERABLE_TIME_UNITS'
        and lookup_code = del_tokens_rec.notify_prior_due_date_uom;
Line: 118

    select email_address, full_name from PER_PEOPLE_F where person_id = x_employee_id;
Line: 305

    SELECT tl.name,b.document_type_class,
    b.external_userlist_proc,b.notification_header_function
    FROM okc_bus_doc_types_b b, okc_bus_doc_types_tl tl
    WHERE b.document_type = tl.document_type
    AND   tl.language = userenv('LANG')
    AND   b.document_type = p_business_document_type;
Line: 316

    select user_id
    from fnd_user
    where person_party_id=p_external_contact;
Line: 322

    select delType.internal_flag
    from okc_deliverable_types_b delType,
    okc_bus_doc_types_b docType,
    okc_del_bus_doc_combxns delComb
    where delType.deliverable_type_code = p_deliverable_type
    and docType.document_type = p_business_document_type
    and docType.document_type_class = delComb.document_type_class
    and delType.deliverable_type_code = delComb.deliverable_type_code;
Line: 334

    select resp_party_code
    from
    okc_resp_parties_b delrsp
   ,okc_bus_doc_types_b docType
    where delrsp.resp_party_code = p_resp_party
    and doctype.document_type = p_business_document_type
    and delrsp.document_type_class = docType.document_type_class
    and delrsp.intent = docType.intent;
Line: 346

    select external_party_id, external_party_role
    from okc_deliverables
    where deliverable_id = p_deliverable_id;
Line: 356

    select relation.party_id party_id
    from hz_parties relation
    ,hz_parties person
    ,hz_relationships hz
    where relation.party_id = hz.party_id
    and person.party_id = hz.subject_id
    and hz.subject_type = 'PERSON'
    and hz.object_type = 'ORGANIZATION'
    and hz.subject_table_name ='HZ_PARTIES'
    and hz.object_table_name ='HZ_PARTIES'
    and person.party_id = p_external_contact;
Line: 369

    SELECT hc.email_address
    FROM hz_contact_points  hc
    WHERE hc.owner_table_name = 'HZ_PARTIES'
    AND   hc.primary_flag = 'Y'
    AND   hc.contact_point_type = 'EMAIL'
    AND   hc.owner_table_id  = x;
Line: 377

    select email_address
    from hz_parties
    where party_id=p_external_contact;*/
Line: 382

    SELECT name
    FROM okc_deliverable_types_tl oktl, okc_deliverables okd
    WHERE oktl.deliverable_type_code =okd.DELIVERABLE_TYPE
    AND okd.deliverable_id=p_del_id
    AND   oktl.language = userenv('LANG') ;
Line: 391

    SELECT name
    FROM okc_resp_parties_tl
    WHERE RESP_PARTY_CODE = p_resp_party
    AND   language = userenv('LANG');
Line: 399

    SELECT full_name
    FROM PER_ALL_PEOPLE_F
    WHERE person_id=p_contact ;
Line: 447

    select to_char(okc_wf_notify_s1.nextval) into l_item_key from dual;
Line: 933

    ||'&_MANAGE_MODE=Y&_UPDATE_STATUS_MODE=N&_HIDE_NTF=Y&OKC_DEL_HIDE_ATTACHMENTS=Y&OKC_DEL_HIDE_STATUS_DISC=Y&_FLEX_DISPLAY=N&_DELIVERABLE_ID='||p_deliverable_id||'&OKC_DEL_NO_ENCRYPT=Y';
Line: 1041

      select notification_id into x_notification_id from wf_item_activity_statuses
      where item_type = l_item_type and
      item_key = l_item_key and
      assigned_user = l_external_role_name;
Line: 1288

procedure  update_status  (itemtype in varchar2,
                                        itemkey in varchar2,
                                        actid in number,
                                        funcmode in varchar2,
                                        resultout out nocopy varchar2 )


IS
l_old_status VARCHAR2(100);
Line: 1303

cursor update_allowed is
select 'X' -- removed into l_temp for 8174 compatability bug#3288934
from okc_deliverables d,okc_del_status_combxns s where
d.deliverable_id=l_deliverable_id and
s.current_status_code=d.deliverable_status and
s.allowable_status_code=l_new_status and
s.status_changed_by='EXTERNAL' and
d.manage_yn = 'Y'; --from bug 3696869
Line: 1325

   FND_LOG.STRING( FND_LOG.LEVEL_PROCEDURE ,g_module,'100: Entering update status for deliverable id:'||l_deliverable_id);
Line: 1333

    open update_allowed;
Line: 1334

    fetch update_allowed into l_temp;
Line: 1335

        if update_allowed%NOTFOUND then
            resultout:='COMPLETE';
Line: 1338

               FND_LOG.STRING( FND_LOG.LEVEL_PROCEDURE ,g_module,'200: Update is not allow from current status to '
               ||l_new_status||' by external user.  Exitting');
Line: 1343

            update okc_deliverables set deliverable_status = l_new_status, status_change_notes=l_notes
            where deliverable_id = l_deliverable_id;
Line: 1346

            insert into okc_del_status_history(deliverable_id,
                                    deliverable_status,
                                    status_change_date,
                                    status_change_notes,
                                    object_version_number,
                                    created_by,
                                    creation_date,
                                    last_updated_by,
	                            last_update_date,
                                    last_update_login,
				    status_changed_by)
                                    values (l_deliverable_id,
                                            l_new_status,
                                            sysdate,
                                            l_notes,
                                            1,
                                            fnd_global.user_id,
                                            sysdate,
                                	    fnd_global.user_id,
                                            sysdate,
                                            fnd_global.login_id,
 					    fnd_global.user_id);
Line: 1369

               FND_LOG.STRING( FND_LOG.LEVEL_PROCEDURE ,g_module,'200: Deliverable updated and row inserted into status history');
Line: 1374

      close update_allowed;
Line: 1412

WF_CORE.CONTEXT ('OKCDELWF', 'update_status', itemtype, itemkey,actid,funcmode);
Line: 1416

end update_status;
Line: 1445

    SELECT *
    FROM okc_deliverables
    where deliverable_id = l_deliverable_id;
Line: 1482

	update okc_deliverables set completed_notification_id = l_notification_id where deliverable_id = l_deliverable_id;