DBA Data[Home] [Help]

APPS.IGIDOSL SQL Statements

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

Line: 50

      SELECT currency_code FROM gl_sets_of_books
      WHERE  set_of_books_id = p_sob_id;
Line: 55

      SELECT user_id, employee_id
      FROM   fnd_user
      WHERE  user_name = p_username;
Line: 103

   /* =================== SELECTOR =================== */

   PROCEDURE Selector(itemtype   IN VARCHAR2,
                      itemkey    IN VARCHAR2,
                      actid      IN NUMBER,
                      funcmode   IN VARCHAR2,
                      resultout OUT NOCOPY VARCHAR2) IS

   l_session_org_id   NUMBER;
Line: 120

         DEBUG_LOG_STRING (l_proc_level, 'selector.Msg1',
                           ' ** BEGIN SELECTOR ** ');
Line: 160

 DEBUG_LOG_STRING (l_proc_level, 'Selector.Msg',
                           ' Getting apps context with userid, respid, applid ' );
Line: 176

         DEBUG_LOG_STRING (l_proc_level, 'Selector.Msg',
                           ' Setting apps context with userid, respid, applid as '
                           ||l_user_id ||' '|| l_resp_id ||' '|| l_appl_id );
Line: 191

         DEBUG_LOG_STRING (l_proc_level, 'Selector.Msg2',
                           ' result --> ' || resultout);
Line: 193

         DEBUG_LOG_STRING (l_proc_level, 'selector.Msg3',
                           ' ** END SELECTOR ** ' || resultout);
Line: 200

           DEBUG_LOG_UNEXP_ERROR ('selector.unexp1','DEFAULT');
Line: 203

        Wf_Core.Context ('IGIDOSL','Selector', itemtype, itemkey,
                          TO_CHAR(actid),funcmode);
Line: 206

   END Selector;
Line: 239

        SELECT SUM(NVL(s.funds_available,0) - NVL(s.new_balance,0))
        FROM   igi_dos_trx_sources s
        WHERE  trx_id IN (
                          SELECT trx_id FROM igi_dos_trx_headers
                          WHERE  trx_number = Dossier_num
                          AND    dossier_id = Dossier_id);
Line: 281

      SELECT meaning
      INTO   l_trx_status
      FROM   igi_lookups
      WHERE  lookup_type = 'DOSSIER STATUS'
      AND    lookup_code = 'INPROCESS';
Line: 293

      UPDATE igi_dos_trx_headers trx
      SET    trx.trx_status = l_trx_status,
             trx.last_update_date= sysdate
      WHERE  trx.trx_number = dossier_num;
Line: 300

                           ' updated igi_dos_trx_headers ');
Line: 304

      SELECT igi_dos_approval_run_s1.NextVal
      INTO   l_approval_run
      FROM   sys.dual;
Line: 614

                                  aname    =>  'SELECTED_USER_NAME',
                                  avalue   =>  l_picked_role);
Line: 619

                           ' setting l_picked_role to SELECTED_USER_NAME ');
Line: 697

        SELECT  hap.position_id,
                hap.business_group_id,
                hap.organization_id,
                fu.user_name
         FROM   hr_all_positions_f      hap,
                per_all_assignments_f   paa,
                fnd_user                fu ,
                per_people_f p,
                per_periods_of_service b
         WHERE
                fu.user_id = g_userid
         AND    paa.person_id = p.person_id
         AND    paa.primary_flag = 'Y'
         AND    paa.period_of_service_id = b.period_of_service_id
         AND    TRUNC(SYSDATE) BETWEEN p.effective_start_date AND p.effective_end_date
         AND    TRUNC(SYSDATE) BETWEEN paa.effective_start_date AND paa.effective_end_date
         AND    (b.actual_termination_date is null OR b.actual_termination_date>= trunc(sysdate)  )
         AND    p.employee_number IS NOT NULL
         and    fu.start_date <= SYSDATE
         and    NVL(fu.end_date,SYSDATE) >= SYSDATE
         and    fu.employee_id IS NOT NULL
         and    fu.employee_id = P.PERSON_ID
         and    NVL(b.actual_termination_date,SYSDATE) >= SYSDATE
         and    P.business_group_id = paa.business_group_id
         and    paa.assignment_type = 'E'
         and    paa.business_group_id = hap.business_group_id
         and    paa.position_id IS NOT NULL
         and    paa.position_id = hap.position_id
         and    paa.organization_id = hap.organization_id
         and    hap.date_effective <= SYSDATE
         and    NVL(hap.date_end, SYSDATE) >= SYSDATE
         and    NVL(UPPER(hap.status), 'VALID') NOT IN ('INVALID') ;
