DBA Data[Home] [Help]

APPS.POR_AME_APPROVAL_LIST SQL Statements

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

Line: 212

        and approverList(i).api_insertion = 'N'
        and approverList(i).group_or_chain_id < 3 ) then
          currentFirstApprover :=  approverList(i) ;
Line: 240

        SELECT position_id into tmpApprover.orig_system_id FROM PER_ALL_ASSIGNMENTS_F pa
                WHERE pa.person_id = pPersonId and pa.primary_flag = 'Y' and pa.assignment_type in ('E','C')
                and pa.position_id is not null and pa.assignment_status_type_id not in (
                select assignment_status_type_id from per_assignment_status_types where per_system_status = 'TERM_ASSIGN')
                and TRUNC ( pa.effective_start_date )
                <=  TRUNC(SYSDATE) AND NVL(pa.effective_end_date, TRUNC( SYSDATE)) >= TRUNC(SYSDATE);
Line: 253

        UPDATE po_requisition_headers_all
        SET first_position_id = tmpApprover.orig_system_id, first_approver_id = pPersonId
        WHERE requisition_header_id = pReqHeaderId;
Line: 259

              FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, ' Inserted the first_position_id and first_approver_id columns.' );
Line: 278

  tmpApprover.api_insertion := ame_util.apiAuthorityInsertion;
Line: 295

  SELECT name into tmpApprover.name FROM (
       SELECT name
       FROM wf_roles
       WHERE orig_system = tmpApprover.orig_system and orig_system_id = tmpApprover.orig_system_id
       and status = 'ACTIVE' and trunc (nvl( expiration_date, sysdate)) >= trunc(sysdate)
        ORDER BY start_date
  )
  WHERE rownum = 1;
Line: 395

procedure insert_approver(  pReqHeaderId        IN  NUMBER,
                            pPersonId           IN NUMBER,
                            pAuthority          IN VARCHAR2,
                            pApproverCategory   IN VARCHAR2,
                            pPosition           IN NUMBER,
			    pApproverNumber     IN NUMBER,
                            pInsertionType      IN VARCHAR2,
			    pApproverName   IN VARCHAR2,
                            pApprovalListStr    OUT NOCOPY VARCHAR2,
                            pApprovalListCount  OUT NOCOPY NUMBER,
                            pQuoteChar          OUT NOCOPY VARCHAR2,
                            pFieldDelimiter     OUT NOCOPY VARCHAR2
                          ) IS
  l_api_name varchar2(50):= 'insert_approver';
Line: 411

  insertOrder ame_util.insertionRecord2;
Line: 415

  E_NO_AVAILABLE_INSERTION EXCEPTION;
Line: 418

  availableInsertionList ame_util.insertionsTable2;
Line: 425

  l_insertion_type varchar2(1); -- To store insertion type
Line: 431

        FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Entering insert_approver...');
Line: 464

  tmpApprover.api_insertion := ame_util.apiInsertion;
Line: 488

     Second condition will be used to avoid this code when we are inserting first approver */
  IF ( hasHiddenApprovers = true AND pApproverName IS NOT NULL ) THEN
     if g_fnd_debug = 'Y' then
        IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_STATEMENT) THEN
          FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, ' Found Repeated/Skipped Approvers!'  );
Line: 513

     l_insertion_type := approverList(l_approver_position).api_insertion; -- Set insertion type which will be used to identify adhoc approver
Line: 515

     /* Condition 1.1: If we are inserting after an approver who belongs to a group
        Condition 1.2: If we are inserting after an approver who is either adhoc or belongs to COA
        Condition 2.1: If we are inserting approver before an approver who belongs to a group
        Condition 2.2: If we are inserting before an approver who is either adhoc or belongs to COA
        In each case we have to take care of approvers who are repeated or deleted (suppressed)
        And if there are approvers like this then either increment or decrement positionId depending upon whether
        we are inserting after or before */
     IF pInsertionType = 'A' THEN
        l_counter := l_approver_position +1;
Line: 525

           Checking it for 'after' case and not 'before' because insertion before adhoc is only possible if adhoc is inserted at
           the left end of chain. And in that case action_type_id is enough to locate exact position of insertion
           Requirement of these extra statuses have beed explained earlier. Not included condition check of 'approvedStatus'
           for 'before' case, because we dont provide option to insert before approver who have approved */
        IF l_insertion_type <> ame_util.apiInsertion THEN
          if l_group_or_chain_id > 1  then
             while( l_counter <= approverList.count AND approverList(l_counter).group_or_chain_id = l_group_or_chain_id
	           AND approverList(l_counter).approval_status IN (ame_util.repeatedStatus,ame_util.suppressedStatus,
                       ame_util.notifiedByRepeatedStatus, ame_util.approvedByRepeatedStatus, ame_util.rejectedByRepeatedStatus,
                       ame_util.approvedStatus) ) LOOP
               l_counter := l_counter + 1;
