DBA Data[Home] [Help]

APPS.IGC_CC_BUDGETARY_CTRL_PKG SQL Statements

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

Line: 48

  p_update_flag                IN OUT NOCOPY      VARCHAR2
);
Line: 63

  p_update_flag                IN OUT NOCOPY      VARCHAR2
);
Line: 78

  p_update_flag                IN OUT NOCOPY      VARCHAR2
);
Line: 146

  p_update_flag                IN OUT NOCOPY      VARCHAR2
) IS

   l_api_name        CONSTANT VARCHAR2(30)   := 'Account_Line_Wrapper';
Line: 163

      IGC_CC_ACCT_LINES_PKG.Update_Row (
         p_api_version,
         p_init_msg_list,
         p_commit,
         p_validation_level,
         x_return_status,
         X_msg_count,
         X_msg_data,
         x_rowid,
         p_cc_acct_lines_rec.CC_acct_line_id,
         p_cc_acct_lines_rec.CC_header_id,
         p_cc_acct_lines_rec.Parent_Header_Id,
         p_cc_acct_lines_rec.Parent_Acct_Line_Id,
         p_cc_acct_lines_rec.CC_Charge_Code_Combination_Id,
         p_cc_acct_lines_rec.CC_Acct_Line_Num,
         p_cc_acct_lines_rec.CC_Budget_Code_Combination_Id,
         p_cc_acct_lines_rec.CC_Acct_Entered_Amt,
         p_cc_acct_lines_rec.CC_Acct_Func_Amt,
         p_cc_acct_lines_rec.CC_Acct_Desc,
         p_cc_acct_lines_rec.CC_Acct_Billed_Amt,
         p_cc_acct_lines_rec.CC_Acct_Unbilled_Amt,
         p_cc_acct_lines_rec.CC_Acct_Taxable_Flag,
         p_cc_acct_lines_rec.Tax_Id,
         p_cc_acct_lines_rec.cc_acct_encmbrnc_amt,
         p_cc_acct_lines_rec.cc_acct_encmbrnc_date,
         p_cc_acct_lines_rec.CC_Acct_Encmbrnc_Status,
         p_cc_acct_lines_rec.Project_Id,
         p_cc_acct_lines_rec.Task_Id,
         p_cc_acct_lines_rec.Expenditure_Type,
         p_cc_acct_lines_rec.Expenditure_Org_Id,
         p_cc_acct_lines_rec.Expenditure_Item_Date,
         p_cc_acct_lines_rec.Last_Update_Date,
         p_cc_acct_lines_rec.Last_Updated_By,
         p_cc_acct_lines_rec.Last_Update_Login,
         p_cc_acct_lines_rec.Creation_Date,
         p_cc_acct_lines_rec.Created_By,
         p_cc_acct_lines_rec.Attribute1,
         p_cc_acct_lines_rec.Attribute2,
         p_cc_acct_lines_rec.Attribute3,
         p_cc_acct_lines_rec.Attribute4,
         p_cc_acct_lines_rec.Attribute5,
         p_cc_acct_lines_rec.Attribute6,
         p_cc_acct_lines_rec.Attribute7,
         p_cc_acct_lines_rec.Attribute8,
         p_cc_acct_lines_rec.Attribute9,
         p_cc_acct_lines_rec.Attribute10,
         p_cc_acct_lines_rec.Attribute11,
         p_cc_acct_lines_rec.Attribute12,
         p_cc_acct_lines_rec.Attribute13,
         p_cc_acct_lines_rec.Attribute14,
         p_cc_acct_lines_rec.Attribute15,
         p_cc_acct_lines_rec.Context,
         p_cc_acct_lines_rec.cc_func_withheld_amt,
         p_cc_acct_lines_rec.cc_ent_withheld_amt,
         p_update_flag,
         p_cc_acct_lines_rec.Tax_Classif_Code
        );
Line: 268

  p_update_flag                IN OUT NOCOPY      VARCHAR2
) IS

   l_api_name        CONSTANT VARCHAR2(30)   := 'Det_Pf_Wrapper';
Line: 285

      IGC_CC_DET_PF_PKG.Update_Row (
            p_api_version,
            p_init_msg_list,
            p_commit,
            p_validation_level,
            x_return_status,
            x_msg_count,
            x_msg_data,
            x_rowid,
            p_cc_pmt_fcst_rec.CC_det_pf_line_id,
            p_cc_pmt_fcst_rec.CC_Det_PF_Line_Num,
            p_cc_pmt_fcst_rec.CC_Acct_Line_Id,
            p_cc_pmt_fcst_rec.Parent_Acct_Line_Id,
            p_cc_pmt_fcst_rec.Parent_Det_PF_Line_Id,
            p_cc_pmt_fcst_rec.CC_Det_PF_Entered_Amt,
            p_cc_pmt_fcst_rec.CC_Det_PF_Func_Amt,
            p_cc_pmt_fcst_rec.CC_Det_PF_Date,
            p_cc_pmt_fcst_rec.CC_Det_PF_Billed_Amt,
            p_cc_pmt_fcst_rec.CC_Det_PF_Unbilled_Amt,
            p_cc_pmt_fcst_rec.CC_Det_PF_Encmbrnc_Amt,
            p_cc_pmt_fcst_rec.CC_Det_PF_Encmbrnc_Date,
            p_cc_pmt_fcst_rec.CC_Det_PF_Encmbrnc_Status,
            p_cc_pmt_fcst_rec.Last_Update_Date,
            p_cc_pmt_fcst_rec.Last_Updated_By,
            p_cc_pmt_fcst_rec.Last_Update_Login,
            p_cc_pmt_fcst_rec.Creation_Date,
            p_cc_pmt_fcst_rec.Created_By,
            p_cc_pmt_fcst_rec.Attribute1,
            p_cc_pmt_fcst_rec.Attribute2,
            p_cc_pmt_fcst_rec.Attribute3,
            p_cc_pmt_fcst_rec.Attribute4,
            p_cc_pmt_fcst_rec.Attribute5,
            p_cc_pmt_fcst_rec.Attribute6,
            p_cc_pmt_fcst_rec.Attribute7,
            p_cc_pmt_fcst_rec.Attribute8,
            p_cc_pmt_fcst_rec.Attribute9,
            p_cc_pmt_fcst_rec.Attribute10,
            p_cc_pmt_fcst_rec.Attribute11,
            p_cc_pmt_fcst_rec.Attribute12,
            p_cc_pmt_fcst_rec.Attribute13,
            p_cc_pmt_fcst_rec.Attribute14,
            p_cc_pmt_fcst_rec.Attribute15,
            p_cc_pmt_fcst_rec.Context,
            p_update_flag
           );
Line: 377

  p_update_flag                IN OUT NOCOPY      VARCHAR2
) IS

   l_api_name        CONSTANT VARCHAR2(30)   := 'Header_Wrapper';
Line: 394

      IGC_CC_HEADERS_PKG.Update_Row (
            p_api_version,
            p_init_msg_list,
            p_commit,
            p_validation_level,
            x_return_status,
            x_msg_count,
            x_msg_data,
            x_rowid,
            p_cc_header_rec.CC_Header_Id,
            p_cc_header_rec.Org_id,
            p_cc_header_rec.CC_Type,
            p_cc_header_rec.CC_Num,
            p_cc_header_rec.CC_Version_num,
            p_cc_header_rec.Parent_Header_Id,
            p_cc_header_rec.CC_State,
            p_cc_header_rec.CC_ctrl_status,
            p_cc_header_rec.CC_Encmbrnc_Status,
            p_cc_header_rec.CC_Apprvl_Status,
            p_cc_header_rec.Vendor_Id,
            p_cc_header_rec.Vendor_Site_Id,
            p_cc_header_rec.Vendor_Contact_Id,
            p_cc_header_rec.Term_Id,
            p_cc_header_rec.Location_Id,
            p_cc_header_rec.Set_Of_Books_Id,
            p_cc_header_rec.CC_Acct_Date,
            p_cc_header_rec.CC_Desc,
            p_cc_header_rec.CC_Start_Date,
            p_cc_header_rec.CC_End_Date,
            p_cc_header_rec.CC_Owner_User_Id,
            p_cc_header_rec.CC_Preparer_User_Id,
            p_cc_header_rec.Currency_Code,
            p_cc_header_rec.Conversion_Type,
            p_cc_header_rec.Conversion_Date,
            p_cc_header_rec.Conversion_Rate,
            p_cc_header_rec.Last_Update_Date,
            p_cc_header_rec.Last_Updated_By,
            p_cc_header_rec.Last_Update_Login,
            p_cc_header_rec.Created_By,
            p_cc_header_rec.Creation_Date,
            p_cc_header_rec.CC_Current_User_Id,
            p_cc_header_rec.Wf_Item_Type,
            p_cc_header_rec.Wf_Item_Key,
            p_cc_header_rec.Attribute1,
            p_cc_header_rec.Attribute2,
            p_cc_header_rec.Attribute3,
            p_cc_header_rec.Attribute4,
            p_cc_header_rec.Attribute5,
            p_cc_header_rec.Attribute6,
            p_cc_header_rec.Attribute7,
            p_cc_header_rec.Attribute8,
            p_cc_header_rec.Attribute9,
            p_cc_header_rec.Attribute10,
            p_cc_header_rec.Attribute11,
            p_cc_header_rec.Attribute12,
            p_cc_header_rec.Attribute13,
            p_cc_header_rec.Attribute14,
            p_cc_header_rec.Attribute15,
            p_cc_header_rec.Context,
            p_cc_header_rec.Cc_Guarantee_Flag,
            p_update_flag
           );