Line: 738

         SELECT hierarchy_id
         FROM igi_dos_doc_types
         WHERE dossier_id = p_dossier_id;
Line: 749

         SELECT pos_structure_version_id
         FROM   per_pos_structure_versions
     WHERE  position_structure_id = p_hierarchy_id
     AND    SYSDATE BETWEEN date_FROM AND NVL(date_to, SYSDATE)
         AND    business_group_id = p_business_group_id
     AND    version_number =
           (SELECT MAX(version_number)
            FROM   per_pos_structure_versions
            WHERE  position_structure_id = p_hierarchy_id
            AND    SYSDATE BETWEEN date_FROM AND NVL(date_to,SYSDATE)
            AND    business_group_id = p_business_group_id);
Line: 769

         SELECT ppse.parent_position_id
         FROM   per_pos_structure_elements ppse
         WHERE  ppse.pos_structure_version_id = p_pos_structure_ver_id
         AND    business_group_id = p_business_group_id
         AND    ppse.parent_position_id NOT IN
            (SELECT subordinate_position_id
             FROM   per_pos_structure_elements
             WHERE  pos_structure_version_id = p_pos_structure_ver_id
             AND    business_group_id = p_business_group_id);
Line: 788

         SELECT parent_position_id
         FROM   per_pos_structure_elements
         WHERE  pos_structure_version_id = p_hier_ver_id
         AND    business_group_id = p_business_group_id
         AND    subordinate_position_id = p_position_id;
Line: 1187

                                         aname    => 'SELECTED_USER_NAME');
Line: 1191

                                 ' GetItemAttrText SELECTED_USER_NAME --> ' || l_current_user_name);
Line: 1322

          SELECT meaning
          FROM igi_lookups
          WHERE lookup_type ='DOSSIER STATUS'
          AND   lookup_code ='COMPLETE';
Line: 1356

       SELECT dtype.sob_id
       INTO   l_sob_id
       FROM   igi_dos_doc_types   dtype,
              igi_dos_trx_headers thead
       WHERE  thead.dossier_id = dtype.dossier_id
       AND    thead.trx_number = l_dossier_num;
Line: 1376

       select trx_status into l_status
       from IGI_DOS_TRX_HEADERS
       where trx_status = ( SELECT meaning
         FROM   igi_lookups
         WHERE  lookup_type ='DOSSIER STATUS'
         and    lookup_code ='INPROCESS')
       AND trx_number       = l_trx_number ;
Line: 1398

          UPDATE igi_dos_trx_headers trx
          SET    trx.trx_status = l_trx_status,
                 trx.last_update_date= sysdate
          WHERE  trx.trx_number = l_dossier_num;
Line: 1419

        SELECT message_text
		INTO l_fatal_error
		FROM fnd_new_messages
        WHERE message_name = 'IGI_DOS_ERROR_APPROVED';
Line: 1515

    SELECT meaning INTO l_trx_status
    FROM  igi_lookups
    WHERE lookup_type ='DOSSIER STATUS'
    and   lookup_code ='REJECTED';
Line: 1525

    UPDATE IGI_DOS_TRX_HEADERS trx
    SET    trx.trx_status       = l_trx_status,
           trx.last_update_date= sysdate
    WHERE  trx.trx_number      = l_dossier_id;