Line: 575

        FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Invoking ame_api3.getAvailableInsertions()..');
Line: 579

  ame_api3.getAvailableInsertions( applicationIdIn        => applicationId,
                                   transactionIdIn        => pReqHeaderId,
                                   positionIn             => absolutePosition,
                                   transactionTypeIn      => ameTransactionType,
                                   availableInsertionsOut => availableInsertionList
                                 );
Line: 588

        FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Done with ame_api3.getAvailableInsertions()..');
Line: 596

    FOR i IN 1 .. availableInsertionList.COUNT LOOP
    IF availableInsertionList(i).order_type IN
        (ame_util.absoluteOrder,ame_util.afterApprover, ame_util.beforeApprover) AND
       availableInsertionList(i).api_insertion = tmpApprover.api_insertion AND
       availableInsertionList(i).authority = tmpApprover.authority THEN

      insertOrder := availableInsertionList(i);
Line: 604

      tmpApprover.item_class := insertOrder.item_class;
Line: 605

      tmpApprover.item_id := insertOrder.item_id;
Line: 606

      tmpApprover.action_type_id := insertOrder.action_type_id;
Line: 607

      tmpApprover.group_or_chain_id := insertOrder.group_or_chain_id;
Line: 608

      tmpApprover.api_insertion := insertOrder.api_insertion;
Line: 609

      tmpApprover.authority := insertOrder.authority;
Line: 619

      SELECT name into tmpApprover.name FROM (
 	             SELECT name
 	             FROM wf_roles
 	             WHERE orig_system = tmpApprover.orig_system and orig_system_id = tmpApprover.orig_system_id
 	                   and status = 'ACTIVE' and trunc (nvl( expiration_date, sysdate)) >= trunc(sysdate)
 	             ORDER BY start_date
 	             )
 	    WHERE rownum = 1;
Line: 635

             FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Found the available position also to insert..');
Line: 645

  FOR i IN 1 .. availableInsertionList.COUNT LOOP
     /* We can insert after an approver if we have order_type in absoluteOrder,afterApprover or beforeApprover
        And for insertion before an approver we should have order_type as beforeApprover */
     IF ((pInsertionType = 'A' and availableInsertionList(i).order_type IN ( ame_util.absoluteOrder,ame_util.afterApprover, ame_util.beforeApprover))
          OR (pInsertionType = 'B' and availableInsertionList(i).order_type = ame_util.beforeApprover)) AND
       availableInsertionList(i).api_insertion = tmpApprover.api_insertion AND
       availableInsertionList(i).authority = tmpApprover.authority THEN

      insertOrder := availableInsertionList(i);
Line: 655

      tmpApprover.item_class := insertOrder.item_class;
Line: 656

      tmpApprover.item_id := insertOrder.item_id;
Line: 657

      tmpApprover.action_type_id := insertOrder.action_type_id;
Line: 658

      tmpApprover.group_or_chain_id := insertOrder.group_or_chain_id;
Line: 659

      tmpApprover.api_insertion := insertOrder.api_insertion;
Line: 660

      tmpApprover.authority := insertOrder.authority;
Line: 670

      SELECT name into tmpApprover.name FROM (
 	             SELECT name
 	             FROM wf_roles
 	             WHERE orig_system = tmpApprover.orig_system and orig_system_id = tmpApprover.orig_system_id
 	                   and status = 'ACTIVE' and trunc (nvl( expiration_date, sysdate)) >= trunc(sysdate)
 	             ORDER BY start_date
 	             )
 	    WHERE rownum = 1;
Line: 686

             FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Found the available position also to insert..');
Line: 702

            FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Invoking ame_api3.insertApprover()..');
Line: 706

     ame_api3.insertApprover( applicationIdIn   => applicationId,
                              transactionIdIn   => pReqHeaderId,
                              approverIn        => tmpApprover,
                              positionIn        => absolutePosition,
                              insertionIn       => insertOrder,
                              transactionTypeIn => ameTransactionType
                           );