Line: 535

        l_update_flag                   VARCHAR2(1);
Line: 536

        l_update_login                  igc_cc_acct_lines.last_update_login%TYPE;
Line: 537

        l_update_by                     igc_cc_acct_lines.last_updated_by%TYPE;
Line: 555

  SELECT ccac.ROWID,
               ccac.cc_header_id,
               NULL org_id,
               NULL cc_type,
               NULL cc_type_code,
               NULL cc_num,
               ccac.cc_acct_line_id,
               ccac.cc_acct_line_num,
               ccac.cc_acct_desc,
               ccac.parent_header_id,
               ccac.parent_acct_line_id,
               NULL parent_cc_acct_line_num,
               NULL cc_budget_acct_desc,
               ccac.cc_budget_code_combination_id,
               NULL cc_charge_acct_desc,
               ccac.cc_charge_code_combination_id,
               ccac.cc_acct_entered_amt,
               ccac.cc_acct_func_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_FUNC_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_func_billed_amt,
               ccac.cc_acct_encmbrnc_amt,
               (IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0)) - NVL(ccac.cc_acct_encmbrnc_amt,0)) cc_acct_unencmrd_amt,
               ccac.cc_acct_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0))
               cc_acct_comp_func_amt,
               NULL project_number,
               ccac.project_id,
               NULL task_number,
               ccac.task_id,
               ccac.expenditure_type,
               NULL expenditure_org_name,
               ccac.expenditure_org_id,
               ccac.expenditure_item_date,
               ccac.cc_acct_taxable_flag,
               NULL tax_name,
               ccac.tax_id,
               ccac.cc_acct_encmbrnc_status,
               ccac.cc_acct_encmbrnc_date,
               ccac.context,
               ccac.attribute1,
               ccac.attribute2,
               ccac.attribute3,
               ccac.attribute4,
               ccac.attribute5,
               ccac.attribute6,
               ccac.attribute7,
               ccac.attribute8,
               ccac.attribute9,
               ccac.attribute10,
               ccac.attribute11,
               ccac.attribute12,
               ccac.attribute13,
               ccac.attribute14,
               ccac.attribute15,
               ccac.created_by,
               ccac.creation_date,
               ccac.last_updated_by,
               ccac.last_update_date,
               ccac.last_update_login,
               ccac.cc_func_withheld_amt,
               ccac.cc_ent_withheld_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_func_withheld_amt,0)) cc_comp_func_whld_amt,
               ccac.Tax_Classif_Code
        FROM  igc_cc_acct_lines ccac
        WHERE ccac.cc_header_id = t_cc_header_id;
Line: 629

        SELECT ccdpf.ROWID,
               ccdpf.cc_det_pf_line_id,
               ccdpf.cc_det_pf_line_num,
               NULL  cc_acct_line_num,
               ccdpf.cc_acct_line_id,
               NULL  parent_det_pf_line_num,
               ccdpf.parent_det_pf_line_id,
               ccdpf.parent_acct_line_id,
               ccdpf.cc_det_pf_entered_amt,
               ccdpf.cc_det_pf_func_amt,
               ccdpf.cc_det_pf_date,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_FUNC_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_func_billed_amt,
               ccdpf.cc_det_pf_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(p_cc_header_id,NVL(ccdpf.cc_det_pf_entered_amt,0)) cc_det_pf_comp_func_amt,
               ccdpf.cc_det_pf_encmbrnc_amt,
               ( IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT ( p_cc_header_id, NVL(ccdpf.cc_det_pf_entered_amt,0) ) - NVL(ccdpf.cc_det_pf_encmbrnc_amt,0) ) cc_det_pf_unencmbrd_amt ,
               ccdpf.cc_det_pf_encmbrnc_date,
               ccdpf.cc_det_pf_encmbrnc_status,
               ccdpf.context,
               ccdpf.attribute1,
               ccdpf.attribute2,
               ccdpf.attribute3,
               ccdpf.attribute4,
               ccdpf.attribute5,
               ccdpf.attribute6,
               ccdpf.attribute7,
               ccdpf.attribute8,
               ccdpf.attribute9,
               ccdpf.attribute10,
               ccdpf.attribute11,
               ccdpf.attribute12,
               ccdpf.attribute13,
               ccdpf.attribute14,
               ccdpf.attribute15,
               ccdpf.last_update_date,
               ccdpf.last_updated_by,
               ccdpf.last_update_login,
               ccdpf.creation_date,
               ccdpf.created_by
        FROM igc_cc_det_pf ccdpf
        WHERE ccdpf.cc_acct_line_id = t_cc_acct_line_id;
Line: 677

          SELECT *
            FROM igc_cc_acct_lines
           WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 682

          SELECT *
            FROM igc_cc_det_pf
           WHERE cc_det_pf_line_id = l_cc_pmt_fcst_rec.cc_det_pf_line_id;
Line: 709

        l_update_login     := FND_GLOBAL.LOGIN_ID;
Line: 710

        l_update_by        := FND_GLOBAL.USER_ID;
Line: 712

  SELECT *
  INTO l_cc_headers_rec
  FROM igc_cc_headers
  WHERE cc_header_id = p_cc_header_id;
Line: 751

    THEN*/ --Bug 5464993. Update amounts even when cbc is disabled

    IF (l_cc_headers_rec.cc_state = 'CL') THEN
      -- Added for Bug 3219208
      -- Entered Amt should be set to 0 when the CC is being
      -- cancelled.
      l_acct_line_rec.cc_acct_entered_amt     := 0;
Line: 769

                  l_acct_line_rec.last_update_date        := SYSDATE;
Line: 770

                  l_acct_line_rec.last_update_login       := l_update_login;
Line: 771

                        l_acct_line_rec.last_updated_by         := l_update_by;
Line: 782

                          l_acct_line_rec.last_update_date        := SYSDATE;
Line: 783

                          l_acct_line_rec.last_update_login       := l_update_login;
Line: 784

                          l_acct_line_rec.last_updated_by         := l_update_by;
Line: 796

                          l_acct_line_rec.last_update_date        := SYSDATE;
Line: 797

                          l_acct_line_rec.last_update_login       := l_update_login;
Line: 798

                          l_acct_line_rec.last_updated_by         := l_update_by;
Line: 810

                        SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT( ccal.cc_acct_line_id) cc_acct_billed_amt,
                               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_FUNC_BILLED_AMT( ccal.cc_acct_line_id) cc_acct_func_billed_amt
        INTO   l_billed_amt,l_func_billed_amt
        FROM   igc_cc_acct_lines ccal
        WHERE  ccal.cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 829

                                l_acct_line_rec.last_update_date        := SYSDATE;
Line: 830

                                l_acct_line_rec.last_update_login       := l_update_login;
Line: 831

                                l_acct_line_rec.last_updated_by         := l_update_by;
Line: 852

                                l_acct_line_rec.last_update_date        := SYSDATE;
Line: 853

                                l_acct_line_rec.last_update_login       := l_update_login;
Line: 854

                                l_acct_line_rec.last_updated_by         := l_update_by;
Line: 879

                SELECT rowid
                INTO l_row_id
                FROM igc_cc_acct_lines
                WHERE cc_acct_line_id = l_acct_line_rec.cc_acct_line_id;
Line: 894

                                              p_update_flag       => l_update_flag
                                             );
Line: 966

                                l_det_pf_rec.last_update_date          := SYSDATE;
Line: 967

                                l_det_pf_rec.last_update_login         := l_update_login;
Line: 968

                                l_det_pf_rec.last_updated_by           := l_update_by;
Line: 977

                        l_det_pf_rec.last_update_date          := SYSDATE;
Line: 978

                        l_det_pf_rec.last_update_login         := l_update_login;
Line: 979

                        l_det_pf_rec.last_updated_by           := l_update_by;
Line: 988

                        l_det_pf_rec.last_update_date          := SYSDATE;
Line: 989

                        l_det_pf_rec.last_update_login         := l_update_login;
Line: 990

                        l_det_pf_rec.last_updated_by           := l_update_by;
Line: 1002

                                SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
                                       IGC_CC_COMP_AMT_PKG.COMPUTE_PF_FUNC_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_func_billed_amt
        INTO l_billed_amt, l_func_billed_amt
        FROM igc_cc_det_pf ccdpf
        WHERE ccdpf.cc_det_pf_line_id = l_cc_pmt_fcst_rec.cc_det_pf_line_id;
Line: 1042

                                        l_det_pf_rec.last_update_date          := SYSDATE;
Line: 1043

                                        l_det_pf_rec.last_update_login         := l_update_login;