Line: 1792

         select fu.user_name user_name
         FROM   hr_all_positions_f      hap,
                per_all_assignments_f   paa,
	        fnd_user                fu ,
                per_people_f p,
                per_periods_of_service b
         WHERE
                paa.person_id = p.person_id
         AND    paa.primary_flag = 'Y'
         AND    paa.period_of_service_id = b.period_of_service_id
         AND    TRUNC(SYSDATE) BETWEEN p.effective_start_date AND p.effective_end_date
         AND    TRUNC(SYSDATE) BETWEEN paa.effective_start_date AND paa.effective_end_date
         AND   (b.actual_termination_date >= trunc(sysdate) or b.actual_termination_date is null)
         AND    p.employee_number IS NOT NULL
         and    fu.start_date <= SYSDATE
         and    NVL(fu.end_date,SYSDATE) >= SYSDATE
         and    fu.employee_id IS NOT NULL
         and    fu.employee_id = p.person_id
         and    p.business_group_id = paa.business_group_id
         and    p.business_group_id = l_business_group_id
         -- and    paa.organization_id = l_organization_id bug#10237895
         and    paa.assignment_type = 'E'
         and    paa.business_group_id = hap.business_group_id
         and    paa.position_id IS NOT NULL
         and    paa.position_id = hap.position_id
         and    paa.organization_id = hap.organization_id
         and    hap.date_effective <= SYSDATE
         and    NVL(hap.date_end, SYSDATE) >= SYSDATE
         and    NVL(UPPER(hap.status), 'VALID') NOT IN ('INVALID')
         and    hap.position_id = l_parent_position_id;
Line: 2034

                                    aname    =>  'SELECTED_USER_NAME',
                                    avalue   =>  l_next_authoriser) ;
Line: 2039

                             ' l_next_authoriser - SELECTED_USER_NAME --> ' || l_next_authoriser);
Line: 2125

      SELECT dtype.SOB_ID
      INTO l_sob_id
      FROM IGI_DOS_DOC_TYPES dtype,
           igi_dos_trx_headers thead
      WHERE thead.dossier_id = dtype.dossier_id
      and   thead.trx_number = l_trx_number;
Line: 2138

       select trx_status into l_status
       from IGI_DOS_TRX_HEADERS
       where trx_status = ( SELECT meaning
         FROM   igi_lookups
         WHERE  lookup_type ='DOSSIER STATUS'
         and    lookup_code ='INPROCESS')
       AND trx_number       = l_trx_number ;
Line: 2162

        SELECT message_text
		INTO l_fatal_error
		FROM fnd_new_messages
        WHERE message_name = 'IGI_DOS_ERROR_REJECTED';
Line: 2188

         SELECT meaning INTO l_trx_status
         FROM   igi_lookups
         WHERE  lookup_type ='DOSSIER STATUS'
         and    lookup_code ='REJECTED';
Line: 2198

         UPDATE IGI_DOS_TRX_HEADERS trx
         SET    trx.trx_status       = l_trx_status,
                trx.last_update_date= sysdate
         WHERE  trx.trx_number       = l_trx_number ;
Line: 2205

                              '  updated igi_dos_trx_headers ');
Line: 2440

     SELECT trx_id FROM igi_dos_trx_headers
     WHERE  trx_number = l_dossier_num
     AND    dossier_id = l_dossier_id;
Line: 2446

    SELECT s.budget_name,
           NVL(s.funds_available,0) - NVL(s.new_balance,0) amount,
           s.visible_segments,
           s.period_name,
           s.source_id,
           s.source_trx_id
    FROM   igi_dos_trx_sources s
    WHERE  trx_id = l_dossier_trx_id
    AND EXISTS (SELECT budget_name
                FROM   igi_dos_trx_dest d
                WHERE  d.trx_id = l_dossier_trx_id
                AND    source_id = s.source_id
                AND    source_trx_id = s.source_trx_id);