Line: 716

            FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Done with ame_api3.insertApprover()..');
Line: 724

          FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Leaving insert_approver...');
Line: 737

  raise E_NO_AVAILABLE_INSERTION;
Line: 740

  when E_NO_AVAILABLE_INSERTION then
    pApprovalListCount := 0;
Line: 742

    pApprovalListStr := 'EXCEPTION-E_NO_AVAILABLE_INSERTION';
Line: 746

                      l_api_name || '.E_NO_AVAILABLE_INSERTION', 'No available insertion order');
Line: 788

procedure delete_approver(  pReqHeaderId        IN  NUMBER,
                            pPersonId           IN  NUMBER,
                            pOrigSystem         IN VARCHAR2,
                            pOrigSystemId       IN NUMBER,
                            pRecordName         IN VARCHAR2,
                            pAuthority          IN VARCHAR2,
                            pApprovalListStr    OUT NOCOPY VARCHAR2,
                            pApprovalListCount  OUT NOCOPY NUMBER,
                            pQuoteChar          OUT NOCOPY VARCHAR2,
                            pFieldDelimiter     OUT NOCOPY VARCHAR2
                          ) IS

  l_api_name varchar2(50):= 'delete_approver';
Line: 812

         FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Entering delete_approver...');
Line: 892

                  FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Found the approver to be deleted also in the list...');
Line: 925

    SELECT FIRST_POSITION_ID
    INTO l_first_position_id
    FROM po_requisition_headers_all
    WHERE requisition_header_id = pReqHeaderId;
Line: 943

        UPDATE po_requisition_headers_all
        SET first_position_id = NULL, first_approver_id = NULL
        WHERE requisition_header_id = pReqHeaderId;
Line: 962

        FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Leaving delete_approver...');
Line: 1067

    SELECT wf_item_type, wf_item_key
    INTO l_itemtype, l_itemkey
    FROM po_requisition_headers_all
    WHERE requisition_header_id = pReqHeaderId;
Line: 1084

    select authorization_status, preparer_id
    into authorizationStatus, preparerId
    from po_requisition_headers
    where requisition_header_id = pReqHeaderId;
Line: 1139

        SELECT Count(*) INTO  l_appr
        FROM po_action_history WHERE
        object_id =pReqHeaderId
        AND  OBJECT_TYPE_CODE =  'REQUISITION'
        AND  ACTION_CODE <> 'SUBMIT';
Line: 1165

         UPDATE po_requisition_headers_all
         SET first_position_id = NULL, first_approver_id = NULL
         WHERE requisition_header_id = pReqHeaderId;
Line: 1208

       UPDATE po_requisition_headers_all
       SET first_position_id = NULL, first_approver_id = NULL
       WHERE requisition_header_id = pReqHeaderId;
Line: 1334

    SELECT DISTINCT wf_item_type, wf_item_key
    INTO l_itemtype, l_itemkey
    FROM po_change_requests
    WHERE document_header_id= pReqHeaderId AND
          document_type = 'REQ' AND
          action_type IN ('MODIFICATION', 'CANCELLATION') AND
          creation_date = (select max(creation_date)
                          from PO_CHANGE_REQUESTS
                          where DOCUMENT_HEADER_ID = pReqHeaderId) AND
          request_status NOT IN ('ACCEPTED', 'REJECTED');
Line: 1345

    SELECT wf_item_type, wf_item_key
    INTO l_itemtype, l_itemkey
    FROM po_requisition_headers_all
    WHERE requisition_header_id = pReqHeaderId;
Line: 1411

    select authorization_status
    into authorizationStatus
    from po_requisition_headers_all
    where requisition_header_id = pReqHeaderId;
Line: 1436

        SELECT COUNT(1)
        INTO changeRequestExist
        FROM
          PO_CHANGE_REQUESTS pcr
        WHERE
          pcr.document_header_id = pReqHeaderId AND
          pcr.document_type = 'REQ' AND
          pcr.action_type IN ('MODIFICATION', 'CANCELLATION') AND
          pcr.approval_required_flag = 'Y' AND
          pcr.request_status NOT IN ('ACCEPTED', 'REJECTED');
Line: 1594

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,x_progress);
Line: 1618

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,x_progress);
Line: 1644

           (approvers(i).api_insertion = ame_util.oamGenerated or
            approvers(i).api_insertion = ame_util.apiAuthorityInsertion) and
           (approvers(i).approval_status is null or
            approvers(i).approval_status = ame_util.nullStatus)) then
      l_return_val := 'N';