Line: 1044

                                        l_det_pf_rec.last_updated_by           := l_update_by;
Line: 1061

                                        l_det_pf_rec.last_update_date          := SYSDATE;
Line: 1062

                                        l_det_pf_rec.last_update_login         := l_update_login;
Line: 1063

                                        l_det_pf_rec.last_updated_by           := l_update_by;
Line: 1088

                        SELECT rowid
                          INTO l_row_id
                          FROM igc_cc_det_pf
                         WHERE cc_det_pf_line_id = l_det_pf_rec.cc_det_pf_line_id;
Line: 1103

                                        p_update_flag      => l_update_flag
                                       );
Line: 1130

           l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 1131

           l_cc_headers_rec.last_update_login  := l_update_login;
Line: 1132

           l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 1138

           l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 1139

           l_cc_headers_rec.last_update_login  := l_update_login;
Line: 1140

           l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 1158

        SELECT rowid
          INTO l_row_id
          FROM igc_cc_headers
         WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 1175

                        p_update_flag      => l_update_flag
                       );
Line: 1291

PROCEDURE Insert_Interface_Row(
   p_cc_interface_rec    IN     igc_cc_interface%ROWTYPE,
   x_msg_count           OUT NOCOPY    NUMBER,
   x_msg_data            OUT NOCOPY    VARCHAR2,
   x_return_status       OUT NOCOPY    VARCHAR2
) IS

  l_api_name      CONSTANT VARCHAR2(30)   := 'Insert_Interface_Row';
Line: 1303

        l_full_path := g_path || 'Insert_Interface_Row';
Line: 1307

  INSERT
          INTO igc_cc_interface (
    batch_line_num,
    cc_header_id,
    cc_version_num,
    cc_acct_line_id,
    cc_det_pf_line_id,
    set_of_books_id,
    code_combination_id,
    cc_transaction_date,
    transaction_description,
    encumbrance_type_id,
    currency_code,
    cc_func_dr_amt,
    cc_func_cr_amt,
    je_source_name,
    je_category_name,
    actual_flag,
    budget_dest_flag,
    last_update_date,
    last_updated_by,
    last_update_login,
    creation_date,
    created_by,
    period_set_name,
    period_name,
    cbc_result_code,
    status_code,
    budget_version_id,
    budget_amt,
    commitment_encmbrnc_amt,
    obligation_encmbrnc_amt,
    funds_available_amt,
    document_type,
    reference_1,
    reference_2,
    reference_3,
    reference_4,
    reference_5,
    reference_6,
    reference_7,
    reference_8,
    reference_9,
    reference_10,
    cc_encmbrnc_date,
    project_line --Bug 6341012 Added this column
         )
  VALUES
         (p_cc_interface_rec.batch_line_num,
    p_cc_interface_rec.cc_header_id,
    p_cc_interface_rec.cc_version_num,
    p_cc_interface_rec.cc_acct_line_id,
    p_cc_interface_rec.cc_det_pf_line_id,
    p_cc_interface_rec.set_of_books_id,
    p_cc_interface_rec.code_combination_id,
    p_cc_interface_rec.cc_transaction_date,
    p_cc_interface_rec.transaction_description,
    p_cc_interface_rec.encumbrance_type_id,
    p_cc_interface_rec.currency_code,
    p_cc_interface_rec.cc_func_dr_amt,
    p_cc_interface_rec.cc_func_cr_amt,
    p_cc_interface_rec.je_source_name,
    p_cc_interface_rec.je_category_name,
    p_cc_interface_rec.actual_flag,
    p_cc_interface_rec.budget_dest_flag,
    p_cc_interface_rec.last_update_date,
    p_cc_interface_rec.last_updated_by,
    p_cc_interface_rec.last_update_login,
    p_cc_interface_rec.creation_date,
    p_cc_interface_rec.created_by,
    p_cc_interface_rec.period_set_name,
    p_cc_interface_rec.period_name,
    p_cc_interface_rec.cbc_result_code,
    p_cc_interface_rec.status_code,
    p_cc_interface_rec.budget_version_id,
    p_cc_interface_rec.budget_amt,
    p_cc_interface_rec.commitment_encmbrnc_amt,
    p_cc_interface_rec.obligation_encmbrnc_amt,
    p_cc_interface_rec.funds_available_amt,
    p_cc_interface_rec.document_type,
    p_cc_interface_rec.reference_1,
    p_cc_interface_rec.reference_2,
    p_cc_interface_rec.reference_3,
    p_cc_interface_rec.reference_4,
    p_cc_interface_rec.reference_5,
    p_cc_interface_rec.reference_6,
    p_cc_interface_rec.reference_7,
    p_cc_interface_rec.reference_8,
    p_cc_interface_rec.reference_9,
    p_cc_interface_rec.reference_10,
    p_cc_interface_rec.cc_encmbrnc_date,
    p_cc_interface_rec.project_line  --Bug 6341012 Added this column
               );
Line: 1424

END Insert_Interface_Row;
Line: 1472

        DELETE FROM igc_cc_interface
        WHERE  to_date(creation_date,'DD/MM/YYYY') <= to_date(sysdate ,'DD/MM/YYYY') - 2;
Line: 1505

  l_cc_interface_rec.last_update_date         :=  sysdate;
Line: 1506

  l_cc_interface_rec.last_updated_by          :=  -1;
Line: 1507

  l_cc_interface_rec.last_update_login        :=  -1;
Line: 1543