Line: 2462

    SELECT budget_name,
           ABS(NVL(funds_available,0) - NVL(new_balance,0)) amount,
           visible_segments,
           period_name,
           source_id,
           source_trx_id,
           destination_id,
           dest_trx_id
    FROM   igi_dos_trx_dest
    WHERE  trx_id = l_dossier_trx_id
    AND    source_id = p_source_id
    AND    source_trx_id = p_source_trx_id
    ORDER BY destination_id,
             dest_trx_id;
Line: 2543

      SELECT dtype.SOB_ID
      INTO g_sob_id
      FROM IGI_DOS_DOC_TYPES dtype,
           igi_dos_trx_headers thead
      WHERE thead.dossier_id = dtype.dossier_id
      and   thead.trx_number = l_dossier_num;
Line: 2674

                                 ' l_trx_detail updated to clob ');
Line: 2749

         SELECT meaning
         FROM   igi_lookups
         WHERE  lookup_type = 'DOSSIER STATUS'
         AND    lookup_code = 'CREATING';
Line: 2772

      UPDATE igi_dos_trx_headers trx
      SET    trx.trx_status = l_trx_status,
             trx.last_update_date= sysdate
      WHERE  trx.trx_number = l_dossier_num;
Line: 2826

       SELECT employee_id
       FROM   fnd_user
       WHERE  user_id = p_user_id;
Line: 2908

         select    hap.position_id,
               hap.name,
               hap.business_group_id,
               hap.organization_id
         FROM
               hr_all_positions_f      hap,
               per_all_assignments_f   paa,
               per_people_f p,
               per_periods_of_service b
         WHERE
               p.person_id = p_emp_id
         AND   paa.person_id = p.person_id
         AND   paa.primary_flag = 'Y'
         AND   paa.period_of_service_id = b.period_of_service_id
         AND   TRUNC(SYSDATE) BETWEEN p.effective_start_date AND p.effective_end_date
         AND   TRUNC(SYSDATE) BETWEEN paa.effective_start_date AND paa.effective_end_date
         AND   (b.actual_termination_date>= trunc(sysdate) or b.actual_termination_date is null)
         AND   p.employee_number IS NOT NULL
         and   p.business_group_id = paa.business_group_id
         and   paa.assignment_type = 'E'
         and   paa.business_group_id = hap.business_group_id
         and   paa.position_id IS NOT NULL
         and   paa.position_id = hap.position_id
         and   paa.organization_id = hap.organization_id
         and   hap.date_effective <= SYSDATE
         and   NVL(hap.date_end, SYSDATE) >= SYSDATE
         and   NVL(UPPER(hap.status), 'VALID') NOT IN ('INVALID') ;
Line: 3081

         SELECT hierarchy_id
         FROM igi_dos_doc_types
         WHERE dossier_id = p_dossier_id;
Line: 3089

         SELECT pos_structure_version_id
         FROM   per_pos_structure_versions
         WHERE  position_structure_id = p_hierarchy_id
         AND    SYSDATE BETWEEN date_FROM AND NVL(date_to, SYSDATE)
         AND    business_group_id = p_business_group_id
         AND    version_number =
                (SELECT MAX(version_number)
                 FROM   per_pos_structure_versions
                 WHERE  position_structure_id = p_hierarchy_id
                 AND    SYSDATE BETWEEN date_FROM AND NVL(date_to,SYSDATE)
                 AND    business_group_id = p_business_group_id);
Line: 3108

         SELECT pos_structure_element_id
         FROM   per_pos_structure_elements
         WHERE  pos_structure_version_id = p_pos_structure_ver_id
         AND    business_group_id = p_business_group_id
         AND   (subordinate_position_id = p_position_id OR
                parent_position_id = p_position_id);
Line: 3299

        	SELECT message_text
		INTO l_fatal_error
		FROM fnd_new_messages
        WHERE message_name = 'IGI_DOS_VALID_RESP';
Line: 3305

		l_fatal_error := 'Select a valid responsibilty before approving or rejecting the dossier.';