Line: 1658

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,x_progress);
Line: 1754

           approvers(i).api_insertion = ame_util.oamGenerated and
           (approvers(i).approval_status is null or
            approvers(i).approval_status = ame_util.nullStatus)) then

              if approvers(i).orig_system = ame_util.posOrigSystem then

                   if g_fnd_debug = 'Y' then
                        IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_STATEMENT) THEN
                          FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'First record is Position Hierarchy action type...');
Line: 1767

                       SELECT person_id into xPersonId FROM (
                          SELECT person.person_id FROM per_all_people_f person, per_all_assignments_f asg
                          WHERE asg.position_id = approvers(i).orig_system_id and trunc(sysdate) between person.effective_start_date
                          and nvl(person.effective_end_date, trunc(sysdate)) and person.person_id = asg.person_id
                          and asg.primary_flag = 'Y' and asg.assignment_type in ('E','C')
                          and ( person.current_employee_flag = 'Y' or person.current_npw_flag = 'Y' )
                          and asg.assignment_status_type_id not in (
                             SELECT assignment_status_type_id FROM per_assignment_status_types
                             WHERE per_system_status = 'TERM_ASSIGN'
                         ) and trunc(sysdate) between asg.effective_start_date and asg.effective_end_date order by person.last_name
                      ) where rownum = 1;
Line: 1826

PROCEDURE can_delete_oam_approvers( pReqHeaderId  IN NUMBER,
                                    xResult       OUT NOCOPY VARCHAR2) IS
  l_api_name varchar2(50):= 'can_delete_oam_approvers';
Line: 1838

        FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Entering can_delete_oam_approvers...');
Line: 1876

        FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Leaving can_delete_oam_approvers...');
Line: 1893

END can_delete_oam_approvers;
Line: 1919

    SELECT COUNT(1)
    INTO changeRequestExist
    FROM
     PO_CHANGE_REQUESTS pcr
    WHERE
     pcr.document_header_id = pReqHeaderId AND
     pcr.document_type = 'REQ' AND
     pcr.action_type IN ('MODIFICATION', 'CANCELLATION') AND
     pcr.request_status NOT IN ('ACCEPTED', 'REJECTED');
Line: 1941

    SELECT org_id
      INTO orgId
      FROM po_requisition_headers_all
     WHERE requisition_header_id = pReqHeaderId;
Line: 1949

      SELECT type_lookup_code, org_id
      INTO lookupCode, orgId
      FROM po_requisition_headers_all
      WHERE requisition_header_id = pReqHeaderId;
Line: 1984

    SELECT ame_transaction_type
    INTO x_ame_txn_type
    FROM po_document_types_all_b
    WHERE document_type_code = p_doc_type
    and document_subtype = p_doc_subtype
    and org_id = p_org_id;
Line: 2069

  select PREPARER_ID
  into l_preparer_id
  from po_requisition_headers_all
  where reqHeaderId = requisition_header_id;
Line: 2126

      SELECT POSITION_ID
      INTO l_preparer_pos_id
      FROM PER_ALL_ASSIGNMENTS_F
      WHERE PERSON_ID = l_preparer_id
        and primary_flag = 'Y'
        and assignment_type in ('E','C')
        and assignment_status_type_id not in ( select assignment_status_type_id from per_assignment_status_types where per_system_status = 'TERM_ASSIGN')
        and TRUNC ( effective_start_date ) <=  TRUNC(SYSDATE)
        and NVL(effective_end_date, TRUNC( SYSDATE)) >= TRUNC(SYSDATE)
        and rownum = 1;
Line: 2180

       SELECT orig_system, orig_system_id into l_orig_system, l_orig_system_id FROM wf_roles where name =  approversTableIn(i).name and rownum = 1;
Line: 2226

        SELECT orig_system_id, display_name, description into l_person_id, l_full_name, l_job_or_position
        FROM wf_roles where name =  approversTableIn(i).name and rownum = 1;
Line: 2251

           SELECT position_id, job_id INTO l_position_id, l_job_id
           FROM per_all_assignments_f
           WHERE person_id = l_person_id
                and primary_flag = 'Y' and assignment_type in ('E','C')
                and assignment_status_type_id not in ( select assignment_status_type_id from per_assignment_status_types where per_system_status = 'TERM_ASSIGN')
                and TRUNC ( effective_start_date ) <=  TRUNC(SYSDATE) AND NVL(effective_end_date, TRUNC( SYSDATE)) >= TRUNC(SYSDATE)
                and rownum = 1;