/*                    SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT( ccal.cc_acct_line_id) cc_acct_billed_amt,
                               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_FUNC_BILLED_AMT( ccal.cc_acct_line_id) cc_acct_func_billed_amt,
                                cc_acct_func_amt
      INTO   l_billed_amt, l_func_billed_amt, l_func_amt
      FROM   igc_cc_acct_lines ccal
      WHERE  ccal.cc_acct_line_id = p_cc_acct_lines_rec.cc_acct_line_id;
Line: 1555

SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT( ccal.cc_acct_line_id) cc_acct_billed_amt,
           CC_ACCT_ENCMBRNC_AMT,
            cc_acct_func_amt
INTO   l_billed_amt, l_func_billed_amt, l_func_amt
FROM   igc_cc_acct_lines ccal
WHERE  ccal.cc_acct_line_id = p_cc_acct_lines_rec.cc_acct_line_id;
Line: 1609

/*                    SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
                               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_FUNC_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_func_billed_amt,
                              ccdpf.cc_det_pf_func_amt
        INTO l_billed_amt, l_func_billed_amt, l_func_amt
      FROM igc_cc_det_pf ccdpf
      WHERE ccdpf.cc_det_pf_line_id = p_cc_pmt_fcst_rec.cc_det_pf_line_id;
Line: 1620

                    SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
                              ccdpf.CC_DET_PF_ENCMBRNC_AMT cc_det_pf_func_billed_amt,
                              ccdpf.cc_det_pf_func_amt
        INTO l_billed_amt, l_func_billed_amt, l_func_amt
      FROM igc_cc_det_pf ccdpf
      WHERE ccdpf.cc_det_pf_line_id = p_cc_pmt_fcst_rec.cc_det_pf_line_id;
Line: 1774

          Insert_Interface_Row(l_cc_interface_rec,
                                                             x_msg_count,
                                                             x_msg_data,
                                                             l_return_status);
Line: 1794

        Insert_Interface_Row(l_cc_interface_rec,
                                                     x_msg_count,
                                                     x_msg_data,
                                                     l_return_status);
Line: 1818

          Insert_Interface_Row(l_cc_interface_rec,
                                                             x_msg_count,
                                                             x_msg_data,
                                                             l_return_status);
Line: 1843

          Insert_Interface_Row(l_cc_interface_rec,
                                                             x_msg_count,
                                                             x_msg_data,
                                                             l_return_status);
Line: 1872

        Insert_Interface_Row(l_cc_interface_rec,
                                                     x_msg_count,
                                                     x_msg_data,
                                                     l_return_status);
Line: 1894

        Insert_Interface_Row(l_cc_interface_rec,
                                                     x_msg_count,
                                                     x_msg_data,
                                                     l_return_status);
Line: 1951

      Insert_Interface_Row(l_cc_interface_rec,
                                             x_msg_count,
                                             x_msg_data,
                                             l_return_status);
Line: 2013

      Insert_Interface_Row(l_cc_interface_rec,
                                             x_msg_count,
                                             x_msg_data,
                                             l_return_status);
Line: 2147

    l_update_flag                   VARCHAR2(1);
Line: 2148

    l_update_login                  igc_cc_acct_lines.last_update_login%TYPE;
Line: 2149

    l_update_by                     igc_cc_acct_lines.last_updated_by%TYPE;
Line: 2164

  e_update                        EXCEPTION;
Line: 2165

  e_delete                        EXCEPTION;
Line: 2171

  e_update_cc_tables              EXCEPTION;
Line: 2177

  SELECT distinct cc_header_id, cc_acct_line_id, cc_det_pf_line_id, budget_dest_flag, cc_transaction_date
  FROM igc_cc_interface
  WHERE cc_header_id =  t_cc_header_id AND
        actual_flag = 'E';
Line: 2192

        SELECT ccdpf.ROWID,
               ccdpf.cc_det_pf_line_id,
               ccdpf.cc_det_pf_line_num,
               NULL  cc_acct_line_num,
               ccdpf.cc_acct_line_id,
               NULL  parent_det_pf_line_num,
               ccdpf.parent_det_pf_line_id,
               ccdpf.parent_acct_line_id,
               ccdpf.cc_det_pf_entered_amt,
               ccdpf.cc_det_pf_func_amt,
               ccdpf.cc_det_pf_date,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_FUNC_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_func_billed_amt,
               ccdpf.cc_det_pf_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(p_cc_header_id,NVL(ccdpf.cc_det_pf_entered_amt,0)) cc_det_pf_comp_func_amt,
               ccdpf.cc_det_pf_encmbrnc_amt,
               ( IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT ( p_cc_header_id, NVL(ccdpf.cc_det_pf_entered_amt,0) ) -
               NVL(ccdpf.cc_det_pf_encmbrnc_amt,0) ) cc_det_pf_unencmbrd_amt ,
               ccdpf.cc_det_pf_encmbrnc_date,
               ccdpf.cc_det_pf_encmbrnc_status,
               ccdpf.context,
               ccdpf.attribute1,
               ccdpf.attribute2,
               ccdpf.attribute3,
               ccdpf.attribute4,
               ccdpf.attribute5,
               ccdpf.attribute6,
               ccdpf.attribute7,
               ccdpf.attribute8,
               ccdpf.attribute9,
               ccdpf.attribute10,
               ccdpf.attribute11,
               ccdpf.attribute12,
               ccdpf.attribute13,
               ccdpf.attribute14,
               ccdpf.attribute15,
               ccdpf.last_update_date,
               ccdpf.last_updated_by,
               ccdpf.last_update_login,
               ccdpf.creation_date,
               ccdpf.created_by
        FROM igc_cc_det_pf ccdpf
        WHERE ccdpf.cc_acct_line_id =  t_cc_acct_line_id;
Line: 2246

  SELECT ccac.ROWID,
               ccac.cc_header_id,
               NULL org_id,
               NULL cc_type,
               NULL cc_type_code,
               NULL cc_num,
               ccac.cc_acct_line_id,
               ccac.cc_acct_line_num,
               ccac.cc_acct_desc,
               ccac.parent_header_id,
               ccac.parent_acct_line_id,
               NULL parent_cc_acct_line_num,
               NULL cc_budget_acct_desc,
               ccac.cc_budget_code_combination_id,
               NULL cc_charge_acct_desc,
               ccac.cc_charge_code_combination_id,
               ccac.cc_acct_entered_amt,
               ccac.cc_acct_func_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_FUNC_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_func_billed_amt,
               ccac.cc_acct_encmbrnc_amt,
               (IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0)) - NVL(ccac.cc_acct_encmbrnc_amt,0)) cc_acct_unencmrd_amt,
               ccac.cc_acct_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0))
               cc_acct_comp_func_amt,
               NULL project_number,
               ccac.project_id,
               NULL task_number,
               ccac.task_id,
               ccac.expenditure_type,
               NULL expenditure_org_name,
               ccac.expenditure_org_id,
               ccac.expenditure_item_date,
               ccac.cc_acct_taxable_flag,
               NULL tax_name,
               ccac.tax_id,
               ccac.cc_acct_encmbrnc_status,
               ccac.cc_acct_encmbrnc_date,
               ccac.context,
               ccac.attribute1,
               ccac.attribute2,
               ccac.attribute3,
               ccac.attribute4,
               ccac.attribute5,
               ccac.attribute6,
               ccac.attribute7,
               ccac.attribute8,
               ccac.attribute9,
               ccac.attribute10,
               ccac.attribute11,
               ccac.attribute12,
               ccac.attribute13,
               ccac.attribute14,
               ccac.attribute15,
               ccac.created_by,
               ccac.creation_date,
               ccac.last_updated_by,
               ccac.last_update_date,
               ccac.last_update_login,
               ccac.cc_func_withheld_amt,
               ccac.cc_ent_withheld_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_func_withheld_amt,0)) cc_comp_func_whld_amt,
               ccac.Tax_Classif_Code
        FROM  igc_cc_acct_lines ccac
        WHERE ccac.cc_header_id = t_cc_header_id;
Line: 2317

          SELECT *
            FROM igc_cc_acct_lines
           WHERE cc_acct_line_id = l_cc_acct_line_id;
Line: 2322

          SELECT *
            FROM igc_cc_det_pf
           WHERE cc_det_pf_line_id = l_cc_det_pf_line_id;
Line: 2327

          SELECT *
            FROM igc_cc_acct_lines
           WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 2332

          SELECT *
            FROM igc_cc_det_pf
           WHERE cc_det_pf_line_id = l_cc_pmt_fcst_rec.cc_det_pf_line_id;
Line: 2339

   SELECT SUM(( IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(cp_cc_header_id, NVL(cc_det_pf_entered_amt,0) ) -
               NVL(cc_det_pf_encmbrnc_amt,0) )) cc_det_pf_unencmbrd_amt
   FROM igc_cc_det_pf
   WHERE cc_acct_line_id IN (SELECT cc_acct_line_id
                             FROM igc_cc_acct_lines
                             WHERE cc_header_id = cp_cc_header_id);
Line: 2378

    l_update_login            := FND_GLOBAL.LOGIN_ID;
Line: 2379

    l_update_by               := FND_GLOBAL.USER_ID;
Line: 2393

    SELECT *
    INTO l_cc_headers_rec
    FROM igc_cc_headers
    WHERE cc_header_id = p_cc_header_id;
Line: 2416

           l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 2417

           l_cc_headers_rec.last_update_login  := l_update_login;
Line: 2418

           l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 2420

           SELECT rowid
           INTO l_row_id
           FROM igc_cc_headers
           WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 2435

                           p_update_flag      => l_update_flag
                          );
Line: 2446

              RAISE E_UPDATE;
Line: 2454

      DELETE igc_cc_interface
      WHERE cc_header_id = p_cc_header_id AND
            actual_flag = 'E';
Line: 2469

               RAISE E_DELETE;
Line: 2513

    SELECT  enable_budgetary_control_flag,currency_code
    INTO    l_enable_budg_control_flag, l_currency_code
    FROM    gl_sets_of_books
    WHERE   set_of_books_id = l_cc_headers_rec.set_of_books_id;
Line: 2533

    SELECT  cc_bc_enable_flag
    INTO    l_cc_bc_enable_flag
    FROM    igc_cc_bc_enable
    WHERE   set_of_books_id = l_cc_headers_rec.set_of_books_id;
Line: 2596

        SELECT *
        INTO l_cc_headers_rec
        FROM igc_cc_headers
                    WHERE cc_header_id = p_cc_header_id;
Line: 2613

            l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 2614

            l_cc_headers_rec.last_update_login  := l_update_login;
Line: 2615

            l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 2617

            SELECT rowid
            INTO l_row_id
            FROM igc_cc_headers
            WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 2632

                            p_update_flag      => l_update_flag
                            );
Line: 2643

                      RAISE E_UPDATE;
Line: 2766

  select count(*)
  INTO l_interface_row_count
  FROM igc_cc_interface
  WHERE cc_header_id = p_cc_header_id;
Line: 2838

  /* Update CC Tables with feedback from igc_cc_interface */

  /* If mode = Reservation then update CC Tables encumbrance status, encumbered_amount */

  BEGIN

  IF ( (p_mode = 'R') AND (x_bc_status = FND_API.G_TRUE) AND (l_interface_row_count <> 0) )
  THEN

    OPEN c_cc_interface(p_cc_header_id);
Line: 2871

      /* Update CC Tables with the feedback */
/*      IF ((l_cc_acct_line_id IS NOT NULL) AND
            (l_budget_dest_flag = 'C'))
      THEN */--Bug 5464993. Update amounts even when cbc is disabled

                                -- Performance Tuning, Replaced view
                                -- igc_cc_acct_lines_v with
                                -- igc_cc_acct_lines and replaced the line
                                -- below.
        -- SELECT cc_acct_comp_func_amt
                        SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccal.cc_header_id, NVL(ccal.cc_acct_entered_amt,0)) cc_acct_comp_func_amt
      INTO  l_cc_acct_comp_func_amt
      FROM igc_cc_acct_lines ccal
      WHERE ccal.cc_acct_line_id = l_cc_acct_line_id;
Line: 2921

                                l_acct_line_rec.last_update_date        := SYSDATE;
Line: 2922

                                l_acct_line_rec.last_update_login       := l_update_login;
Line: 2923

                                l_acct_line_rec.last_updated_by         := l_update_by;
Line: 2932

                                  l_acct_line_rec.last_update_date        := SYSDATE;
Line: 2933

                            l_acct_line_rec.last_update_login       := l_update_login;
Line: 2934

                                  l_acct_line_rec.last_updated_by         := l_update_by;
Line: 2944

                                  l_acct_line_rec.last_update_date        := SYSDATE;