Line: 2260

               SELECT name INTO l_job_or_position FROM per_all_positions WHERE position_id = l_position_id;
Line: 2264

               SELECT name INTO l_job_or_position FROM per_jobs WHERE job_id = l_job_id;
Line: 2288

        marshalField(approversTableIn(i).api_insertion, quoteChar, fieldDelimiter);
Line: 2488

   select authorization_status, wf_item_type, wf_item_key
      into x_approval_status, l_itemtype, l_itemkey
   from po_requisition_headers_all
         where requisition_header_id = p_req_header_id;
Line: 2510

          SELECT max(change_request_group_id) INTO l_change_request_group_id
          FROM po_change_requests
          WHERE document_header_id = p_req_header_id
              AND document_type = 'REQ';
Line: 2525

        SELECT wf_item_type, wf_item_key,
               decode( request_status, 'ACCEPTED', x_approval_status,
                       'MGR_APP', 'APPROVED',
                       'REJECTED','REJECTED',
                       'IN PROCESS' )
        INTO l_itemtype, l_itemkey, x_approval_status
        FROM po_change_requests
        WHERE document_header_id = p_req_header_id
              AND change_request_group_id = l_change_request_group_id
              AND document_type = 'REQ'
              AND action_type <> 'DERIVED'
              AND rownum = 1;
Line: 2543

   SELECT distinct meaning into x_approval_status
   FROM fnd_lookup_values_vl
   WHERE lookup_code = x_approval_status and lookup_type = 'AUTHORIZATION STATUS';
Line: 2617

   SELECT email_address INTO x_email FROM per_all_people_f
          WHERE person_id = p_approver_id
          AND TRUNC ( effective_start_date ) <=  TRUNC(SYSDATE) AND NVL(effective_end_date, TRUNC( SYSDATE)) >= TRUNC(SYSDATE)
          AND rownum = 1;
Line: 2629

   SELECT position_id, job_id INTO l_position_id, l_job_id
   FROM per_all_assignments_f
   WHERE person_id = p_approver_id
        and primary_flag = 'Y' and assignment_type in ('E','C')
        and assignment_status_type_id not in ( select assignment_status_type_id from per_assignment_status_types where per_system_status = 'TERM_ASSIGN')
        and TRUNC ( effective_start_date ) <=  TRUNC(SYSDATE) AND NVL(effective_end_date, TRUNC( SYSDATE)) >= TRUNC(SYSDATE)
        and rownum = 1;
Line: 2638

       SELECT name INTO x_title FROM per_all_positions WHERE position_id = l_position_id;
Line: 2642

       SELECT name INTO x_title FROM per_jobs WHERE job_id = l_job_id;
Line: 2787

  select PREPARER_ID,
         first_position_id,
         first_approver_id,
         org_id,
         AUTHORIZATION_STATUS,
         CHANGE_PENDING_FLAG
  into   l_preparer_id,
         l_first_position_id,
         l_first_approver_id,
         l_org_id,
         l_authorizationStatus,
         l_change_pending_flag
  from   po_requisition_headers_all
  where  pReqHeaderId = requisition_header_id;
Line: 2832

     select DISTINCT  nvl(APPROVAL_REQUIRED_FLAG, 'N')
     into l_approval_reqd_flag
     from PO_CHANGE_REQUESTS
     where DOCUMENT_HEADER_ID = pReqHeaderId
     and action_type IN ('MODIFICATION', 'CANCELLATION')
     and creation_date = (select max(creation_date)
                          from PO_CHANGE_REQUESTS
                          where DOCUMENT_HEADER_ID = pReqHeaderId);
Line: 2867

       SELECT type_lookup_code
       INTO p_doc_subtype
       FROM po_requisition_headers_all
       WHERE requisition_header_id = pReqHeaderId;
Line: 3026

            SELECT full_name
            INTO l_full_name
            FROM per_all_people_f
            WHERE person_id = l_first_approver_id
            AND TRUNC(sysdate) between effective_start_date and effective_end_date;