Line: 2945

                                  l_acct_line_rec.last_update_login       := l_update_login;
Line: 2946

                                  l_acct_line_rec.last_updated_by         := l_update_by;
Line: 2959

                              SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT( ccal.cc_acct_line_id) cc_acct_billed_amt,
                                   IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_FUNC_BILLED_AMT( ccal.cc_acct_line_id) cc_acct_func_billed_amt
        INTO   l_billed_amt, l_func_billed_amt
        FROM   igc_cc_acct_lines ccal
        WHERE  ccal.cc_acct_line_id = l_cc_acct_line_id;
Line: 2976

                                        l_acct_line_rec.last_update_date        := SYSDATE;
Line: 2977

                                        l_acct_line_rec.last_update_login       := l_update_login;
Line: 2978

                                        l_acct_line_rec.last_updated_by         := l_update_by;
Line: 2996

                                        l_acct_line_rec.last_update_date        := SYSDATE;
Line: 2997

                                        l_acct_line_rec.last_update_login       := l_update_login;
Line: 2998

                                        l_acct_line_rec.last_updated_by         := l_update_by;
Line: 3014

                                      g_debug_msg := ' Bad CC State for Update';
Line: 3017

                                RAISE E_UPDATE_CC_TABLES;
Line: 3021

                         SELECT rowid
                         INTO l_row_id
                         FROM igc_cc_acct_lines
                         WHERE cc_acct_line_id = l_acct_line_rec.cc_acct_line_id;
Line: 3042

                                               p_update_flag       => l_update_flag
                                              );
Line: 3050

                                   g_debug_msg := ' FAILED Updated Acct Line ..... 1 ';
Line: 3058

                               RAISE E_UPDATE_CC_TABLES;
Line: 3077

                                SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(p_cc_header_id,NVL(ccdpf.cc_det_pf_entered_amt,0)) cc_det_pf_comp_func_amt
        INTO l_cc_det_pf_comp_func_amt
        FROM igc_cc_det_pf ccdpf
        WHERE ccdpf.cc_det_pf_line_id = l_cc_det_pf_line_id;
Line: 3114

                            l_det_pf_rec.last_update_date          := SYSDATE;
Line: 3115

                            l_det_pf_rec.last_update_login         := l_update_login;
Line: 3116

                            l_det_pf_rec.last_updated_by           := l_update_by;
Line: 3124

                            l_det_pf_rec.last_update_date          := SYSDATE;
Line: 3125

                            l_det_pf_rec.last_update_login         := l_update_login;
Line: 3126

                            l_det_pf_rec.last_updated_by           := l_update_by;
Line: 3134

                                        l_det_pf_rec.last_update_date          := SYSDATE;
Line: 3135

                                        l_det_pf_rec.last_update_login         := l_update_login;
Line: 3136

                                        l_det_pf_rec.last_updated_by           := l_update_by;
Line: 3148

                            SELECT IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
                                   IGC_CC_COMP_AMT_PKG.COMPUTE_PF_FUNC_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_func_billed_amt
          INTO l_billed_amt, l_func_billed_amt
          FROM igc_cc_det_pf ccdpf
          WHERE ccdpf.cc_det_pf_line_id = l_cc_det_pf_line_id;
Line: 3165

                                                l_det_pf_rec.last_update_date          := SYSDATE;
Line: 3166

                                                l_det_pf_rec.last_update_login         := l_update_login;
Line: 3167

                                                l_det_pf_rec.last_updated_by           := l_update_by;
Line: 3185

                                                l_det_pf_rec.last_update_date          := SYSDATE;
Line: 3186

                                                l_det_pf_rec.last_update_login         := l_update_login;
Line: 3187

                                                l_det_pf_rec.last_updated_by           := l_update_by;
Line: 3207

                                   RAISE E_UPDATE_CC_TABLES;
Line: 3211

                                SELECT rowid
                                  INTO l_row_id
                                  FROM igc_cc_det_pf
                                 WHERE cc_det_pf_line_id = l_det_pf_rec.cc_det_pf_line_id;
Line: 3232

                                                p_update_flag      => l_update_flag
                                               );
Line: 3250

                                   RAISE E_UPDATE_CC_TABLES;
Line: 3282

                   l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 3283

                   l_cc_headers_rec.last_update_login  := l_update_login;
Line: 3284

                   l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 3290

                   l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 3291

                   l_cc_headers_rec.last_update_login  := l_update_login;
Line: 3292

                   l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 3305

                   RAISE E_UPDATE_CC_TABLES;
Line: 3309

                SELECT rowid
                  INTO l_row_id
                  FROM igc_cc_headers
                 WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 3332

                                p_update_flag      => l_update_flag
                               );
Line: 3350

                   RAISE E_UPDATE_CC_TABLES;
Line: 3355

                   g_debug_msg := ' Inserting Actions Record.....';
Line: 3359

    IGC_CC_ACTIONS_PKG.Insert_Row
                    (1.0,
           FND_API.G_FALSE,
           FND_API.G_FALSE,
           FND_API.G_VALID_LEVEL_FULL,
           l_return_status,
           l_msg_count,
           l_msg_data,
           l_rowid,
           p_cc_header_id,
           l_cc_headers_rec.cc_version_num,
           'EC',
                     l_cc_headers_rec.cc_state,
           l_cc_headers_rec.cc_ctrl_status,
           l_cc_headers_rec.cc_apprvl_status,
           p_notes,
           sysdate,
           fnd_global.user_id,
           fnd_global.login_id,
           sysdate,
           fnd_global.user_id
          );
Line: 3388

                      g_debug_msg := ' Falure Inserting Actions Row..... 1 ';
Line: 3397

                   RAISE E_UPDATE_CC_TABLES;
Line: 3400

  END IF; /* Update CC Tables */
Line: 3417

      RAISE E_UPDATE_CC_TABLES;
Line: 3422

           g_debug_msg := ' Beginning Phase 2....... Updates';
Line: 3461

                           l_acct_line_rec.last_update_date        := SYSDATE;
Line: 3462

                           l_acct_line_rec.last_update_login       := l_update_login;
Line: 3463

                           l_acct_line_rec.last_updated_by         := l_update_by;
Line: 3465

                           SELECT rowid
                             INTO l_row_id
                             FROM igc_cc_acct_lines
                            WHERE cc_acct_line_id = l_acct_line_rec.cc_acct_line_id;
Line: 3486

                                                 p_update_flag       => l_update_flag
                                                );
Line: 3495

                                 g_debug_msg := ' FAILED update accout line ........ 2';
Line: 3504

                              RAISE E_UPDATE_CC_TABLES;
Line: 3541

                                   l_det_pf_rec.last_update_date          := SYSDATE;
Line: 3542

                                   l_det_pf_rec.last_update_login         := l_update_login;
Line: 3543

                                   l_det_pf_rec.last_updated_by           := l_update_by;
Line: 3545

                                   SELECT rowid
                                     INTO l_row_id
                                     FROM igc_cc_det_pf
                                    WHERE cc_det_pf_line_id = l_det_pf_rec.cc_det_pf_line_id;
Line: 3560

                                                   p_update_flag      => l_update_flag
                                                  );
Line: 3578

                                      RAISE E_UPDATE_CC_TABLES;
Line: 3601

                l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 3602

                l_cc_headers_rec.last_update_login  := l_update_login;
Line: 3603

                l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 3605

                SELECT rowid
                  INTO l_row_id
                  FROM igc_cc_headers
                 WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 3626

                                p_update_flag      => l_update_flag
                               );
Line: 3635

                      g_debug_msg := ' FAILED Updated Header Line INFO ...... 3 ';
Line: 3645

                   RAISE E_UPDATE_CC_TABLES;
Line: 3654

           l_cc_headers_rec.last_update_date    := SYSDATE;
Line: 3655

           l_cc_headers_rec.last_update_login   := l_update_login;
Line: 3656

           l_cc_headers_rec.last_updated_by     := l_update_by;
Line: 3658

           SELECT rowid
           INTO l_row_id
           FROM igc_cc_headers
           WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 3673

                           p_update_flag      => l_update_flag
                          );
Line: 3681

                 g_debug_msg := ' FAILED Update Header Line Info ...... 4 ';
Line: 3691

              RAISE E_UPDATE_CC_TABLES;
Line: 3727

  WHEN FND_API.G_EXC_UNEXPECTED_ERROR OR E_CC_NOT_FOUND OR  E_INVALID_MODE OR E_UPDATE OR E_DELETE
  THEN
    ROLLBACK TO Execute_Budgetary_Ctrl1;
Line: 3754

                     FND_LOG.STRING (g_excep_level,l_full_path,'FND_API.G_EXC_UNEXPECTED_ERROR OR E_CC_NOT_FOUND OR  E_INVALID_MODE OR E_UPDATE OR E_DELETE Exception Raised');
Line: 3764

                   l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 3765

                   l_cc_headers_rec.last_update_login  := l_update_login;
Line: 3766

                   l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 3768

                   SELECT rowid
                     INTO l_row_id
                     FROM igc_cc_headers
                    WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 3783

                                   p_update_flag      => l_update_flag
                                  );
Line: 3829

                   l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 3830

                   l_cc_headers_rec.last_update_login  := l_update_login;
Line: 3831

                   l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 3833

                   SELECT rowid
                     INTO l_row_id
                     FROM igc_cc_headers
                    WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 3848

                                   p_update_flag      => l_update_flag
                                  );
Line: 3886

  WHEN E_BC_EXECUTION /*OR E_UPDATE_CC_TABLES */
  THEN
    --ROLLBACK TO Execute_Budgetary_Ctrl4;
Line: 3889

    select count(*)
    INTO x_msg_count
    FROM igc_cc_interface
    WHERE cc_header_id = p_cc_header_id;
Line: 3898

                   l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 3899

                   l_cc_headers_rec.last_update_login  := l_update_login;
Line: 3900

                   l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 3902

                   SELECT rowid
                     INTO l_row_id
                     FROM igc_cc_headers
                    WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 3917

                                   p_update_flag      => l_update_flag
                                  );
Line: 3962

                   l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 3963

                   l_cc_headers_rec.last_update_login  := l_update_login;
Line: 3964

                   l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 3966

                   SELECT rowid
                     INTO l_row_id
                     FROM igc_cc_headers
                    WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 3981

                                   p_update_flag      => l_update_flag
                                  );
Line: 4117

    SELECT  NVL(enable_budgetary_control_flag,'N')
    INTO    l_enable_budg_control_flag
    FROM    gl_sets_of_books
    WHERE   set_of_books_id = p_sob_id;
Line: 4138

      SELECT  req_encumbrance_flag, purch_encumbrance_flag
      INTO      l_req_encumbrance_flag, l_purch_encumbrance_flag
      FROM    financials_system_params_all
      WHERE   set_of_books_id = p_sob_id AND
          org_id = p_org_id;
Line: 4152

        SELECT  cc_bc_enable_flag
        INTO    l_cc_bc_enable_flag
        FROM    igc_cc_bc_enable
        WHERE   set_of_books_id = p_sob_id;
Line: 4261

        l_update_flag                   VARCHAR2(1);
Line: 4262

        l_update_login                  igc_cc_acct_lines.last_update_login%TYPE;
Line: 4263

        l_update_by                     igc_cc_acct_lines.last_updated_by%TYPE;
Line: 4286

        SELECT ccdpf.ROWID,
               ccdpf.cc_det_pf_line_id,
               ccdpf.cc_det_pf_line_num,
               NULL  cc_acct_line_num,
               ccdpf.cc_acct_line_id,
               NULL  parent_det_pf_line_num,
               ccdpf.parent_det_pf_line_id,
               ccdpf.parent_acct_line_id,
               ccdpf.cc_det_pf_entered_amt,
               ccdpf.cc_det_pf_func_amt,
               ccdpf.cc_det_pf_date,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_FUNC_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_func_billed_amt,
               ccdpf.cc_det_pf_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(p_cc_header_id,NVL(ccdpf.cc_det_pf_entered_amt,0)) cc_det_pf_comp_func_amt,
               ccdpf.cc_det_pf_encmbrnc_amt,
               ( IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT ( p_cc_header_id, NVL(ccdpf.cc_det_pf_entered_amt,0) ) -
               NVL(ccdpf.cc_det_pf_encmbrnc_amt,0) ) cc_det_pf_unencmbrd_amt ,
               ccdpf.cc_det_pf_encmbrnc_date,
               ccdpf.cc_det_pf_encmbrnc_status,
               ccdpf.context,
               ccdpf.attribute1,
               ccdpf.attribute2,
               ccdpf.attribute3,
               ccdpf.attribute4,
               ccdpf.attribute5,
               ccdpf.attribute6,
               ccdpf.attribute7,
               ccdpf.attribute8,
               ccdpf.attribute9,
               ccdpf.attribute10,
               ccdpf.attribute11,
               ccdpf.attribute12,
               ccdpf.attribute13,
               ccdpf.attribute14,
               ccdpf.attribute15,
               ccdpf.last_update_date,
               ccdpf.last_updated_by,
               ccdpf.last_update_login,
               ccdpf.creation_date,
               ccdpf.created_by
        FROM igc_cc_det_pf ccdpf
  WHERE ccdpf.cc_acct_line_id =  t_cc_acct_line_id;
Line: 4338

  SELECT ccac.ROWID,
               ccac.cc_header_id,
               NULL org_id,
               NULL cc_type,
               NULL cc_type_code,
               NULL cc_num,
               ccac.cc_acct_line_id,
               ccac.cc_acct_line_num,
               ccac.cc_acct_desc,
               ccac.parent_header_id,
               ccac.parent_acct_line_id,
               NULL parent_cc_acct_line_num,
               NULL cc_budget_acct_desc,
               ccac.cc_budget_code_combination_id,
               NULL cc_charge_acct_desc,
               ccac.cc_charge_code_combination_id,
               ccac.cc_acct_entered_amt,
               ccac.cc_acct_func_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_FUNC_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_func_billed_amt,
               ccac.cc_acct_encmbrnc_amt,
               (IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0)) - NVL(ccac.cc_acct_encmbrnc_amt,0)) cc_acct_unencmrd_amt,
               ccac.cc_acct_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0))
               cc_acct_comp_func_amt,
               NULL project_number,
               ccac.project_id,
               NULL task_number,
               ccac.task_id,
               ccac.expenditure_type,
               NULL expenditure_org_name,
               ccac.expenditure_org_id,
               ccac.expenditure_item_date,
               ccac.cc_acct_taxable_flag,
               NULL tax_name,
               ccac.tax_id,
               ccac.cc_acct_encmbrnc_status,
               ccac.cc_acct_encmbrnc_date,
               ccac.context,
               ccac.attribute1,
               ccac.attribute2,
               ccac.attribute3,
               ccac.attribute4,
               ccac.attribute5,
               ccac.attribute6,
               ccac.attribute7,
               ccac.attribute8,
               ccac.attribute9,
               ccac.attribute10,
               ccac.attribute11,
               ccac.attribute12,
               ccac.attribute13,
               ccac.attribute14,
               ccac.attribute15,
               ccac.created_by,
               ccac.creation_date,
               ccac.last_updated_by,
               ccac.last_update_date,
               ccac.last_update_login,
               ccac.cc_func_withheld_amt,
               ccac.cc_ent_withheld_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_func_withheld_amt,0)) cc_comp_func_whld_amt,
               ccac.Tax_Classif_Code
        FROM  igc_cc_acct_lines ccac
        WHERE ccac.cc_header_id = t_cc_header_id;
Line: 4409

          SELECT *
            FROM igc_cc_acct_lines
           WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 4414

          SELECT *
            FROM igc_cc_det_pf
           WHERE cc_det_pf_line_id = l_cc_pmt_fcst_rec.cc_det_pf_line_id;
Line: 4441

        l_update_login     := FND_GLOBAL.LOGIN_ID;
Line: 4442

        l_update_by        := FND_GLOBAL.USER_ID;
Line: 4459

    SELECT *
    INTO l_cc_headers_rec
    FROM igc_cc_headers
    WHERE cc_header_id = p_cc_header_id;
Line: 4500

                l_acct_line_rec.last_update_date        := SYSDATE;
Line: 4501

                l_acct_line_rec.last_update_login       := l_update_login;
Line: 4502

                l_acct_line_rec.last_updated_by         := l_update_by;
Line: 4504

                SELECT rowid
                  INTO l_row_id
                  FROM igc_cc_acct_lines
                 WHERE cc_acct_line_id = l_acct_line_rec.cc_acct_line_id;
Line: 4519

                                      p_update_flag       => l_update_flag
                                     );
Line: 4550

                        l_det_pf_rec.last_update_date          := SYSDATE;
Line: 4551

                        l_det_pf_rec.last_update_login         := l_update_login;
Line: 4552

                        l_det_pf_rec.last_updated_by           := l_update_by;
Line: 4554

                        SELECT rowid
                          INTO l_row_id
                          FROM igc_cc_det_pf
                         WHERE cc_det_pf_line_id = l_det_pf_rec.cc_det_pf_line_id;
Line: 4569

                                        p_update_flag      => l_update_flag
                                       );
Line: 4593

        l_cc_headers_rec.last_update_date   := SYSDATE;
Line: 4594

        l_cc_headers_rec.last_update_login  := l_update_login;
Line: 4595

        l_cc_headers_rec.last_updated_by    := l_update_by;
Line: 4597

        SELECT rowid
          INTO l_row_id
          FROM igc_cc_headers
         WHERE cc_header_id = l_cc_headers_rec.cc_header_id;
Line: 4612

                        p_update_flag      => l_update_flag
                       );