Line: 3033

              SELECT person_id, full_name into l_person_id,l_full_name FROM (
                       SELECT person.person_id, person.full_name FROM per_all_people_f person, per_all_assignments_f asg
                       WHERE asg.position_id = l_orig_system_id and trunc(sysdate) between person.effective_start_date
                       and nvl(person.effective_end_date, trunc(sysdate)) and person.person_id = asg.person_id
                       and asg.primary_flag = 'Y' and asg.assignment_type in ('E','C')
                       and ( person.current_employee_flag = 'Y' or person.current_npw_flag = 'Y' )
                       and asg.assignment_status_type_id not in (
                          SELECT assignment_status_type_id FROM per_assignment_status_types
                          WHERE per_system_status = 'TERM_ASSIGN'
                       ) and trunc(sysdate) between asg.effective_start_date and asg.effective_end_date order by person.last_name
                ) where rownum = 1;
Line: 3061

        SELECT employee_id into l_person_id
             FROM fnd_user
             WHERE user_id = l_orig_system_id
             and trunc(sysdate) between start_date and nvl(end_date, sysdate+1);
Line: 3094

           SELECT position_id, job_id INTO l_position_id, l_job_id
           FROM per_all_assignments_f
           WHERE person_id = l_person_id
             and (l_authorizationStatus = 'APPROVED'
                 or (primary_flag = 'Y' and assignment_type in ('E','C')
                    and assignment_status_type_id not in ( select assignment_status_type_id from per_assignment_status_types where per_system_status = 'TERM_ASSIGN')
                    and TRUNC ( effective_start_date ) <=  TRUNC(SYSDATE) AND NVL(effective_end_date, TRUNC( SYSDATE)) >= TRUNC(SYSDATE)
                   )
                 )
             and rownum = 1;
Line: 3106

               SELECT name INTO l_job_or_position FROM per_all_positions WHERE position_id = l_position_id;
Line: 3110

               SELECT name INTO l_job_or_position FROM per_jobs WHERE job_id = l_job_id;
Line: 3133

          marshalField(approverList(i).api_insertion, quoteChar, fieldDelimiter);
Line: 3242

  select PREPARER_ID
  into l_preparer_id
  from po_requisition_headers_all
  where pReqHeaderId = requisition_header_id;
Line: 3353

    select first_position_id, first_approver_id
    into l_first_position_id, l_first_approver_id
    from po_requisition_headers_all
    where p_reqHeaderId = requisition_header_id;
Line: 3377

      SELECT full_name
      INTO x_fullName
      FROM per_all_people_f
      WHERE person_id = l_first_approver_id
      AND trunc(sysdate) between effective_start_date and effective_end_date;
Line: 3384

      SELECT person_id, full_name
      into x_personId, x_fullName
      FROM (
              SELECT person.person_id, person.full_name
              FROM per_all_people_f person, per_all_assignments_f asg
              WHERE asg.position_id = p_origSystemId
              and trunc(sysdate) between person.effective_start_date
              and nvl(person.effective_end_date, trunc(sysdate)) and person.person_id = asg.person_id
              and asg.primary_flag = 'Y' and asg.assignment_type in ('E','C')
              and ( person.current_employee_flag = 'Y' or person.current_npw_flag = 'Y' )
              and asg.assignment_status_type_id not in (
                  SELECT assignment_status_type_id
                  FROM per_assignment_status_types
                  WHERE per_system_status = 'TERM_ASSIGN'
                  )
              and trunc(sysdate) between asg.effective_start_date and asg.effective_end_date
              order by person.last_name
              )
      WHERE rownum = 1;
Line: 3415

    SELECT employee_id
    into x_personId
    FROM fnd_user
    WHERE user_id = p_origSystemId
    and trunc(sysdate) between start_date and nvl(end_date, sysdate+1);
Line: 3505

        and approverList(i).api_insertion = 'N'
        and approverList(i).group_or_chain_id < 3 ) then

          if g_fnd_debug = 'Y' then
              IF (FND_LOG.G_CURRENT_RUNTIME_LEVEL <= FND_LOG.LEVEL_STATEMENT) THEN
                FND_LOG.string(FND_LOG.level_statement, g_module_prefix || l_api_name, 'Found the first authority approver...' || currentFirstApprover.name );
Line: 3590

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);
Line: 3609

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);
Line: 3618

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);
Line: 3628

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);
Line: 3637

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);
Line: 3644

    SELECT ame_transaction_type
      INTO l_ame_Transaction_Type
      FROM po_document_types
    WHERE document_type_code = l_document_type
      and document_subtype   = l_document_subtype;
Line: 3662

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);
Line: 3670

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);
Line: 3681

     /* DEBUG */  PO_WF_DEBUG_PKG.insert_debug(itemtype,itemkey,l_progress);