Line: 4779

  SELECT ccac.ROWID,
               ccac.cc_header_id,
               NULL org_id,
               NULL cc_type,
               NULL cc_type_code,
               NULL cc_num,
               ccac.cc_acct_line_id,
               ccac.cc_acct_line_num,
               ccac.cc_acct_desc,
               ccac.parent_header_id,
               ccac.parent_acct_line_id,
               NULL parent_cc_acct_line_num,
               NULL cc_budget_acct_desc,
               ccac.cc_budget_code_combination_id,
               NULL cc_charge_acct_desc,
               ccac.cc_charge_code_combination_id,
               ccac.cc_acct_entered_amt,
               ccac.cc_acct_func_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_ACCT_FUNC_BILLED_AMT(ccac.cc_acct_line_id) cc_acct_func_billed_amt,
               ccac.cc_acct_encmbrnc_amt,
               (IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0)) - NVL(ccac.cc_acct_encmbrnc_amt,0)) cc_acct_unencmrd_amt,
               ccac.cc_acct_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_acct_entered_amt,0))
               cc_acct_comp_func_amt,
               NULL project_number,
               ccac.project_id,
               NULL task_number,
               ccac.task_id,
               ccac.expenditure_type,
               NULL expenditure_org_name,
               ccac.expenditure_org_id,
               ccac.expenditure_item_date,
               ccac.cc_acct_taxable_flag,
               NULL tax_name,
               ccac.tax_id,
               ccac.cc_acct_encmbrnc_status,
               ccac.cc_acct_encmbrnc_date,
               ccac.context,
               ccac.attribute1,
               ccac.attribute2,
               ccac.attribute3,
               ccac.attribute4,
               ccac.attribute5,
               ccac.attribute6,
               ccac.attribute7,
               ccac.attribute8,
               ccac.attribute9,
               ccac.attribute10,
               ccac.attribute11,
               ccac.attribute12,
               ccac.attribute13,
               ccac.attribute14,
               ccac.attribute15,
               ccac.created_by,
               ccac.creation_date,
               ccac.last_updated_by,
               ccac.last_update_date,
               ccac.last_update_login,
               ccac.cc_func_withheld_amt,
               ccac.cc_ent_withheld_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(ccac.cc_header_id, NVL(ccac.cc_func_withheld_amt,0)) cc_comp_func_whld_amt,
               ccac.Tax_Classif_Code
        FROM  igc_cc_acct_lines ccac
        WHERE ccac.cc_header_id = t_cc_header_id;
Line: 4854

        SELECT ccdpf.ROWID,
               ccdpf.cc_det_pf_line_id,
               ccdpf.cc_det_pf_line_num,
               NULL  cc_acct_line_num,
               ccdpf.cc_acct_line_id,
               NULL  parent_det_pf_line_num,
               ccdpf.parent_det_pf_line_id,
               ccdpf.parent_acct_line_id,
               ccdpf.cc_det_pf_entered_amt,
               ccdpf.cc_det_pf_func_amt,
               ccdpf.cc_det_pf_date,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_billed_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_PF_FUNC_BILLED_AMT(ccdpf.cc_det_pf_line_id, ccdpf.cc_det_pf_line_num, ccdpf.cc_acct_line_id) cc_det_pf_func_billed_amt,
               ccdpf.cc_det_pf_unbilled_amt,
               IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT(p_cc_header_id,NVL(ccdpf.cc_det_pf_entered_amt,0)) cc_det_pf_comp_func_amt,
               ccdpf.cc_det_pf_encmbrnc_amt,
               ( IGC_CC_COMP_AMT_PKG.COMPUTE_FUNCTIONAL_AMT ( p_cc_header_id, NVL(ccdpf.cc_det_pf_entered_amt,0) ) -
               NVL(ccdpf.cc_det_pf_encmbrnc_amt,0) ) cc_det_pf_unencmbrd_amt ,
               ccdpf.cc_det_pf_encmbrnc_date,
               ccdpf.cc_det_pf_encmbrnc_status,
               ccdpf.context,
               ccdpf.attribute1,
               ccdpf.attribute2,
               ccdpf.attribute3,
               ccdpf.attribute4,
               ccdpf.attribute5,
               ccdpf.attribute6,
               ccdpf.attribute7,
               ccdpf.attribute8,
               ccdpf.attribute9,
               ccdpf.attribute10,
               ccdpf.attribute11,
               ccdpf.attribute12,
               ccdpf.attribute13,
               ccdpf.attribute14,
               ccdpf.attribute15,
               ccdpf.last_update_date,
               ccdpf.last_updated_by,
               ccdpf.last_update_login,
               ccdpf.creation_date,
               ccdpf.created_by
        FROM igc_cc_det_pf ccdpf
  WHERE ccdpf.cc_acct_line_id = t_cc_acct_line_id;
Line: 4900

        SELECT application_id
        FROM   fnd_application
        WHERE  application_short_name = 'SQLGL';
Line: 4938

      SELECT  NVL(enable_budgetary_control_flag,'N')
        INTO    l_sbc_enable_flag
        FROM    gl_sets_of_books
        WHERE   set_of_books_id = p_sob_id;
Line: 4959

          SELECT  cc_bc_enable_flag
          INTO     l_cbc_enable_flag
          FROM    igc_cc_bc_enable
          WHERE   set_of_books_id = p_sob_id;
Line: 4978

          SELECT cc_prov_encmbrnc_enable_flag,
                       cc_conf_encmbrnc_enable_flag
          INTO  l_cc_prov_encmbrnc_flag,
                        l_cc_conf_encmbrnc_flag
          FROM     igc_cc_encmbrnc_ctrls_v
          WHERE    org_id = p_org_id;
Line: 5035

                          SELECT count(*)
                          INTO l_COUNT
                          FROM gl_sets_of_books sob, gl_periods gp, igc_cc_periods cp
              WHERE sob.set_of_books_id = p_sob_id
          AND   sob.period_set_name = gp.period_set_name
          AND   cp.org_id = p_org_id
          AND  gp.period_set_name = cp.period_set_name
          AND  cp.period_name = gp.period_name
              AND  cp.cc_period_status IN ('O','F')
          AND  (p_start_date BETWEEN gp.start_date AND gp.end_date);
Line: 5075

                          SELECT  count(*)
                          INTO  l_COUNT
                          FROM  gl_sets_of_books sob,
                                                gl_period_statuses gl,
                                                igc_cc_periods cp
              WHERE   sob.set_of_books_id = p_sob_id
          AND   gl.set_of_books_id = sob.set_of_books_id
                            AND     gl.application_id = 101
          AND     cp.org_id = p_org_id
          AND   cp.period_set_name = sob.period_set_name
          AND   cp.period_name = gl.period_name
            AND     cp.cc_period_status IN ('O','F')
          AND     gl.closing_status IN ('O','F')
            AND     (p_start_date BETWEEN gl.start_date AND gl.end_date);
Line: 5118

              SELECT MIN(cch.cc_start_date)
              INTO  l_min_rel_start_date
              FROM igc_cc_headers  cch
              WHERE cch.parent_header_id = p_cc_header_id;
Line: 5144

              SELECT cch.cc_start_date
              INTO  l_cover_start_date
              FROM igc_cc_headers  cch
              WHERE cch.cc_header_id = p_parent_cc_header_id;
Line: 5197

              SELECT MAX(cch.cc_end_date)
              INTO  l_max_rel_end_date
              FROM igc_cc_headers  cch
              WHERE cch.parent_header_id = p_cc_header_id;
Line: 5221

          SELECT cch.cc_end_date
            INTO  l_cover_end_date
              FROM igc_cc_headers  cch
              WHERE cch.cc_header_id = p_parent_cc_header_id;
Line: 5280

                    SELECT  count(*)
                        INTO  l_COUNT
          FROM  gl_sets_of_books sob,
                                    gl_period_statuses gl,
                                    igc_cc_periods cp
            WHERE   sob.set_of_books_id = p_sob_id
          AND   gl.set_of_books_id = sob.set_of_books_id
                            AND     gl.application_id  = l_gl_application_id   -- Bug 1830385
          AND     cp.org_id = p_org_id
          AND   cp.period_set_name = sob.period_set_name
          AND   cp.period_name = gl.period_name
            AND     cp.cc_period_status IN ('O','F')
          AND     gl.closing_status IN ('O','F')
                        AND     (p_cc_det_pf_date BETWEEN gl.start_date AND gl.end_date);
Line: 5385

                              SELECT  count(*)
                            INTO  l_COUNT
                FROM  gl_sets_of_books sob,
                        gl_period_statuses gl,
                        igc_cc_periods cp
                WHERE   sob.set_of_books_id = p_sob_id
            AND   gl.set_of_books_id = sob.set_of_books_id
                                AND     gl.application_id  = l_gl_application_id   -- Bug 1830385
            AND     cp.org_id = p_org_id
            AND   cp.period_set_name = sob.period_set_name
            AND   cp.period_name = gl.period_name
              AND     cp.cc_period_status IN ('O','F')
            AND     gl.closing_status IN ('O','F')
                          AND     (p_acct_date BETWEEN gl.start_date AND gl.end_date);
Line: 5444

                                                        SELECT  distinct gl.period_year
                                  INTO    l_orig_fiscal_year
                                                        FROM  gl_sets_of_books sob,
                                                                gl_periods gl
                                                        WHERE   sob.set_of_books_id = p_sob_id
                                                        AND     gl.period_set_name= sob.period_set_name
                                                        AND     gl.period_type = sob.accounted_period_type
                                                        AND    (p_prev_acct_date between gl.start_date and gl.end_date);
Line: 5472

                                                        SELECT  distinct gl.period_year
                                  INTO    l_new_fiscal_year
                                                        FROM  gl_sets_of_books sob,
                                                                gl_periods gl
                                                        WHERE   sob.set_of_books_id = p_sob_id
                                                        AND     gl.period_set_name= sob.period_set_name
                                                        AND     gl.period_type = sob.accounted_period_type
                                                        AND    (p_acct_date between gl.start_date and gl.end_date);
Line: 5500

                            SELECT  count(*)
                          INTO  l_COUNT
            FROM  gl_sets_of_books sob,
                        gl_period_statuses gl,
                        igc_cc_periods cp
              WHERE   sob.set_of_books_id = p_sob_id
            AND   gl.set_of_books_id = sob.set_of_books_id
                                AND     gl.application_id  = l_gl_application_id   -- Bug 1830385
            AND     cp.org_id = p_org_id
            AND   cp.period_set_name = sob.period_set_name
            AND   cp.period_name = gl.period_name
              AND     cp.cc_period_status = 'O'
            AND     gl.closing_status = 'O'
                          AND     (p_acct_date BETWEEN gl.start_date AND gl.end_date);
Line: 5606

                            SELECT  count(*)
                          INTO  l_COUNT
            FROM  gl_sets_of_books sob,
                        gl_period_statuses gl,
                        igc_cc_periods cp
              WHERE   sob.set_of_books_id = p_sob_id
            AND   gl.set_of_books_id = sob.set_of_books_id
                                AND     gl.application_id  = l_gl_application_id   -- Bug 1830385
            AND      cp.org_id = p_org_id
            AND   cp.period_set_name = sob.period_set_name
            AND   cp.period_name = gl.period_name
              AND      cp.cc_period_status IN ('O','F')
            AND      gl.closing_status IN ('O','F')
                          AND      (p_acct_date BETWEEN gl.start_date AND gl.end_date);
Line: 5664

                                    SELECT  distinct gl.period_year
              INTO    l_orig_fiscal_year
                                    FROM  gl_sets_of_books sob,
                                            gl_periods gl
                                    WHERE   sob.set_of_books_id = p_sob_id
                                    AND     gl.period_set_name= sob.period_set_name
                                    AND     gl.period_type = sob.accounted_period_type
                                    AND     (p_prev_acct_date between gl.start_date and gl.end_date);
Line: 5692

                                    SELECT  distinct gl.period_year
              INTO    l_new_fiscal_year
                                    FROM  gl_sets_of_books sob,
                                            gl_periods gl
                                    WHERE   sob.set_of_books_id = p_sob_id
                                    AND     gl.period_set_name= sob.period_set_name
                                    AND     gl.period_type = sob.accounted_period_type
                                    AND    (p_acct_date between gl.start_date and gl.end_date);
Line: 5720

                            SELECT  count(*)
                          INTO  l_COUNT
            FROM  gl_sets_of_books sob,
                      gl_period_statuses gl,
                            igc_cc_periods cp
              WHERE   sob.set_of_books_id = p_sob_id
            AND   gl.set_of_books_id = sob.set_of_books_id
                                AND     gl.application_id  = l_gl_application_id   -- Bug 1830385
            AND     cp.org_id = p_org_id
            AND   cp.period_set_name = sob.period_set_name
            AND   cp.period_name = gl.period_name
              AND      cp.cc_period_status = 'O'
            AND      gl.closing_status = 'O'
                          AND      (p_acct_date BETWEEN gl.start_date AND gl.end_date);
Line: 5762

      SELECT *
      INTO l_cc_headers_rec
      FROM igc_cc_headers
      WHERE cc_header_id = p_cc_header_id;
Line: 5811

        SELECT count(*)
        INTO l_cc_det_pf_cnt
        FROM igc_cc_det_pf
        WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 5886

      SELECT *
      INTO l_cc_headers_rec
      FROM igc_cc_headers
      WHERE cc_header_id = p_cc_header_id;
Line: 5928

        SELECT count(*)
        INTO l_cc_det_pf_cnt
        FROM igc_cc_det_pf
        WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 6003

                    SELECT  count(*)
                          INTO  l_COUNT
                          FROM  gl_sets_of_books sob,
                    gl_period_statuses gl,
                  igc_cc_periods cp
                 WHERE  sob.set_of_books_id = p_sob_id
               AND  gl.set_of_books_id = sob.set_of_books_id
                           AND  gl.application_id  = l_gl_application_id   -- Bug 1830385
               AND  cp.org_id = p_org_id
                 AND  cp.period_set_name = sob.period_set_name
               AND  cp.period_name = gl.period_name
                 AND  cp.cc_period_status IN ('O','F')
                 AND  gl.closing_status IN ('O','F')
                 AND  (l_cc_det_pf_lines_rec.cc_det_pf_date
                 BETWEEN gl.start_date AND gl.end_date
                 );
Line: 6094

                     fnd_message.set_name('IGC','IGC_CC_DET_PF_DATE_NO_UPDATE');
Line: 6127

                                    SELECT  distinct gl.period_year
              INTO    l_orig_fiscal_year
                                    FROM  gl_sets_of_books sob,
                                            gl_periods gl
                                    WHERE   sob.set_of_books_id = p_sob_id
                                    AND     gl.period_set_name= sob.period_set_name
                                    AND     gl.period_type = sob.accounted_period_type
                                    AND    (l_cc_det_pf_lines_rec.cc_det_pf_encmbrnc_date between gl.start_date and gl.end_date);
Line: 6156

                                    SELECT  distinct gl.period_year
              INTO    l_new_fiscal_year
                                    FROM  gl_sets_of_books sob,
                                            gl_periods gl
                                    WHERE   sob.set_of_books_id = p_sob_id
                                    AND     gl.period_set_name= sob.period_set_name
                                    AND     gl.period_type = sob.accounted_period_type
                                    AND    (l_cc_det_pf_lines_rec.cc_det_pf_date between gl.start_date and gl.end_date);
Line: 6188

      SELECT SUM(NVL(CC_DET_PF_ENTERED_AMT,0))
      INTO l_total_pf_entered_amt
      FROM igc_cc_det_pf
      WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 6233

      SELECT *
      INTO l_cc_headers_rec
      FROM igc_cc_headers
      WHERE cc_header_id = p_cc_header_id;
Line: 6274

          SELECT count(*)
          INTO l_cc_det_pf_cnt
          FROM igc_cc_det_pf
          WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 6355

                        SELECT  count(*)
                              INTO  l_COUNT
                              FROM  gl_sets_of_books sob,
                        gl_period_statuses gl,
                      igc_cc_periods cp
                     WHERE  sob.set_of_books_id = p_sob_id
                   AND  gl.set_of_books_id = sob.set_of_books_id
                               AND  gl.application_id  = l_gl_application_id   -- Bug 1830385
                   AND  cp.org_id = p_org_id
                     AND  cp.period_set_name = sob.period_set_name
                   AND  cp.period_name = gl.period_name
                     AND  cp.cc_period_status IN ('O','F')
                     AND  gl.closing_status IN ('O','F')
                     AND  (l_cc_det_pf_lines_rec.cc_det_pf_date
                     BETWEEN gl.start_date AND gl.end_date
                     );
Line: 6446

                      'IGC_CC_DET_PF_DATE_NO_UPDATE');
Line: 6479

                                         SELECT   distinct gl.period_year
                       INTO   l_orig_fiscal_year
                                         FROM   gl_sets_of_books sob,
                                                gl_periods gl
                                         WHERE  sob.set_of_books_id = p_sob_id
                                         AND     gl.period_set_name= sob.period_set_name
                                         AND     gl.period_type = sob.accounted_period_type
                                         AND    (l_cc_det_pf_lines_rec.cc_det_pf_encmbrnc_date between gl.start_date and gl.end_date);
Line: 6508

                                          SELECT  distinct gl.period_year
                        INTO    l_new_fiscal_year
                                          FROM      gl_sets_of_books sob,
                                                    gl_periods gl
                                          WHERE   sob.set_of_books_id = p_sob_id
                                          AND     gl.period_set_name= sob.period_set_name
                                          AND     gl.period_type = sob.accounted_period_type
                                          AND    (l_cc_det_pf_lines_rec.cc_det_pf_date between gl.start_date and gl.end_date);
Line: 6538

        SELECT SUM(NVL(CC_DET_PF_ENTERED_AMT,0))
        INTO l_total_pf_entered_amt
        FROM igc_cc_det_pf
        WHERE cc_acct_line_id = l_cc_acct_lines_rec.cc_acct_line_id;
Line: 6638

   SELECT Nvl(tax_recovery_rate,100),
          Nvl(tax_rate,0)
   FROM   ap_tax_codes a,
          financials_system_parameters b
   WHERE  a.set_of_books_id = b.set_of_books_id
   AND    a.tax_id          = p_tax_id;