10 Replies Latest reply: Jan 7, 2014 6:48 PM by 996473 RSS

    Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"

    996473

      Hi All,


      During importing of invoices from ap_invoices_interface, the invoices was been rejected (status).
      The reject_lookup_code is "VALIDATE DEFAULT IMPORT FAIL" in ap_interface_rejections.

      We dont know the meaning "VALIDATE DEFAULT IMPORT FAIL".


      Do you encounter this error? do you know how to fix this?


      need your help, it did paralyzed once part of the business process..


      RDBMS : 11.2.0.3.0

      Oracle Applications : 12.1.3


      Regards,

        • 1. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
          952669

          Hi,

           

          Could you run the payables open interface report as this report will let you know the reason for rejection ?

           

          Thanks

          • 2. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
            Cheryl Riniker-Oracle

            Hi,

             

            This error message occurs in the apiimptb.pls procedure (AP_IMPORT_INVOICES_PKG) if the call to the ap_etax_services_pkg.validate_default_import returns an error.  This is the apetxsrb.pls file.

             

            What we would do in Support is to get your versions of those two files, apiimptb.pls and apetxsrb.pls. We would also ask for an FND Log file of the error, so we can see where in the ap_etax_services_pkg the failure is and try to determine what is happening.

             

            I would also want to know how many records you are trying to import (there are some performance fixes on the recent code), and what types of invoice_type_lookup_codes you are importing.

             

            Cheryl

            • 3. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
              996473

              Hi Cheryl,

               

              I did file an SR for this issue last december, but I think, the support havent encounter this issue yet.

              the company is force now to have it manual due error encounter.

               

              They are about 43 records and counting.

               

              The invoice_type_lookup_code is

              PREPAYMENT
              STANDARD
              EXPENSE REPORT
              

               

              If you want, I could give the apiimptb.pls and apetxsrb.pls and the FND Log file.

               

              Your help really appreciated.

               

              Regards,

              • 4. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
                Cheryl Riniker-Oracle

                Hi,

                 

                The versions and the FND log would be useful to figure out. The code does exclude PAYMENT REQUEST information in the cursor. Because you don't have any of those to import, I can rule out there being an issue with the type of invoices being imported. Now I need to know where the failure is, which the FND Log should show me.

                 

                Cheryl

                • 5. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
                  996473

                  Hi Cheryl,

                   

                  If you can take over of our SR, it would be much appreciated.

                   

                  SR 3-8258866261


                   

                  We really need solution so bad.

                  We need your support.

                   

                  Regards,


                  • 6. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
                    996473

                    Hi Cheryl,

                     

                    the version of the said file:

                     

                    /* $Header: apiimptb.pls 120.64.12010000.47 2013/04/30 13:43:38 nbshaik ship $ */

                     

                    /* $Header: apetxsrb.pls 120.115.12010000.122 2013/05/13 10:22:18 harsanan ship $ */

                     

                    See below the FND Logs..

                     

                    Regards,

                    • 7. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
                      996473

                      +---------------------------------------------------------------------------+

                      Payables: Version : 12.0.0

                       

                      Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

                       

                      APXIIMPT module: Payables Open Interface Import

                      +---------------------------------------------------------------------------+

                       

                      Current system time is 02-JAN-2014 12:49:01

                       

                      +---------------------------------------------------------------------------+

                       

                       

                      +-----------------------------

                      | Starting concurrent program execution...

                      +-----------------------------

                       

                      Arguments

                      ------------

                      p_org_id='103'

                      p_source='APDU_IRS'

                      p_batch_name='N/A'

                      p_purge_flag='N'

                      p_trace_switch='N'

                      p_debug_switch='N'

                      p_summary_flag='N'

                      p_commit_batch_size='1000'

                      p_user_id='1110'

                      p_login_id='4363265'

                      ------------

                       

                      Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :

                      American_America.WE8MSWIN1252

                       

                      '.,'

                       

                      Enter Password:

                      MSG-00000: 0 invoice(s) were created during the process run

                      MSG-00000: 55 invoice(s) were fetched during the process run

                      MSG-00000:  summarize flagN

                      MSG-00883: After Repport Trigger: Setting the Org Context to Multiple

                       

                      Report Builder: Release 10.1.2.3.0 - Production on Thu Jan 2 12:49:03 2014

                       

                      Copyright (c) 1982, 2005, Oracle.  All rights reserved.

                       

                       

                      +---------------------------------------------------------------------------+

                      Start of log messages from FND_FILE

                      +---------------------------------------------------------------------------+

                      Request_id4627153

                      (Import_invoice 0.1) Calling Caching Function for Org Id/Name

                      Cache_Org_Id_Name <- Import_invoices<- Before Report Trigger

                      Caching Org_id , Name from MO: Security Profile

                      Caching Org_id  from Financials Systems

                      (Import_Invoices 0.2)  Calling Caching Function for Currency

                      Cache_Fnd_Currency <- Import_invoices<- Before Report Trigger

                      Caching Currency from Fnd Currency

                      (Import_Invoices 0.3) Calling Caching Function for Payment Method

                      Cache_Payment_Method <- Import_invoices<- Before Report Trigger

                      Caching Payment Method from IBY

                      (Import_Invoices 0.4) Calling Caching Function for Payment Group

                      Cache_Pay_group <- Import_invoices<- Before Report Trigger

                      Caching Pay Group from PO Lookup Codes

                      (Import_Invoices 0.5) Caching Structure Id

                      (Import_invoice 1) Check control table for the import batch

                      (Import_invoice 2) Print Source

                      p_sourceAPDU_IRS

                      (Import Invoice 3) Delete Rejections from previous failed imports

                      (Check_lines 3a) Select all the Rejected Invoices

                      (Check_lines 3b) Delete invoices from ap_interface_rejections

                      (Check_lines 3c) Update requestid on the Selected Invoices

                      (Import Invoice 4) Update the org_id

                      (Import_Invoices 4a) Updating Interface WHERE org_id is null but operating unit

                      is not null

                      (Import_Invoices 4b) Getting Deafult Operating Unit Information

                      (Import Invoices 5) Get The Total Number of Invoices In Interface

                      (Import_Invoices 5a) Total Invoices l_stmt:SELECT count(*) FROM ap_invoices_inte

                      rface   WHERE source = 'APDU_IRS'  AND ((status is NULL) or (status = 'REJECTED'

                      ))  AND NVL(invoice_type_lookup_code, 'STANDARD') <> 'PAYMENT REQUEST'  AND ( (o

                      rg_id IS NULL) OR (org_id IS NOT NULL AND org_id  = 103) )  AND nvl(workflow_fla

                      g,'D') = 'D'

                      (Import_Invoices 4c) Total Invoices: l_total_count:55

                      (Import_Invoices 4d) l_continue_flag:Y

                      (Import_invoice 5.5)  Unwinding Caching Org Id/Name

                      Index Value: 103, MOAC Cached Org_Id: 103, MOAC Cached Operating Unit: COTABATO

                      LIGHT & POWER COMPANY

                      Index Value: 103, FSP Cached Org_Id: 103

                      (Import_invoice 6) Open import_invoices cursor

                      (Import_invoice -->Execution started for first loop:14-JAN-02 12:49:04

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 127605 invoice_num  = 25207621A invoice_type_lo

                      okup_code  = STANDARD invoice_date  = 14-OCT-13 po_number  =  vendor_id  = 4246

                      vendor_num  = 534 vendor_name  =  vendor_site_id  = 4360 vendor_site_code  = COT

                      ABATO party_id   =  party_site_id  =  pay_proc_trxn_type_code =  payment_functio

                      n =  invoice_amount = 3812 base_currency_code =  invoice_currency_code  = PHP pa

                      yment_currency_code  =  exchange_rate  = 1 exchange_rate_type =  exchange_date 

                      =  terms_id  =  terms_name  = IMMEDIATE description  = PP COFFEE,COFFEMATE & SUG

                      AR. 2013B Q4 ENGG OFFICE SUPPLIES awt_group_id  =  awt_group_name  =  pay_awt_gr

                      oup_id  =  pay_awt_group_name  =  last_update_date  = 02-JAN-14 last_updated_by

                      = 1445 last_update_login  = 4097553 creation_date  = 02-JAN-14 attribute_catego

                      ry =  attribute1 =  attribute2 =  attribute3 =  attribute4 =  attribute5 =  attr

                      ibute6 =  attribute7 =  attribute8 =  attribute9 =  attribute10 =  attribute11 =

                        attribute12 =  attribute13 =  attribute14 =  attribute15 =  global_attribute_c

                      ategory =  global_attribute1 =  global_attribute2 =  global_attribute3 =  global

                      _attribute4 =  global_attribute5 =  global_attribute6 =  global_attribute7 =  gl

                      obal_attribute8 =  global_attribute9 =  global_attribute10 =  global_attribute11

                      =  global_attribute12 =  global_attribute13 =  global_attribute14 =  global_att

                      ribute15 =  global_attribute16 =  global_attribute17 =  global_attribute18 =  gl

                      obal_attribute19 =  global_attribute20 =  doc_category_code  = STD INV voucher_n

                      um  =  payment_method_code =  pay_group_lookup_code =  goods_received_date =  in

                      voice_received_date = 14-OCT-13 exclusive_payment_flag =  prepay_num =  prepay_l

                      ine_num =  prepay_apply_amount =  prepay_gl_date =  set_of_books_id =  legal_ent

                      ity_id =  tax_only_flag = N tax_only_rcv_matched_flag = N remit_to_supplier_name

                      =  remit_to_supplier_id =  remit_to_supplier_site =  remit_to_supplier_site_id

                      =  relationship_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import_invoice 9b) Call get_info to get required info

                      (Get_info 1) Read from ap_system_parameters

                      (Get_info 2) Get Batch Control Profile Option

                      (Get_info 3) Get encumbrance option

                      (Get_info 4) Get minimum_accountable_unit

                      (Get_info 5) Get p_sequence_numbering

                      (Get_info 6) Get gl_date based on report parameters

                      (Get_info 7) Check if PA is installed

                      ------------------> l_status = I l_industry  = C p_pa_installed =

                      (Get_info 8) Get chart_of_accounts_id from p_set_of_books_id

                      (Get_info 9) Get system tolerances

                      ------------------>  p_org_id = 103 p_set_of_books_id =  l_multi_currency_flag 

                      =  l_make_rate_mANDatory_flag  =  l_default_exchange_rate_type  =  l_base_curren

                      cy_code  =  l_batch_control_flag  =  l_payment_cross_rate  =  l_base_min_acct_un

                      it  =  l_base_precision  =  l_sequence_numbering  =  l_awt_include_tax_amt  =  l

                      _gl_date_from_get_info =  l_gl_date_from_receipt_flag = S l_purch_encumbrance_fl

                      ag =  l_chart_of_accounts_id  =  l_pa_installed  = N l_positive_price_tolerance

                      =  l_negative_price_tolerance  =  l_qty_tolerance  =  l_max_qty_ord_tolerance =

                      l_inv_doc_cat_override  = N l_allow_interest_invoices =

                      (Import_invoice 9c) Get batch_id IF batch_control is on

                      (Get_batch_id 1) Get old batch id

                      ------------------> l_batch_id = 48678 l_batch_type = OLD BATCH

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 4246

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 4360 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 4360 l_price_tolerance  = 0 l_positive_pr

                      ice_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_re

                      ceived_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  =  l_

                      amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l_m

                      ax_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttoleranc

                      e  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_servic

                      es_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              25207621A

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 5) Check for Currency Code ,if Invoice No. is valid

                      (Check Invoice Currency Code 2) Get precision, mau for Invoice Currency Code.

                      l_valid_inv_currency: PHP

                      --------------> l_temp_invoice_status  = Y l_inv_currency_code = PHP

                      (Check Invoice Validation 6) Check for Invoice Lookup Code and Amount ,if Invoice No. is valid

                      (Check Invoice Type and Amount 1) Check for Invalid Invoice type lookup code.

                      (Check Invoice Type and Amount 2) Check for Null Invoice amount.

                      (Check Invoice Type and Amount 3) Check for Invalid Invoice amount.

                      (Check Invoice Type and Amount 4) Check for Invoice amount to match sum of invoi

                      ce line amounts.

                      (Check Invoice Type and Amount 6) Determine Match Mode.

                      ------------------>

                                  l_temp_invoice_status  = Y p_match_mode =

                      (Check Invoice Validation 7) Check for AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 7) Check for pay AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive pay AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 8) Check for Exchange Rate Type ,if Invoice No. is val

                      id

                      (Check Exchange Rate Type 9.a) Check for inconsistent exchange Information Enter

                      ed

                      (Check Exchange Rate Type 9.b) Exchange Rate info :Nullified

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 9) Check for Terms Info ,if Invoice No. is valid

                      (Check Invalid Terms 6a) Check for Terms Date provided as input :

                      (Check Invalid Terms 6b) Check for Invoice and Goods Received Date

                      (Check Invalid Terms 8) Check calendar based payment terms

                      ------------------>

                                  l_temp_invoice_status  = Yterms_id = 10000

                      (Check Invoice Validation 10) Check for Misc Info

                      (step 10.1 default the liability account

                      (Check Misc Invoice Info 1) Check for valid accts_pay_ccid.

                      (Check Misc Invoice Info 5) Check for valid employee

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11a) Check for LE Info

                      (Check Legal Entity Info 2) Check for reg code/number and Get LE.

                      (Check Legal Entity Info 2.1) Get Bill TO Location ID

                      (Check Legal Entity Info 2.2) Call LE API

                      (Check Legal Entity Info 2.3) Valid LE Flow

                      (Check Legal Entity Info 2.4a) Legal Entity ID: 23287

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11) Check for Payment Currency Info ,if Invoice No. is

                      valid

                      (Check Invalid Pay Currency 0)  Calling Caching Function for Currency

                      Cache_Fnd_Currency <- AP_IMPORT_VALIDATION_PKG.v_check_invalid_pay_curr<-AP_IMPO

                      RT_VALIDATION_PKG.v_check_invoice_validation<-Import_invoices<- Before Report Tr

                      igger

                      Caching Currency from Fnd Currency

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 14) Check for Prepayment Info.

                      ------------------>

                                            l_temp_invoice_status  = Y

                      (Check Invoice Validation 15) Check for tax drivers or invoice level tax validat

                      ions.

                      (Check tax info 1) Check for control_amount

                      (Check tax info 2) Check for tax_related_invoice_id

                      (Check tax info 3) Check for calc_tax_during_import_flag

                      (Check tax info 4) Validate if allocation structure is provided for inclusive li

                      nes when the invoice has more than one item line.

                      (Check tax info 5) Check if any non-tax line has tax information

                      (Check tax info 6) Check if an invoice has a tax line matched to receipt and ano

                      ther allocated to item lines

                      ------------------> l_temp_invoice_status  = Y

                      Check for Invalid Remit to Supplier

                      Check valid remit to supplier details

                      Remit to supplier Name

                      Remit to supplier Id

                      Remit to supplier Site Id

                      Remit to supplier Site Name

                      If Remit to supplier Name

                      If Remit to supplier Id

                      Remit to supplier Num

                      Remit to supplier Site Id

                      Remit to supplier Site

                      Data To IBY

                      Party Id 10694

                      Vendor Site id 4360

                      Invoice Date 14-OCT-13

                      Remit Party Id

                      Remit Supplier Site Id

                      Enter : import_Ext_Payee_Relationship

                      Input Parameters : p_party_id,p_supplier_site_id,p_date

                      Input Values : 10694,4360,14-OCT-13

                      Relationship ID is NOT provided

                      1 Remit-To-Supplier and Remit-To-Supplier Site are not provided

                      1 Primary Relationship not found

                      1 Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      1 Output Values : T,-1,,

                      Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      Output Values : T,-1,,

                      Exit : import_Ext_Payee_Relationship

                      Data From IBY

                      x_result : T

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 16) Check for Exchange Rate Info.

                      (Check No Xrate Base Amount 1) Is Xrate_Base_Amount invalid?

                      (Check Invoice Validation 17) Check Payment Info

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Application_id   : 200

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : 1st party LE id  : 23287

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Id           : 103

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Type         : OPERATING_UNIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payer Id         : 10694

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee Site Id    : 7665

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Supplier Site Id : 4360

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Trxn Type Code   : PAYABLES_DOC

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Amount   : 3812

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Function : PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id 7665, supplier site id 4360, org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 1786 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id 7665, supplier site id , org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id 7665, supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id , supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 1785 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Format Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Code    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Delivery Channel Code  :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Bank Charge Bearer     : I

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Exclusive Payment Flag : N

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Settlement Priority    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Comments    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Method Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee OverRide Flag            : Y

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Accounting currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : First party country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Payee Country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule:1

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_le_match     :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_org_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_trxn_type_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_currency_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_cross_border_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_match                   :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Default Payment Method Name :Clearing

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : RETURN

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default payee bank account     :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : RETURN

                      ------------------>

                                  l_temp_invoice_status  = Y

                      ------------------> vendor_id = 4246 vendor_site_id = 4360 invoice_status = Y te

                      rms_id = 10000 fatal_error_flag =  invoice_type_lookup_code = STANDARD match_mod

                      e  =

                      (Import_invoice 12) Validate line

                      SOBID is :

                      (Check_lines 1) Call Get_employee_id

                      (Get_employee_id 1) Get employee id from po_vendors

                      (Get_employee_id 3) Employee_id id Null

                      ------------------> l_temp_line_status = Y l_employee_id =

                      (Check Lines 2) Get Max Line Number

                      (Check Lines 3) Open Cursor: invoice_lines

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145483 line_type_lookup_code = ITEMline_n

                      umber = 1line_group_number = amount = 209.39base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-PP COFFEE,COFFEMATE &SUGARprorate_across_flag = po_he

                      ader_id = po_number = po_line_id = po_line_number = po_release_id = release_num

                      = po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_n

                      um = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasin

                      g_category_id = purchasing_category = quantity_invoiced = 1ship_to_location_code

                      = unit_price = final_match_flag = distribution_set_id = distribution_set_name =

                      dist_code_concatenated = 3002.8030119002.3121.00.00000.0000.601.0000.000dist_co

                      de_combination_id = awt_group_id = awt_group_name = balancing_segment = cost_cen

                      ter_segment = account_segment = attribute_category = attribute1 = attribute2 = a

                      ttribute3 = attribute4 = attribute5 = attribute6 = attribute7 = attribute8 = att

                      ribute9 = attribute10 = attribute11 = attribute12 = attribute13 = attribute14 =

                      attribute15 = global_attribute_category = global_attribute1 = global_attribute2

                      = global_attribute3 = global_attribute4 = global_attribute5 = global_attribute6

                      = global_attribute7 = global_attribute8 = global_attribute9 = global_attribute10

                      = global_attribute11 = global_attribute12 = global_attribute13 = global_attribu

                      te14 = global_attribute15 = global_attribute16 = global_attribute17 = global_att

                      ribute18 = global_attribute19 = global_attribute20 = project_id = task_id = awar

                      d_id = expenditure_type = expenditure_item_date = expenditure_organization_id =

                      pa_addition_flag = pa_quantity = stat_amount = type_1099 = income_tax_region = a

                      sset_tracking_flag = asset_book_type_code = asset_category_id = serial_number =

                      manufacturer = model_number = warranty_number = price_correction_flag = price_co

                      rrect_inv_num = price_correct_inv_id = price_correct_inv_line_num = receipt_numb

                      er = receipt_line_number = rcv_transaction_id = match_option = packing_slip = ve

                      ndor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processe

                      d_code = reference_1 = reference_2 = credit_card_trx_id = requester_id = org_id

                      = 103expense_start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3121.00.00000.0000.601.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8189, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8189

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145484 line_type_lookup_code = ITEMline_n

                      umber = 2line_group_number = amount = 209.39base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-PP COFFEE,COFFEMATE & SUGARprorate_across_flag = po_h

                      eader_id = po_number = po_line_id = po_line_number = po_release_id = release_num

                      = po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_

                      num = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasi

                      ng_category_id = purchasing_category = quantity_invoiced = 1ship_to_location_cod

                      e = unit_price = final_match_flag = distribution_set_id = distribution_set_name

                      = dist_code_concatenated = 3002.8030119002.3121.00.00000.0000.602.0000.000dist_c

                      ode_combination_id = awt_group_id = awt_group_name = balancing_segment = cost_ce

                      nter_segment = account_segment = attribute_category = attribute1 = attribute2 =

                      attribute3 = attribute4 = attribute5 = attribute6 = attribute7 = attribute8 = at

                      tribute9 = attribute10 = attribute11 = attribute12 = attribute13 = attribute14 =

                      attribute15 = global_attribute_category = global_attribute1 = global_attribute2

                      = global_attribute3 = global_attribute4 = global_attribute5 = global_attribute6

                      = global_attribute7 = global_attribute8 = global_attribute9 = global_attribute1

                      0 = global_attribute11 = global_attribute12 = global_attribute13 = global_attrib

                      ute14 = global_attribute15 = global_attribute16 = global_attribute17 = global_at

                      tribute18 = global_attribute19 = global_attribute20 = project_id = task_id = awa

                      rd_id = expenditure_type = expenditure_item_date = expenditure_organization_id =

                      pa_addition_flag = pa_quantity = stat_amount = type_1099 = income_tax_region =

                      asset_tracking_flag = asset_book_type_code = asset_category_id = serial_number =

                      manufacturer = model_number = warranty_number = price_correction_flag = price_c

                      orrect_inv_num = price_correct_inv_id = price_correct_inv_line_num = receipt_num

                      ber = receipt_line_number = rcv_transaction_id = match_option = packing_slip = v

                      endor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_process

                      ed_code = reference_1 = reference_2 = credit_card_trx_id = requester_id = org_id

                      = 103expense_start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3121.00.00000.0000.602.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8396, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8396

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145485 line_type_lookup_code = ITEMline_n

                      umber = 3line_group_number = amount = 418.77base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-PP COFFEE,COFFEMATE & SUGARprorate_across_flag = po_h

                      eader_id = po_number = po_line_id = po_line_number = po_release_id = release_num

                      = po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_

                      num = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasi

                      ng_category_id = purchasing_category = quantity_invoiced = 1ship_to_location_cod

                      e = unit_price = final_match_flag = distribution_set_id = distribution_set_name

                      = dist_code_concatenated = 3002.8030119002.3131.00.00000.0000.601.0000.000dist_c

                      ode_combination_id = awt_group_id = awt_group_name = balancing_segment = cost_ce

                      nter_segment = account_segment = attribute_category = attribute1 = attribute2 =

                      attribute3 = attribute4 = attribute5 = attribute6 = attribute7 = attribute8 = at

                      tribute9 = attribute10 = attribute11 = attribute12 = attribute13 = attribute14 =

                      attribute15 = global_attribute_category = global_attribute1 = global_attribute2

                      = global_attribute3 = global_attribute4 = global_attribute5 = global_attribute6

                      = global_attribute7 = global_attribute8 = global_attribute9 = global_attribute1

                      0 = global_attribute11 = global_attribute12 = global_attribute13 = global_attrib

                      ute14 = global_attribute15 = global_attribute16 = global_attribute17 = global_at

                      tribute18 = global_attribute19 = global_attribute20 = project_id = task_id = awa

                      rd_id = expenditure_type = expenditure_item_date = expenditure_organization_id =

                      pa_addition_flag = pa_quantity = stat_amount = type_1099 = income_tax_region =

                      asset_tracking_flag = asset_book_type_code = asset_category_id = serial_number =

                      manufacturer = model_number = warranty_number = price_correction_flag = price_c

                      orrect_inv_num = price_correct_inv_id = price_correct_inv_line_num = receipt_num

                      ber = receipt_line_number = rcv_transaction_id = match_option = packing_slip = v

                      endor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_process

                      ed_code = reference_1 = reference_2 = credit_card_trx_id = requester_id = org_id

                      = 103expense_start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3131.00.00000.0000.601.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8107, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8107

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145486 line_type_lookup_code = ITEMline_n

                      umber = 4line_group_number = amount = 1884.46base amount  accounting_date = defe

                      rred_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_o

                      f_period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 20

                      13B Q4 ENGG OFFICE SUPPLIES-PP COFFEE,COFFEMATE & SUGARprorate_across_flag = po_

                      header_id = po_number = po_line_id = po_line_number = po_release_id = release_nu

                      m = po_line_location_id = po_shipment_num = po_distribution_id = po_distribution

                      _num = unit_of_meas_lookup_code = inventory_item_id = item_description = purchas

                      ing_category_id = purchasing_category = quantity_invoiced = 1ship_to_location_co

                      de = unit_price = final_match_flag = distribution_set_id = distribution_set_name

                      = dist_code_concatenated = 3002.8030119002.3131.00.00000.0000.602.0000.000dist_

                      code_combination_id = awt_group_id = awt_group_name = balancing_segment = cost_c

                      enter_segment = account_segment = attribute_category = attribute1 = attribute2 =

                      attribute3 = attribute4 = attribute5 = attribute6 = attribute7 = attribute8 = a

                      ttribute9 = attribute10 = attribute11 = attribute12 = attribute13 = attribute14

                      = attribute15 = global_attribute_category = global_attribute1 = global_attribute

                      2 = global_attribute3 = global_attribute4 = global_attribute5 = global_attribute

                      6 = global_attribute7 = global_attribute8 = global_attribute9 = global_attribute

                      10 = global_attribute11 = global_attribute12 = global_attribute13 = global_attri

                      bute14 = global_attribute15 = global_attribute16 = global_attribute17 = global_a

                      ttribute18 = global_attribute19 = global_attribute20 = project_id = task_id = aw

                      ard_id = expenditure_type = expenditure_item_date = expenditure_organization_id

                      = pa_addition_flag = pa_quantity = stat_amount = type_1099 = income_tax_region =

                      asset_tracking_flag = asset_book_type_code = asset_category_id = serial_number

                      = manufacturer = model_number = warranty_number = price_correction_flag = price_

                      correct_inv_num = price_correct_inv_id = price_correct_inv_line_num = receipt_nu

                      mber = receipt_line_number = rcv_transaction_id = match_option = packing_slip =

                      vendor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_proces

                      sed_code = reference_1 = reference_2 = credit_card_trx_id = requester_id = org_i

                      d = 103expense_start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3131.00.00000.0000.602.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8043, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8043

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145487 line_type_lookup_code = ITEMline_n

                      umber = 5line_group_number = amount = 99.09base amount  accounting_date = deferr

                      ed_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_

                      period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 2013

                      B Q4 ENGG OFFICE SUPPLIES-EN'G ALCOHOLprorate_across_flag = po_header_id = po_nu

                      mber = po_line_id = po_line_number = po_release_id = release_num = po_line_locat

                      ion_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_me

                      as_lookup_code = inventory_item_id = item_description = purchasing_category_id =

                      purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price =

                      final_match_flag = distribution_set_id = distribution_set_name = dist_code_conc

                      atenated = 3002.8030221010.1111.00.00000.0000.000.0000.000dist_code_combination_

                      id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment = a

                      ccount_segment = attribute_category = attribute1 = attribute2 = attribute3 = att

                      ribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attri

                      bute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 = g

                      lobal_attribute_category = global_attribute1 = global_attribute2 = global_attrib

                      ute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attrib

                      ute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_attri

                      bute11 = global_attribute12 = global_attribute13 = global_attribute14 = global_a

                      ttribute15 = global_attribute16 = global_attribute17 = global_attribute18 = glob

                      al_attribute19 = global_attribute20 = project_id = task_id = award_id = expendit

                      ure_type = expenditure_item_date = expenditure_organization_id = pa_addition_fla

                      g = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_f

                      lag = asset_book_type_code = asset_category_id = serial_number = manufacturer =

                      model_number = warranty_number = price_correction_flag = price_correct_inv_num =

                      price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_li

                      ne_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num =

                      pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refere

                      nce_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_st

                      art_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1111.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 7808, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 7808

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145488 line_type_lookup_code = ITEMline_n

                      umber = 6line_group_number = amount = 198.18base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_

                      number = po_line_id = po_line_number = po_release_id = release_num = po_line_loc

                      ation_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_

                      meas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_co

                      ncatenated = 3002.8030221010.1311.00.00000.0000.000.0000.000dist_code_combinatio

                      n_id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = a

                      ttribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = att

                      ribute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attr

                      ibute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attr

                      ibute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_att

                      ribute11 = global_attribute12 = global_attribute13 = global_attribute14 = global

                      _attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = gl

                      obal_attribute19 = global_attribute20 = project_id = task_id = award_id = expend

                      iture_type = expenditure_item_date = expenditure_organization_id = pa_addition_f

                      lag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking

                      _flag = asset_book_type_code = asset_category_id = serial_number = manufacturer

                      = model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_

                      line_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refe

                      rence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_

                      start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1311.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 11550, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 11550

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145489 line_type_lookup_code = ITEMline_n

                      umber = 7line_group_number = amount = 99.09base amount  accounting_date = deferr

                      ed_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_

                      period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 2013

                      B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_n

                      umber = po_line_id = po_line_number = po_release_id = release_num = po_line_loca

                      tion_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_m

                      eas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_con

                      catenated = 3002.8030221010.2231.00.00000.0000.000.0000.000dist_code_combination

                      _id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = at

                      tribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attr

                      ibute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attri

                      bute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attri

                      bute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_attr

                      ibute11 = global_attribute12 = global_attribute13 = global_attribute14 = global_

                      attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = glo

                      bal_attribute19 = global_attribute20 = project_id = task_id = award_id = expendi

                      ture_type = expenditure_item_date = expenditure_organization_id = pa_addition_fl

                      ag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_

                      flag = asset_book_type_code = asset_category_id = serial_number = manufacturer =

                      model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_l

                      ine_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refer

                      ence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_s

                      tart_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.2231.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8176, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8176

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145490 line_type_lookup_code = ITEMline_n

                      umber = 8line_group_number = amount = 99.09base amount  accounting_date = deferr

                      ed_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_

                      period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 2013

                      B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_n

                      umber = po_line_id = po_line_number = po_release_id = release_num = po_line_loca

                      tion_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_m

                      eas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_con

                      catenated = 3002.8030221010.1241.00.00000.0000.000.0000.000dist_code_combination

                      _id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = at

                      tribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attr

                      ibute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attri

                      bute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attri

                      bute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_attr

                      ibute11 = global_attribute12 = global_attribute13 = global_attribute14 = global_

                      attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = glo

                      bal_attribute19 = global_attribute20 = project_id = task_id = award_id = expendi

                      ture_type = expenditure_item_date = expenditure_organization_id = pa_addition_fl

                      ag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_

                      flag = asset_book_type_code = asset_category_id = serial_number = manufacturer =

                      model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_l

                      ine_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refer

                      ence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_s

                      tart_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1241.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8356, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8356

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145491 line_type_lookup_code = ITEMline_n

                      umber = 9line_group_number = amount = 198.18base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_

                      number = po_line_id = po_line_number = po_release_id = release_num = po_line_loc

                      ation_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_

                      meas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_co

                      ncatenated = 3002.8030221010.1331.00.00000.0000.000.0000.000dist_code_combinatio

                      n_id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = a

                      ttribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = att

                      ribute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attr

                      ibute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attr

                      ibute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_att

                      ribute11 = global_attribute12 = global_attribute13 = global_attribute14 = global

                      _attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = gl

                      obal_attribute19 = global_attribute20 = project_id = task_id = award_id = expend

                      iture_type = expenditure_item_date = expenditure_organization_id = pa_addition_f

                      lag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking

                      _flag = asset_book_type_code = asset_category_id = serial_number = manufacturer

                      = model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_

                      line_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refe

                      rence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_

                      start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1331.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8502, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8502

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145492 line_type_lookup_code = ITEMline_n

                      umber = 10line_group_number = amount = 99.09base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_

                      number = po_line_id = po_line_number = po_release_id = release_num = po_line_loc

                      ation_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_

                      meas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_co

                      ncatenated = 3002.8030221010.1341.00.00000.0000.000.0000.000dist_code_combinatio

                      n_id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = a

                      ttribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = att

                      ribute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attr

                      ibute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attr

                      ibute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_att

                      ribute11 = global_attribute12 = global_attribute13 = global_attribute14 = global

                      _attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = gl

                      obal_attribute19 = global_attribute20 = project_id = task_id = award_id = expend

                      iture_type = expenditure_item_date = expenditure_organization_id = pa_addition_f

                      lag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking

                      _flag = asset_book_type_code = asset_category_id = serial_number = manufacturer

                      = model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_

                      line_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refe

                      rence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_

                      start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1341.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8572, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8572

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145493 line_type_lookup_code = ITEMline_n

                      umber = 11line_group_number = amount = 99.09base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_

                      number = po_line_id = po_line_number = po_release_id = release_num = po_line_loc

                      ation_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_

                      meas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_co

                      ncatenated = 3002.8030221010.1361.00.00000.0000.000.0000.000dist_code_combinatio

                      n_id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = a

                      ttribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = att

                      ribute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attr

                      ibute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attr

                      ibute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_att

                      ribute11 = global_attribute12 = global_attribute13 = global_attribute14 = global

                      _attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = gl

                      obal_attribute19 = global_attribute20 = project_id = task_id = award_id = expend

                      iture_type = expenditure_item_date = expenditure_organization_id = pa_addition_f

                      lag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking

                      _flag = asset_book_type_code = asset_category_id = serial_number = manufacturer

                      = model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_

                      line_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refe

                      rence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_

                      start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1361.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 11548, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 11548

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145494 line_type_lookup_code = ITEMline_n

                      umber = 12line_group_number = amount = 99.09base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_

                      number = po_line_id = po_line_number = po_release_id = release_num = po_line_loc

                      ation_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_

                      meas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_co

                      ncatenated = 3002.8030221010.1261.00.00000.0000.000.0000.000dist_code_combinatio

                      n_id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = a

                      ttribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = att

                      ribute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attr

                      ibute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attr

                      ibute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_att

                      ribute11 = global_attribute12 = global_attribute13 = global_attribute14 = global

                      _attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = gl

                      obal_attribute19 = global_attribute20 = project_id = task_id = award_id = expend

                      iture_type = expenditure_item_date = expenditure_organization_id = pa_addition_f

                      lag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking

                      _flag = asset_book_type_code = asset_category_id = serial_number = manufacturer

                      = model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_

                      line_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refe

                      rence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_

                      start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1261.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8225, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8225

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 145495 line_type_lookup_code = ITEMline_n

                      umber = 13line_group_number = amount = 99.09base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = PP COFFEE,COFFEMATE & SUGAR. 201

                      3B Q4 ENGG OFFICE SUPPLIES-ENG'G ALCOHOLprorate_across_flag = po_header_id = po_

                      number = po_line_id = po_line_number = po_release_id = release_num = po_line_loc

                      ation_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_

                      meas_lookup_code = inventory_item_id = item_description = purchasing_category_id

                      = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price

                      = final_match_flag = distribution_set_id = distribution_set_name = dist_code_co

                      ncatenated = 3002.8030221010.1211.00.00000.0000.000.0000.000dist_code_combinatio

                      n_id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment =

                      account_segment = attribute_category = attribute1 = attribute2 = attribute3 = a

                      ttribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = att

                      ribute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 =

                      global_attribute_category = global_attribute1 = global_attribute2 = global_attr

                      ibute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attr

                      ibute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_att

                      ribute11 = global_attribute12 = global_attribute13 = global_attribute14 = global

                      _attribute15 = global_attribute16 = global_attribute17 = global_attribute18 = gl

                      obal_attribute19 = global_attribute20 = project_id = task_id = award_id = expend

                      iture_type = expenditure_item_date = expenditure_organization_id = pa_addition_f

                      lag = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking

                      _flag = asset_book_type_code = asset_category_id = serial_number = manufacturer

                      = model_number = warranty_number = price_correction_flag = price_correct_inv_num

                      = price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_

                      line_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num

                      = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refe

                      rence_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_

                      start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030221010.1211.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8633, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8633

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      invoice_status is:Y

                      (Import_invoice 17.2) Change the invoice status to PROCESSING

                      (Change_invoice_status 1) Change invoice status to PROCESSING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 150761 invoice_num  = 25459371 invoice_type_loo

                      kup_code  = STANDARD invoice_date  = 14-NOV-13 po_number  =  vendor_id  = 4246 v

                      endor_num  = 534 vendor_name  =  vendor_site_id  = 4360 vendor_site_code  = COTA

                      BATO party_id   =  party_site_id  =  pay_proc_trxn_type_code =  payment_function

                      =  invoice_amount = 2835 base_currency_code =  invoice_currency_code  = PHP pay

                      ment_currency_code  =  exchange_rate  = 1 exchange_rate_type =  exchange_date  =

                        terms_id  =  terms_name  = IMMEDIATE description  = FOR POWER PLANT USE - COFF

                      EE & SOAP POWDER awt_group_id  =  awt_group_name  =  pay_awt_group_id  =  pay_aw

                      t_group_name  =  last_update_date  = 02-JAN-14 last_updated_by  = 1445 last_upda

                      te_login  = 4097553 creation_date  = 02-JAN-14 attribute_category =  attribute1

                      = null attribute2 =  attribute3 =  attribute4 =  attribute5 =  attribute6 =  att

                      ribute7 =  attribute8 =  attribute9 =  attribute10 =  attribute11 =  attribute12

                      =  attribute13 =  attribute14 =  attribute15 =  global_attribute_category =  gl

                      obal_attribute1 =  global_attribute2 =  global_attribute3 =  global_attribute4 =

                        global_attribute5 =  global_attribute6 =  global_attribute7 =  global_attribut

                      e8 =  global_attribute9 =  global_attribute10 =  global_attribute11 =  global_at

                      tribute12 =  global_attribute13 =  global_attribute14 =  global_attribute15 =  g

                      lobal_attribute16 =  global_attribute17 =  global_attribute18 =  global_attribut

                      e19 =  global_attribute20 =  doc_category_code  = STD INV voucher_num  =  paymen

                      t_method_code =  pay_group_lookup_code =  goods_received_date =  invoice_receive

                      d_date = 14-NOV-13 exclusive_payment_flag =  prepay_num =  prepay_line_num =  pr

                      epay_apply_amount =  prepay_gl_date =  set_of_books_id =  legal_entity_id =  tax

                      _only_flag = N tax_only_rcv_matched_flag = N remit_to_supplier_name =  remit_to_

                      supplier_id =  remit_to_supplier_site =  remit_to_supplier_site_id =  relationsh

                      ip_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 4246

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 4360 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 4360 l_price_tolerance  = 0 l_positive_pr

                      ice_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_re

                      ceived_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  =  l_

                      amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l_m

                      ax_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttoleranc

                      e  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_servic

                      es_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              25459371

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 5) Check for Currency Code ,if Invoice No. is valid

                      (Check Invoice Currency Code 2) Get precision, mau for Invoice Currency Code.

                      l_valid_inv_currency: PHP

                      --------------> l_temp_invoice_status  = Y l_inv_currency_code = PHP

                      (Check Invoice Validation 6) Check for Invoice Lookup Code and Amount ,if Invoic

                      e No. is valid

                      (Check Invoice Type and Amount 1) Check for Invalid Invoice type lookup code.

                      (Check Invoice Type and Amount 2) Check for Null Invoice amount.

                      (Check Invoice Type and Amount 3) Check for Invalid Invoice amount.

                      (Check Invoice Type and Amount 4) Check for Invoice amount to match sum of invoi

                      ce line amounts.

                      (Check Invoice Type and Amount 6) Determine Match Mode.

                      ------------------>

                                  l_temp_invoice_status  = Y p_match_mode =

                      (Check Invoice Validation 7) Check for AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 7) Check for pay AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive pay AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 8) Check for Exchange Rate Type ,if Invoice No. is val

                      id

                      (Check Exchange Rate Type 9.a) Check for inconsistent exchange Information Enter

                      ed

                      (Check Exchange Rate Type 9.b) Exchange Rate info :Nullified

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 9) Check for Terms Info ,if Invoice No. is valid

                      (Check Invalid Terms 6a) Check for Terms Date provided as input :

                      (Check Invalid Terms 6b) Check for Invoice and Goods Received Date

                      (Check Invalid Terms 8) Check calendar based payment terms

                      ------------------>

                                  l_temp_invoice_status  = Yterms_id = 10000

                      (Check Invoice Validation 10) Check for Misc Info

                      (step 10.1 default the liability account

                      (Check Misc Invoice Info 1) Check for valid accts_pay_ccid.

                      (Check Misc Invoice Info 5) Check for valid employee

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11a) Check for LE Info

                      (Check Legal Entity Info 2) Check for reg code/number and Get LE.

                      (Check Legal Entity Info 2.1) Get Bill TO Location ID

                      (Check Legal Entity Info 2.2) Call LE API

                      (Check Legal Entity Info 2.3) Valid LE Flow

                      (Check Legal Entity Info 2.4a) Legal Entity ID: 23287

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11) Check for Payment Currency Info ,if Invoice No. is

                      valid

                      (Check Invalid Pay Currency 0)  Calling Caching Function for Currency

                      Cache_Fnd_Currency <- AP_IMPORT_VALIDATION_PKG.v_check_invalid_pay_curr<-AP_IMPO

                      RT_VALIDATION_PKG.v_check_invoice_validation<-Import_invoices<- Before Report Tr

                      igger

                      Caching Currency from Fnd Currency

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 14) Check for Prepayment Info.

                      ------------------>

                                            l_temp_invoice_status  = Y

                      (Check Invoice Validation 15) Check for tax drivers or invoice level tax validat

                      ions.

                      (Check tax info 1) Check for control_amount

                      (Check tax info 2) Check for tax_related_invoice_id

                      (Check tax info 3) Check for calc_tax_during_import_flag

                      (Check tax info 4) Validate if allocation structure is provided for inclusive li

                      nes when the invoice has more than one item line.

                      (Check tax info 5) Check if any non-tax line has tax information

                      (Check tax info 6) Check if an invoice has a tax line matched to receipt and ano

                      ther allocated to item lines

                      ------------------> l_temp_invoice_status  = Y

                      Check for Invalid Remit to Supplier

                      Check valid remit to supplier details

                      Remit to supplier Name

                      Remit to supplier Id

                      Remit to supplier Site Id

                      Remit to supplier Site Name

                      If Remit to supplier Name

                      If Remit to supplier Id

                      Remit to supplier Num

                      Remit to supplier Site Id

                      Remit to supplier Site

                      Data To IBY

                      Party Id 10694

                      Vendor Site id 4360

                      Invoice Date 14-NOV-13

                      Remit Party Id

                      Remit Supplier Site Id

                      Enter : import_Ext_Payee_Relationship

                      Input Parameters : p_party_id,p_supplier_site_id,p_date

                      Input Values : 10694,4360,14-NOV-13

                      Relationship ID is NOT provided

                      1 Remit-To-Supplier and Remit-To-Supplier Site are not provided

                      1 Primary Relationship not found

                      1 Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      1 Output Values : T,-1,,

                      Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      Output Values : T,-1,,

                      Exit : import_Ext_Payee_Relationship

                      Data From IBY

                      x_result : T

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 16) Check for Exchange Rate Info.

                      (Check No Xrate Base Amount 1) Is Xrate_Base_Amount invalid?

                      (Check Invoice Validation 17) Check Payment Info

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Application_id   : 200

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : 1st party LE id  : 23287

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Id           : 103

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Type         : OPERATING_UNIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payer Id         : 10694

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee Site Id    : 7665

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Supplier Site Id : 4360

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Trxn Type Code   : PAYABLES_DOC

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Amount   : 2835

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Function : PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id 7665, supplier site id 4360, org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 1786 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id 7665, supplier site id , org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id 7665, supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10694, party site id , supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 1785 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Format Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Code    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Delivery Channel Code  :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Bank Charge Bearer     : I

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Exclusive Payment Flag : N

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Settlement Priority    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Comments    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Method Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee OverRide Flag            : Y

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Accounting currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : First party country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Payee Country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule:1

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_le_match     :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_org_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_trxn_type_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_currency_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_cross_border_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_match                   :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Default Payment Method Name :Clearing

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : RETURN

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default payee bank account     :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : RETURN

                      ------------------>

                                  l_temp_invoice_status  = Y

                      ------------------> vendor_id = 4246 vendor_site_id = 4360 invoice_status = Y te

                      rms_id = 10000 fatal_error_flag =  invoice_type_lookup_code = STANDARD match_mod

                      e  =

                      (Import_invoice 12) Validate line

                      SOBID is :

                      (Check_lines 1) Call Get_employee_id

                      (Get_employee_id 1) Get employee id from po_vendors

                      (Get_employee_id 3) Employee_id id Null

                      ------------------> l_temp_line_status = Y l_employee_id =

                      (Check Lines 2) Get Max Line Number

                      (Check Lines 3) Open Cursor: invoice_lines

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 172363 line_type_lookup_code = ITEMline_n

                      umber = 1line_group_number = amount = 218.08base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = FOR POWER PLANT USE - COFFEE & S

                      OAP POWDER-COFFEE, COFFEEMATE , SUGARprorate_across_flag = po_header_id = po_num

                      ber = po_line_id = po_line_number = po_release_id = release_num = po_line_locati

                      on_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_mea

                      s_lookup_code = inventory_item_id = item_description = purchasing_category_id =

                      purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price =

                      final_match_flag = distribution_set_id = distribution_set_name = dist_code_conca

                      tenated = 3002.8030119002.3121.00.00000.0000.601.0000.000dist_code_combination_i

                      d = awt_group_id = awt_group_name = balancing_segment = cost_center_segment = ac

                      count_segment = attribute_category = attribute1 = attribute2 = attribute3 = attr

                      ibute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attrib

                      ute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 = gl

                      obal_attribute_category = global_attribute1 = global_attribute2 = global_attribu

                      te3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attribu

                      te7 = global_attribute8 = global_attribute9 = global_attribute10 = global_attrib

                      ute11 = global_attribute12 = global_attribute13 = global_attribute14 = global_at

                      tribute15 = global_attribute16 = global_attribute17 = global_attribute18 = globa

                      l_attribute19 = global_attribute20 = project_id = task_id = award_id = expenditu

                      re_type = expenditure_item_date = expenditure_organization_id = pa_addition_flag

                      = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_fl

                      ag = asset_book_type_code = asset_category_id = serial_number = manufacturer = m

                      odel_number = warranty_number = price_correction_flag = price_correct_inv_num =

                      price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_lin

                      e_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num =

                      pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = referen

                      ce_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_sta

                      rt_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3121.00.00000.0000.601.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8189, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8189

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 172364 line_type_lookup_code = ITEMline_n

                      umber = 2line_group_number = amount = 218.08base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = FOR POWER PLANT USE - COFFEE & S

                      OAP POWDER-COFFEE, COFFEEMATE , SUGARprorate_across_flag = po_header_id = po_num

                      ber = po_line_id = po_line_number = po_release_id = release_num = po_line_locati

                      on_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_mea

                      s_lookup_code = inventory_item_id = item_description = purchasing_category_id =

                      purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price =

                      final_match_flag = distribution_set_id = distribution_set_name = dist_code_conca

                      tenated = 3002.8030119002.3121.00.00000.0000.602.0000.000dist_code_combination_i

                      d = awt_group_id = awt_group_name = balancing_segment = cost_center_segment = ac

                      count_segment = attribute_category = attribute1 = attribute2 = attribute3 = attr

                      ibute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attrib

                      ute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 = gl

                      obal_attribute_category = global_attribute1 = global_attribute2 = global_attribu

                      te3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attribu

                      te7 = global_attribute8 = global_attribute9 = global_attribute10 = global_attrib

                      ute11 = global_attribute12 = global_attribute13 = global_attribute14 = global_at

                      tribute15 = global_attribute16 = global_attribute17 = global_attribute18 = globa

                      l_attribute19 = global_attribute20 = project_id = task_id = award_id = expenditu

                      re_type = expenditure_item_date = expenditure_organization_id = pa_addition_flag

                      = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_fl

                      ag = asset_book_type_code = asset_category_id = serial_number = manufacturer = m

                      odel_number = warranty_number = price_correction_flag = price_correct_inv_num =

                      price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_lin

                      e_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num =

                      pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = referen

                      ce_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_sta

                      rt_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3121.00.00000.0000.602.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8396, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8396

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 172365 line_type_lookup_code = ITEMline_n

                      umber = 3line_group_number = amount = 436.15base amount  accounting_date = defer

                      red_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of

                      _period = def_acctg_period_type = description = FOR POWER PLANT USE - COFFEE & S

                      OAP POWDER-COFFEE, COFFEEMATE , SUGARprorate_across_flag = po_header_id = po_num

                      ber = po_line_id = po_line_number = po_release_id = release_num = po_line_locati

                      on_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_mea

                      s_lookup_code = inventory_item_id = item_description = purchasing_category_id =

                      purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price =

                      final_match_flag = distribution_set_id = distribution_set_name = dist_code_conca

                      tenated = 3002.8030119002.3131.00.00000.0000.601.0000.000dist_code_combination_i

                      d = awt_group_id = awt_group_name = balancing_segment = cost_center_segment = ac

                      count_segment = attribute_category = attribute1 = attribute2 = attribute3 = attr

                      ibute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attrib

                      ute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 = gl

                      obal_attribute_category = global_attribute1 = global_attribute2 = global_attribu

                      te3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attribu

                      te7 = global_attribute8 = global_attribute9 = global_attribute10 = global_attrib

                      ute11 = global_attribute12 = global_attribute13 = global_attribute14 = global_at

                      tribute15 = global_attribute16 = global_attribute17 = global_attribute18 = globa

                      l_attribute19 = global_attribute20 = project_id = task_id = award_id = expenditu

                      re_type = expenditure_item_date = expenditure_organization_id = pa_addition_flag

                      = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_fl

                      ag = asset_book_type_code = asset_category_id = serial_number = manufacturer = m

                      odel_number = warranty_number = price_correction_flag = price_correct_inv_num =

                      price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_lin

                      e_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num =

                      pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = referen

                      ce_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_sta

                      rt_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3131.00.00000.0000.601.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8107, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8107

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 172366 line_type_lookup_code = ITEMline_n

                      umber = 4line_group_number = amount = 1962.69base amount  accounting_date = defe

                      rred_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_o

                      f_period = def_acctg_period_type = description = FOR POWER PLANT USE - COFFEE &

                      SOAP POWDER-COFFEE, COFFEEMATE , SUGARprorate_across_flag = po_header_id = po_nu

                      mber = po_line_id = po_line_number = po_release_id = release_num = po_line_locat

                      ion_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_me

                      as_lookup_code = inventory_item_id = item_description = purchasing_category_id =

                      purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price =

                      final_match_flag = distribution_set_id = distribution_set_name = dist_code_conc

                      atenated = 3002.8030119002.3131.00.00000.0000.602.0000.000dist_code_combination_

                      id = awt_group_id = awt_group_name = balancing_segment = cost_center_segment = a

                      ccount_segment = attribute_category = attribute1 = attribute2 = attribute3 = att

                      ribute4 = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attri

                      bute10 = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 = g

                      lobal_attribute_category = global_attribute1 = global_attribute2 = global_attrib

                      ute3 = global_attribute4 = global_attribute5 = global_attribute6 = global_attrib

                      ute7 = global_attribute8 = global_attribute9 = global_attribute10 = global_attri

                      bute11 = global_attribute12 = global_attribute13 = global_attribute14 = global_a

                      ttribute15 = global_attribute16 = global_attribute17 = global_attribute18 = glob

                      al_attribute19 = global_attribute20 = project_id = task_id = award_id = expendit

                      ure_type = expenditure_item_date = expenditure_organization_id = pa_addition_fla

                      g = pa_quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_f

                      lag = asset_book_type_code = asset_category_id = serial_number = manufacturer =

                      model_number = warranty_number = price_correction_flag = price_correct_inv_num =

                      price_correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_li

                      ne_number = rcv_transaction_id = match_option = packing_slip = vendor_item_num =

                      pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = refere

                      nce_1 = reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_st

                      art_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030119002.3131.00.00000.0000.602.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 10-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8043, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8043

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      invoice_status is:Y

                      (Import_invoice 17.2) Change the invoice status to PROCESSING

                      (Change_invoice_status 1) Change invoice status to PROCESSING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 172766 invoice_num  = 00000299/00000299_a invoi

                      ce_type_lookup_code  = STANDARD invoice_date  = 11-DEC-13 po_number  =  vendor_i

                      d  = 4185 vendor_num  = 473 vendor_name  =  vendor_site_id  = 4257 vendor_site_c

                      ode  = SCHWEITZER party_id   =  party_site_id  =  pay_proc_trxn_type_code =  pay

                      ment_function =  invoice_amount = 26945.41 base_currency_code =  invoice_currenc

                      y_code  = PHP payment_currency_code  =  exchange_rate  = 1 exchange_rate_type =

                      exchange_date  =  terms_id  =  terms_name  = IMMEDIATE description  = PAYMENT F

                      OR SEL PROTECTION RELAY TRAINING OF A.BAGUIO AND E.CASTILLO awt_group_id  =  awt

                      _group_name  =  pay_awt_group_id  =  pay_awt_group_name  =  last_update_date  =

                      02-JAN-14 last_updated_by  = 1445 last_update_login  = 4234466 creation_date  =

                      02-JAN-14 attribute_category =  attribute1 = null attribute2 =  attribute3 =  at

                      tribute4 =  attribute5 =  attribute6 =  attribute7 =  attribute8 =  attribute9 =

                        attribute10 =  attribute11 =  attribute12 =  attribute13 =  attribute14 =  att

                      ribute15 =  global_attribute_category =  global_attribute1 =  global_attribute2

                      =  global_attribute3 =  global_attribute4 =  global_attribute5 =  global_attribu

                      te6 =  global_attribute7 =  global_attribute8 =  global_attribute9 =  global_att

                      ribute10 =  global_attribute11 =  global_attribute12 =  global_attribute13 =  gl

                      obal_attribute14 =  global_attribute15 =  global_attribute16 =  global_attribute

                      17 =  global_attribute18 =  global_attribute19 =  global_attribute20 =  doc_cate

                      gory_code  = STD INV voucher_num  =  payment_method_code =  pay_group_lookup_cod

                      e =  goods_received_date =  invoice_received_date = 11-DEC-13 exclusive_payment_

                      flag =  prepay_num =  prepay_line_num =  prepay_apply_amount =  prepay_gl_date =

                        set_of_books_id =  legal_entity_id =  tax_only_flag = N tax_only_rcv_matched_f

                      lag = N remit_to_supplier_name =  remit_to_supplier_id =  remit_to_supplier_site

                      =  remit_to_supplier_site_id =  relationship_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 4185

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 4257 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 4257 l_price_tolerance  = 0 l_positive_pr

                      ice_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_re

                      ceived_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  =  l_

                      amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l_m

                      ax_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttoleranc

                      e  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_servic

                      es_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              00000299/00000299_a

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 5) Check for Currency Code ,if Invoice No. is valid

                      (Check Invoice Currency Code 2) Get precision, mau for Invoice Currency Code.

                      l_valid_inv_currency: PHP

                      --------------> l_temp_invoice_status  = Y l_inv_currency_code = PHP

                      (Check Invoice Validation 6) Check for Invoice Lookup Code and Amount ,if Invoic

                      e No. is valid

                      (Check Invoice Type and Amount 1) Check for Invalid Invoice type lookup code.

                      (Check Invoice Type and Amount 2) Check for Null Invoice amount.

                      (Check Invoice Type and Amount 3) Check for Invalid Invoice amount.

                      (Check Invoice Type and Amount 4) Check for Invoice amount to match sum of invoi

                      ce line amounts.

                      (Check Invoice Type and Amount 6) Determine Match Mode.

                      ------------------>

                                  l_temp_invoice_status  = Y p_match_mode =

                      (Check Invoice Validation 7) Check for AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 7) Check for pay AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive pay AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 8) Check for Exchange Rate Type ,if Invoice No. is val

                      id

                      (Check Exchange Rate Type 9.a) Check for inconsistent exchange Information Enter

                      ed

                      (Check Exchange Rate Type 9.b) Exchange Rate info :Nullified

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 9) Check for Terms Info ,if Invoice No. is valid

                      (Check Invalid Terms 6a) Check for Terms Date provided as input :

                      (Check Invalid Terms 6b) Check for Invoice and Goods Received Date

                      (Check Invalid Terms 8) Check calendar based payment terms

                      ------------------>

                                  l_temp_invoice_status  = Yterms_id = 10000

                      (Check Invoice Validation 10) Check for Misc Info

                      (step 10.1 default the liability account

                      (Check Misc Invoice Info 1) Check for valid accts_pay_ccid.

                      (Check Misc Invoice Info 5) Check for valid employee

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11a) Check for LE Info

                      (Check Legal Entity Info 2) Check for reg code/number and Get LE.

                      (Check Legal Entity Info 2.1) Get Bill TO Location ID

                      (Check Legal Entity Info 2.2) Call LE API

                      (Check Legal Entity Info 2.3) Valid LE Flow

                      (Check Legal Entity Info 2.4a) Legal Entity ID: 23287

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11) Check for Payment Currency Info ,if Invoice No. is

                      valid

                      (Check Invalid Pay Currency 0)  Calling Caching Function for Currency

                      Cache_Fnd_Currency <- AP_IMPORT_VALIDATION_PKG.v_check_invalid_pay_curr<-AP_IMPO

                      RT_VALIDATION_PKG.v_check_invoice_validation<-Import_invoices<- Before Report Tr

                      igger

                      Caching Currency from Fnd Currency

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 14) Check for Prepayment Info.

                      ------------------>

                                            l_temp_invoice_status  = Y

                      (Check Invoice Validation 15) Check for tax drivers or invoice level tax validat

                      ions.

                      (Check tax info 1) Check for control_amount

                      (Check tax info 2) Check for tax_related_invoice_id

                      (Check tax info 3) Check for calc_tax_during_import_flag

                      (Check tax info 4) Validate if allocation structure is provided for inclusive li

                      nes when the invoice has more than one item line.

                      (Check tax info 5) Check if any non-tax line has tax information

                      (Check tax info 6) Check if an invoice has a tax line matched to receipt and ano

                      ther allocated to item lines

                      ------------------> l_temp_invoice_status  = Y

                      Check for Invalid Remit to Supplier

                      Check valid remit to supplier details

                      Remit to supplier Name

                      Remit to supplier Id

                      Remit to supplier Site Id

                      Remit to supplier Site Name

                      If Remit to supplier Name

                      If Remit to supplier Id

                      Remit to supplier Num

                      Remit to supplier Site Id

                      Remit to supplier Site

                      Data To IBY

                      Party Id 10442

                      Vendor Site id 4257

                      Invoice Date 11-DEC-13

                      Remit Party Id

                      Remit Supplier Site Id

                      Enter : import_Ext_Payee_Relationship

                      Input Parameters : p_party_id,p_supplier_site_id,p_date

                      Input Values : 10442,4257,11-DEC-13

                      Relationship ID is NOT provided

                      1 Remit-To-Supplier and Remit-To-Supplier Site are not provided

                      1 Primary Relationship not found

                      1 Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      1 Output Values : T,-1,,

                      Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      Output Values : T,-1,,

                      Exit : import_Ext_Payee_Relationship

                      Data From IBY

                      x_result : T

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 16) Check for Exchange Rate Info.

                      (Check No Xrate Base Amount 1) Is Xrate_Base_Amount invalid?

                      (Check Invoice Validation 17) Check Payment Info

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Application_id   : 200

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : 1st party LE id  : 23287

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Id           : 103

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Type         : OPERATING_UNIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payer Id         : 10442

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee Site Id    : 7473

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Supplier Site Id : 4257

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Trxn Type Code   : PAYABLES_DOC

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Amount   : 26945.41

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Function : PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10442, party site id 7473, supplier site id 4257, org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 1622 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10442, party site id 7473, supplier site id , org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10442, party site id 7473, supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 10442, party site id , supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 1612 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Format Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Code    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Delivery Channel Code  :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Bank Charge Bearer     : I

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Exclusive Payment Flag : N

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Settlement Priority    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Comments    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Method Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee OverRide Flag            : Y

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Accounting currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : First party country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Payee Country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule:1

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_le_match     :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_org_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_trxn_type_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_currency_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_cross_border_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_match                   :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Default Payment Method Name :Clearing

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : RETURN

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default payee bank account     :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : RETURN

                      ------------------>

                                  l_temp_invoice_status  = Y

                      ------------------> vendor_id = 4185 vendor_site_id = 4257 invoice_status = Y te

                      rms_id = 10000 fatal_error_flag =  invoice_type_lookup_code = STANDARD match_mod

                      e  =

                      (Import_invoice 12) Validate line

                      SOBID is :

                      (Check_lines 1) Call Get_employee_id

                      (Get_employee_id 1) Get employee id from po_vendors

                      (Get_employee_id 3) Employee_id id Null

                      ------------------> l_temp_line_status = Y l_employee_id =

                      (Check Lines 2) Get Max Line Number

                      (Check Lines 3) Open Cursor: invoice_lines

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 196294 line_type_lookup_code = ITEMline_n

                      umber = 1line_group_number = amount = 13472.71base amount  accounting_date = def

                      erred_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_

                      of_period = def_acctg_period_type = description = PAYMENT FOR SEL PROTECTION REL

                      AY TRAINING OF A.BAGUIO AND E.CASTILLO-PAYMENT FOR SEL PROTECTION RELAY TRAINING

                      OF A.BAGUIOprorate_across_flag = po_header_id = po_number = po_line_id = po_lin

                      e_number = po_release_id = release_num = po_line_location_id = po_shipment_num =

                      po_distribution_id = po_distribution_num = unit_of_meas_lookup_code = inventory

                      _item_id = item_description = purchasing_category_id = purchasing_category = qua

                      ntity_invoiced = 1ship_to_location_code = unit_price = final_match_flag = distri

                      bution_set_id = distribution_set_name = dist_code_concatenated = 3002.8030122014

                      .1261.00.00000.0000.601.0000.000dist_code_combination_id = awt_group_id = awt_gr

                      oup_name = balancing_segment = cost_center_segment = account_segment = attribute

                      _category = attribute1 = attribute2 = attribute3 = attribute4 = attribute5 = att

                      ribute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11 = att

                      ribute12 = attribute13 = attribute14 = attribute15 = global_attribute_category =

                      global_attribute1 = global_attribute2 = global_attribute3 = global_attribute4 =

                      global_attribute5 = global_attribute6 = global_attribute7 = global_attribute8 =

                      global_attribute9 = global_attribute10 = global_attribute11 = global_attribute1

                      2 = global_attribute13 = global_attribute14 = global_attribute15 = global_attrib

                      ute16 = global_attribute17 = global_attribute18 = global_attribute19 = global_at

                      tribute20 = project_id = task_id = award_id = expenditure_type = expenditure_ite

                      m_date = expenditure_organization_id = pa_addition_flag = pa_quantity = stat_amo

                      unt = type_1099 = income_tax_region = asset_tracking_flag = asset_book_type_code

                      = asset_category_id = serial_number = manufacturer = model_number = warranty_nu

                      mber = price_correction_flag = price_correct_inv_num = price_correct_inv_id = pr

                      ice_correct_inv_line_num = receipt_number = receipt_line_number = rcv_transactio

                      n_id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_

                      cc_ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2 = cred

                      it_card_trx_id = requester_id = org_id = 103expense_start_date = expense_end_dat

                      e =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030122014.1261.00.00000.0000.601.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 11-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 289467, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 289467

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 196295 line_type_lookup_code = ITEMline_n

                      umber = 2line_group_number = amount = 13472.7base amount  accounting_date = defe

                      rred_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_o

                      f_period = def_acctg_period_type = description = PAYMENT FOR SEL PROTECTION RELA

                      Y TRAINING OF A.BAGUIO AND E.CASTILLO-PAYMENT FOR SEL PROTECTION RELAY TRAINING

                      OF E.CASTILLOprorate_across_flag = po_header_id = po_number = po_line_id = po_li

                      ne_number = po_release_id = release_num = po_line_location_id = po_shipment_num

                      = po_distribution_id = po_distribution_num = unit_of_meas_lookup_code = inventor

                      y_item_id = item_description = purchasing_category_id = purchasing_category = qu

                      antity_invoiced = 1ship_to_location_code = unit_price = final_match_flag = distr

                      ibution_set_id = distribution_set_name = dist_code_concatenated = 3002.803012201

                      4.1261.00.00000.0000.602.0000.000dist_code_combination_id = awt_group_id = awt_g

                      roup_name = balancing_segment = cost_center_segment = account_segment = attribut

                      e_category = attribute1 = attribute2 = attribute3 = attribute4 = attribute5 = at

                      tribute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11 = at

                      tribute12 = attribute13 = attribute14 = attribute15 = global_attribute_category

                      = global_attribute1 = global_attribute2 = global_attribute3 = global_attribute4

                      = global_attribute5 = global_attribute6 = global_attribute7 = global_attribute8

                      = global_attribute9 = global_attribute10 = global_attribute11 = global_attribute

                      12 = global_attribute13 = global_attribute14 = global_attribute15 = global_attri

                      bute16 = global_attribute17 = global_attribute18 = global_attribute19 = global_a

                      ttribute20 = project_id = task_id = award_id = expenditure_type = expenditure_it

                      em_date = expenditure_organization_id = pa_addition_flag = pa_quantity = stat_am

                      ount = type_1099 = income_tax_region = asset_tracking_flag = asset_book_type_cod

                      e = asset_category_id = serial_number = manufacturer = model_number = warranty_n

                      umber = price_correction_flag = price_correct_inv_num = price_correct_inv_id = p

                      rice_correct_inv_line_num = receipt_number = receipt_line_number = rcv_transacti

                      on_id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa

                      _cc_ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2 = cre

                      dit_card_trx_id = requester_id = org_id = 103expense_start_date = expense_end_da

                      te =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030122014.1261.00.00000.0000.602.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 11-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 289468, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 289468

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      invoice_status is:Y

                      (Import_invoice 17.2) Change the invoice status to PROCESSING

                      (Change_invoice_status 1) Change invoice status to PROCESSING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 173774 invoice_num  = 088/508/518/520/522 invoi

                      ce_type_lookup_code  = STANDARD invoice_date  = 12-DEC-13 po_number  =  vendor_i

                      d  = 13445 vendor_num  = 888 vendor_name  =  vendor_site_id  = 149849 vendor_sit

                      e_code  = COTABATO CITY party_id   =  party_site_id  =  pay_proc_trxn_type_code

                      =  payment_function =  invoice_amount = 17121 base_currency_code =  invoice_curr

                      ency_code  = PHP payment_currency_code  =  exchange_rate  = 1 exchange_rate_type

                      =  exchange_date  =  terms_id  =  terms_name  = IMMEDIATE description  = MEALS

                      INCURRED DURING MOP CLUSTERING PROJECT AT CROSSING SIMUAY. awt_group_id  =  awt_

                      group_name  =  pay_awt_group_id  =  pay_awt_group_name  =  last_update_date  = 0

                      2-JAN-14 last_updated_by  = 1445 last_update_login  = 4234466 creation_date  = 0

                      2-JAN-14 attribute_category =  attribute1 = null attribute2 =  attribute3 =  att

                      ribute4 =  attribute5 =  attribute6 =  attribute7 =  attribute8 =  attribute9 =

                      attribute10 =  attribute11 =  attribute12 =  attribute13 =  attribute14 =  attr

                      ibute15 =  global_attribute_category =  global_attribute1 =  global_attribute2 =

                        global_attribute3 =  global_attribute4 =  global_attribute5 =  global_attribut

                      e6 =  global_attribute7 =  global_attribute8 =  global_attribute9 =  global_attr

                      ibute10 =  global_attribute11 =  global_attribute12 =  global_attribute13 =  glo

                      bal_attribute14 =  global_attribute15 =  global_attribute16 =  global_attribute1

                      7 =  global_attribute18 =  global_attribute19 =  global_attribute20 =  doc_categ

                      ory_code  = STD INV voucher_num  =  payment_method_code =  pay_group_lookup_code

                      =  goods_received_date =  invoice_received_date = 12-DEC-13 exclusive_payment_f

                      lag =  prepay_num =  prepay_line_num =  prepay_apply_amount =  prepay_gl_date =

                      set_of_books_id =  legal_entity_id =  tax_only_flag = N tax_only_rcv_matched_fl

                      ag = N remit_to_supplier_name =  remit_to_supplier_id =  remit_to_supplier_site

                      =  remit_to_supplier_site_id =  relationship_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 13445

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 149849 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 149849 l_price_tolerance  = 0 l_positive_

                      price_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_

                      received_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  = 

                      l_amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l

                      _max_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttolera

                      nce  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_serv

                      ices_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              088/508/518/520/522

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      (Insert Rejections 1) Insert into AP_INTERFACE_REJECTIONS, REJECT CODE:DUPLICATE

                      INVOICE NUMBER

                      ------------------> l_temp_invoice_status  = N

                      ------------------> vendor_id = 13445 vendor_site_id = 149849 invoice_status = N

                      terms_id =  fatal_error_flag =  invoice_type_lookup_code = STANDARD match_mode

                      =

                      invoice_status is:N

                      (Import_invoice 17.1) Change the invoice status to REJECTING

                      (Change_invoice_status 1) Change invoice status to REJECTING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 173777 invoice_num  = 530/531/534/535 invoice_t

                      ype_lookup_code  = STANDARD invoice_date  = 12-DEC-13 po_number  =  vendor_id  =

                      13445 vendor_num  = 888 vendor_name  =  vendor_site_id  = 149849 vendor_site_co

                      de  = COTABATO CITY party_id   =  party_site_id  =  pay_proc_trxn_type_code =  p

                      ayment_function =  invoice_amount = 7037 base_currency_code =  invoice_currency_

                      code  = PHP payment_currency_code  =  exchange_rate  = 1 exchange_rate_type =  e

                      xchange_date  =  terms_id  =  terms_name  = IMMEDIATE description  = MEALS INCUR

                      RED DURING MOP CLUSTERING PROJECT @ CROSSING SIMUAY. awt_group_id  =  awt_group_

                      name  =  pay_awt_group_id  =  pay_awt_group_name  =  last_update_date  = 02-JAN-

                      14 last_updated_by  = 1445 last_update_login  = 4234466 creation_date  = 02-JAN-

                      14 attribute_category =  attribute1 = null attribute2 =  attribute3 =  attribute

                      4 =  attribute5 =  attribute6 =  attribute7 =  attribute8 =  attribute9 =  attri

                      bute10 =  attribute11 =  attribute12 =  attribute13 =  attribute14 =  attribute1

                      5 =  global_attribute_category =  global_attribute1 =  global_attribute2 =  glob

                      al_attribute3 =  global_attribute4 =  global_attribute5 =  global_attribute6 = 

                      global_attribute7 =  global_attribute8 =  global_attribute9 =  global_attribute1

                      0 =  global_attribute11 =  global_attribute12 =  global_attribute13 =  global_at

                      tribute14 =  global_attribute15 =  global_attribute16 =  global_attribute17 =  g

                      lobal_attribute18 =  global_attribute19 =  global_attribute20 =  doc_category_co

                      de  = STD INV voucher_num  =  payment_method_code =  pay_group_lookup_code =  go

                      ods_received_date =  invoice_received_date = 12-DEC-13 exclusive_payment_flag =

                      prepay_num =  prepay_line_num =  prepay_apply_amount =  prepay_gl_date =  set_o

                      f_books_id =  legal_entity_id =  tax_only_flag = N tax_only_rcv_matched_flag = N

                      remit_to_supplier_name =  remit_to_supplier_id =  remit_to_supplier_site =  rem

                      it_to_supplier_site_id =  relationship_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 13445

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 149849 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 149849 l_price_tolerance  = 0 l_positive_

                      price_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_

                      received_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  = 

                      l_amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l

                      _max_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttolera

                      nce  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_serv

                      ices_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              530/531/534/535

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      (Insert Rejections 1) Insert into AP_INTERFACE_REJECTIONS, REJECT CODE:DUPLICATE

                      INVOICE NUMBER

                      ------------------> l_temp_invoice_status  = N

                      ------------------> vendor_id = 13445 vendor_site_id = 149849 invoice_status = N

                      terms_id =  fatal_error_flag =  invoice_type_lookup_code = STANDARD match_mode

                      =

                      invoice_status is:N

                      (Import_invoice 17.1) Change the invoice status to REJECTING

                      (Change_invoice_status 1) Change invoice status to REJECTING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 173779 invoice_num  = 527 invoice_type_lookup_c

                      ode  = STANDARD invoice_date  = 12-DEC-13 po_number  =  vendor_id  = 13445 vendo

                      r_num  = 888 vendor_name  =  vendor_site_id  = 149849 vendor_site_code  = COTABA

                      TO CITY party_id   =  party_site_id  =  pay_proc_trxn_type_code =  payment_funct

                      ion =  invoice_amount = 340 base_currency_code =  invoice_currency_code  = PHP p

                      ayment_currency_code  =  exchange_rate  = 1 exchange_rate_type =  exchange_date

                      =  terms_id  =  terms_name  = IMMEDIATE description  = SNACKS FOR CAPSTAN FOR H

                      AULING OF POLES awt_group_id  =  awt_group_name  =  pay_awt_group_id  =  pay_awt

                      _group_name  =  last_update_date  = 02-JAN-14 last_updated_by  = 1445 last_updat

                      e_login  = 4234466 creation_date  = 02-JAN-14 attribute_category =  attribute1 =

                      null attribute2 =  attribute3 =  attribute4 =  attribute5 =  attribute6 =  attr

                      ibute7 =  attribute8 =  attribute9 =  attribute10 =  attribute11 =  attribute12

                      =  attribute13 =  attribute14 =  attribute15 =  global_attribute_category =  glo

                      bal_attribute1 =  global_attribute2 =  global_attribute3 =  global_attribute4 =

                      global_attribute5 =  global_attribute6 =  global_attribute7 =  global_attribute

                      8 =  global_attribute9 =  global_attribute10 =  global_attribute11 =  global_att

                      ribute12 =  global_attribute13 =  global_attribute14 =  global_attribute15 =  gl

                      obal_attribute16 =  global_attribute17 =  global_attribute18 =  global_attribute

                      19 =  global_attribute20 =  doc_category_code  = STD INV voucher_num  =  payment

                      _method_code =  pay_group_lookup_code =  goods_received_date =  invoice_received

                      _date = 12-DEC-13 exclusive_payment_flag =  prepay_num =  prepay_line_num =  pre

                      pay_apply_amount =  prepay_gl_date =  set_of_books_id =  legal_entity_id =  tax_

                      only_flag = N tax_only_rcv_matched_flag = N remit_to_supplier_name =  remit_to_s

                      upplier_id =  remit_to_supplier_site =  remit_to_supplier_site_id =  relationshi

                      p_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 13445

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 149849 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 149849 l_price_tolerance  = 0 l_positive_

                      price_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_

                      received_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  = 

                      l_amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l

                      _max_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttolera

                      nce  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_serv

                      ices_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              527

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      (Insert Rejections 1) Insert into AP_INTERFACE_REJECTIONS, REJECT CODE:DUPLICATE

                      INVOICE NUMBER

                      ------------------> l_temp_invoice_status  = N

                      ------------------> vendor_id = 13445 vendor_site_id = 149849 invoice_status = N

                      terms_id =  fatal_error_flag =  invoice_type_lookup_code = STANDARD match_mode

                      =

                      invoice_status is:N

                      (Import_invoice 17.1) Change the invoice status to REJECTING

                      (Change_invoice_status 1) Change invoice status to REJECTING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 173786 invoice_num  = PCREP-PILF000014 invoice_

                      type_lookup_code  = EXPENSE REPORT invoice_date  = 12-DEC-13 po_number  =  vendo

                      r_id  = 24664 vendor_num  = 1649 vendor_name  =  vendor_site_id  = 21452 vendor_

                      site_code  = OFFICE party_id   =  party_site_id  =  pay_proc_trxn_type_code =  p

                      ayment_function =  invoice_amount = 5490 base_currency_code =  invoice_currency_

                      code  = PHP payment_currency_code  =  exchange_rate  = 1 exchange_rate_type =  e

                      xchange_date  =  terms_id  =  terms_name  = IMMEDIATE description  = REPLENISHME

                      NT FOR PC FUND : PILFERAGE OPERATIONS REP. # : 267 - FOR THE PERIOD COVERED awt_

                      group_id  =  awt_group_name  =  pay_awt_group_id  =  pay_awt_group_name  =  last

                      _update_date  = 02-JAN-14 last_updated_by  = 1445 last_update_login  = 4362906 c

                      reation_date  = 02-JAN-14 attribute_category =  attribute1 =  attribute2 =  attr

                      ibute3 =  attribute4 =  attribute5 =  attribute6 =  attribute7 =  attribute8 = 

                      attribute9 =  attribute10 =  attribute11 =  attribute12 =  attribute13 =  attrib

                      ute14 =  attribute15 =  global_attribute_category =  global_attribute1 =  global

                      _attribute2 =  global_attribute3 =  global_attribute4 =  global_attribute5 =  gl

                      obal_attribute6 =  global_attribute7 =  global_attribute8 =  global_attribute9 =

                        global_attribute10 =  global_attribute11 =  global_attribute12 =  global_attri

                      bute13 =  global_attribute14 =  global_attribute15 =  global_attribute16 =  glob

                      al_attribute17 =  global_attribute18 =  global_attribute19 =  global_attribute20

                      =  doc_category_code  = EXP REP INV voucher_num  =  payment_method_code =  pay_

                      group_lookup_code =  goods_received_date =  invoice_received_date = 12-DEC-13 ex

                      clusive_payment_flag =  prepay_num =  prepay_line_num =  prepay_apply_amount = 

                      prepay_gl_date = 12-DEC-13 set_of_books_id =  legal_entity_id =  tax_only_flag =

                      N tax_only_rcv_matched_flag = N remit_to_supplier_name =  remit_to_supplier_id

                      =  remit_to_supplier_site =  remit_to_supplier_site_id =  relationship_id =  rem

                      it_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 24664

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 21452 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 21452 l_price_tolerance  = 0 l_positive_p

                      rice_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_r

                      eceived_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  =  l

                      _amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l_

                      max_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttoleran

                      ce  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_servi

                      ces_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              PCREP-PILF000014

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      (Insert Rejections 1) Insert into AP_INTERFACE_REJECTIONS, REJECT CODE:DUPLICATE

                      INVOICE NUMBER

                      ------------------> l_temp_invoice_status  = N

                      ------------------> vendor_id = 24664 vendor_site_id = 21452 invoice_status = N

                      terms_id =  fatal_error_flag =  invoice_type_lookup_code = EXPENSE REPORT match_

                      mode  =

                      invoice_status is:N

                      (Import_invoice 17.1) Change the invoice status to REJECTING

                      (Change_invoice_status 1) Change invoice status to REJECTING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 173832 invoice_num  = 013 invoice_type_lookup_c

                      ode  = STANDARD invoice_date  = 16-DEC-13 po_number  =  vendor_id  = 101886 vend

                      or_num  = 2836 vendor_name  =  vendor_site_id  = 94841 vendor_site_code  = MAGUI

                      NDANAO party_id   =  party_site_id  =  pay_proc_trxn_type_code =  payment_functi

                      on =  invoice_amount = 230507.2 base_currency_code =  invoice_currency_code  = P

                      HP payment_currency_code  =  exchange_rate  = 1 exchange_rate_type =  exchange_d

                      ate  =  terms_id  =  terms_name  = IMMEDIATE description  = PAYMENT FOR SERVICES

                      RENDERED IN DISCONNECTION FOR THE PERIOD OF NOV.27-DEC 10,2013 JOB ORDERS/NOTIC

                      ES.ATTACHED HEREWITH IS THE SOA DATED DEC. 14 2013 awt_group_id  =  awt_group_na

                      me  =  pay_awt_group_id  =  pay_awt_group_name  =  last_update_date  = 02-JAN-14

                      last_updated_by  =  last_update_login  =  creation_date  = 02-JAN-14 attribute_

                      category =  attribute1 = null attribute2 =  attribute3 =  attribute4 =  attribut

                      e5 =  attribute6 =  attribute7 =  attribute8 =  attribute9 =  attribute10 =  att

                      ribute11 =  attribute12 =  attribute13 =  attribute14 =  attribute15 =  global_a

                      ttribute_category =  global_attribute1 =  global_attribute2 =  global_attribute3

                      =  global_attribute4 =  global_attribute5 =  global_attribute6 =  global_attrib

                      ute7 =  global_attribute8 =  global_attribute9 =  global_attribute10 =  global_a

                      ttribute11 =  global_attribute12 =  global_attribute13 =  global_attribute14 = 

                      global_attribute15 =  global_attribute16 =  global_attribute17 =  global_attribu

                      te18 =  global_attribute19 =  global_attribute20 =  doc_category_code  = STD INV

                      voucher_num  =  payment_method_code =  pay_group_lookup_code =  goods_received_

                      date =  invoice_received_date = 16-DEC-13 exclusive_payment_flag =  prepay_num =

                        prepay_line_num =  prepay_apply_amount =  prepay_gl_date =  set_of_books_id =

                      legal_entity_id =  tax_only_flag = N tax_only_rcv_matched_flag = N remit_to_sup

                      plier_name =  remit_to_supplier_id =  remit_to_supplier_site =  remit_to_supplie

                      r_site_id =  relationship_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 101886

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 94841 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 94841 l_price_tolerance  = 0 l_positive_p

                      rice_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_r

                      eceived_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  =  l

                      _amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l_

                      max_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttoleran

                      ce  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_servi

                      ces_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              013

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      (Insert Rejections 1) Insert into AP_INTERFACE_REJECTIONS, REJECT CODE:DUPLICATE

                      INVOICE NUMBER

                      ------------------> l_temp_invoice_status  = N

                      ------------------> vendor_id = 101886 vendor_site_id = 94841 invoice_status = N

                      terms_id =  fatal_error_flag =  invoice_type_lookup_code = STANDARD match_mode

                      =

                      invoice_status is:N

                      (Import_invoice 17.1) Change the invoice status to REJECTING

                      (Change_invoice_status 1) Change invoice status to REJECTING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 173834 invoice_num  = DLP_A/DLP_B invoice_type_

                      lookup_code  = STANDARD invoice_date  = 16-DEC-13 po_number  =  vendor_id  = 155

                      86 vendor_num  = 1068 vendor_name  =  vendor_site_id  = 206939 vendor_site_code

                      = OFFICE party_id   =  party_site_id  =  pay_proc_trxn_type_code =  payment_fun

                      ction =  invoice_amount = 4300 base_currency_code =  invoice_currency_code  = PH

                      P payment_currency_code  =  exchange_rate  = 1 exchange_rate_type =  exchange_da

                      te  =  terms_id  =  terms_name  = IMMEDIATE description  = FOR TWO (2) DLP LINEM

                      EN TRAVEL PER DIEM - DEC.15, 2013 INTERRUPTION ( REVAMP SIN2 & SIN3 FEEDER LINES

                      ) awt_group_id  =  awt_group_name  =  pay_awt_group_id  =  pay_awt_group_name 

                      =  last_update_date  = 02-JAN-14 last_updated_by  =  last_update_login  =  creat

                      ion_date  = 02-JAN-14 attribute_category =  attribute1 = null attribute2 =  attr

                      ibute3 =  attribute4 =  attribute5 =  attribute6 =  attribute7 =  attribute8 = 

                      attribute9 =  attribute10 =  attribute11 =  attribute12 =  attribute13 =  attrib

                      ute14 =  attribute15 =  global_attribute_category =  global_attribute1 =  global

                      _attribute2 =  global_attribute3 =  global_attribute4 =  global_attribute5 =  gl

                      obal_attribute6 =  global_attribute7 =  global_attribute8 =  global_attribute9 =

                        global_attribute10 =  global_attribute11 =  global_attribute12 =  global_attri

                      bute13 =  global_attribute14 =  global_attribute15 =  global_attribute16 =  glob

                      al_attribute17 =  global_attribute18 =  global_attribute19 =  global_attribute20

                      =  doc_category_code  = STD INV voucher_num  =  payment_method_code =  pay_grou

                      p_lookup_code =  goods_received_date =  invoice_received_date = 16-DEC-13 exclus

                      ive_payment_flag =  prepay_num =  prepay_line_num =  prepay_apply_amount =  prep

                      ay_gl_date =  set_of_books_id =  legal_entity_id =  tax_only_flag = N tax_only_r

                      cv_matched_flag = N remit_to_supplier_name =  remit_to_supplier_id =  remit_to_s

                      upplier_site =  remit_to_supplier_site_id =  relationship_id =  remit_to_supplie

                      r_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 15586

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 206939 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 206939 l_price_tolerance  = 0 l_positive_

                      price_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_

                      received_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  = 

                      l_amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l

                      _max_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttolera

                      nce  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_serv

                      ices_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              DLP_A/DLP_B

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 5) Check for Currency Code ,if Invoice No. is valid

                      (Check Invoice Currency Code 2) Get precision, mau for Invoice Currency Code.

                      l_valid_inv_currency: PHP

                      --------------> l_temp_invoice_status  = Y l_inv_currency_code = PHP

                      (Check Invoice Validation 6) Check for Invoice Lookup Code and Amount ,if Invoic

                      e No. is valid

                      (Check Invoice Type and Amount 1) Check for Invalid Invoice type lookup code.

                      (Check Invoice Type and Amount 2) Check for Null Invoice amount.

                      (Check Invoice Type and Amount 3) Check for Invalid Invoice amount.

                      (Check Invoice Type and Amount 4) Check for Invoice amount to match sum of invoi

                      ce line amounts.

                      (Check Invoice Type and Amount 6) Determine Match Mode.

                      ------------------>

                                  l_temp_invoice_status  = Y p_match_mode =

                      (Check Invoice Validation 7) Check for AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 7) Check for pay AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive pay AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 8) Check for Exchange Rate Type ,if Invoice No. is val

                      id

                      (Check Exchange Rate Type 9.a) Check for inconsistent exchange Information Enter

                      ed

                      (Check Exchange Rate Type 9.b) Exchange Rate info :Nullified

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 9) Check for Terms Info ,if Invoice No. is valid

                      (Check Invalid Terms 6a) Check for Terms Date provided as input :

                      (Check Invalid Terms 6b) Check for Invoice and Goods Received Date

                      (Check Invalid Terms 8) Check calendar based payment terms

                      ------------------>

                                  l_temp_invoice_status  = Yterms_id = 10000

                      (Check Invoice Validation 10) Check for Misc Info

                      (step 10.1 default the liability account

                      (Check Misc Invoice Info 1) Check for valid accts_pay_ccid.

                      (Check Misc Invoice Info 5) Check for valid employee

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11a) Check for LE Info

                      (Check Legal Entity Info 2) Check for reg code/number and Get LE.

                      (Check Legal Entity Info 2.1) Get Bill TO Location ID

                      (Check Legal Entity Info 2.2) Call LE API

                      (Check Legal Entity Info 2.3) Valid LE Flow

                      (Check Legal Entity Info 2.4a) Legal Entity ID: 23287

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11) Check for Payment Currency Info ,if Invoice No. is

                      valid

                      (Check Invalid Pay Currency 0)  Calling Caching Function for Currency

                      Cache_Fnd_Currency <- AP_IMPORT_VALIDATION_PKG.v_check_invalid_pay_curr<-AP_IMPO

                      RT_VALIDATION_PKG.v_check_invoice_validation<-Import_invoices<- Before Report Tr

                      igger

                      Caching Currency from Fnd Currency

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 14) Check for Prepayment Info.

                      ------------------>

                                            l_temp_invoice_status  = Y

                      (Check Invoice Validation 15) Check for tax drivers or invoice level tax validat

                      ions.

                      (Check tax info 1) Check for control_amount

                      (Check tax info 2) Check for tax_related_invoice_id

                      (Check tax info 3) Check for calc_tax_during_import_flag

                      (Check tax info 4) Validate if allocation structure is provided for inclusive li

                      nes when the invoice has more than one item line.

                      (Check tax info 5) Check if any non-tax line has tax information

                      (Check tax info 6) Check if an invoice has a tax line matched to receipt and ano

                      ther allocated to item lines

                      ------------------> l_temp_invoice_status  = Y

                      Check for Invalid Remit to Supplier

                      Check valid remit to supplier details

                      Remit to supplier Name

                      Remit to supplier Id

                      Remit to supplier Site Id

                      Remit to supplier Site Name

                      If Remit to supplier Name

                      If Remit to supplier Id

                      Remit to supplier Num

                      Remit to supplier Site Id

                      Remit to supplier Site

                      Data To IBY

                      Party Id 4598

                      Vendor Site id 206939

                      Invoice Date 16-DEC-13

                      Remit Party Id

                      Remit Supplier Site Id

                      Enter : import_Ext_Payee_Relationship

                      Input Parameters : p_party_id,p_supplier_site_id,p_date

                      Input Values : 4598,206939,16-DEC-13

                      Relationship ID is NOT provided

                      1 Remit-To-Supplier and Remit-To-Supplier Site are not provided

                      1 Primary Relationship not found

                      1 Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      1 Output Values : T,-1,,

                      Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      Output Values : T,-1,,

                      Exit : import_Ext_Payee_Relationship

                      Data From IBY

                      x_result : T

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 16) Check for Exchange Rate Info.

                      (Check No Xrate Base Amount 1) Is Xrate_Base_Amount invalid?

                      (Check Invoice Validation 17) Check Payment Info

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Application_id   : 200

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : 1st party LE id  : 23287

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Id           : 103

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Type         : OPERATING_UNIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payer Id         : 4598

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee Site Id    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Supplier Site Id : 206939

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Trxn Type Code   : PAYABLES_DOC

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Amount   : 4300

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Function : PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4598, party site id , supplier site id 206939, org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 12562 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4598, party site id , supplier site id , org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4598, party site id , supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 3281 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4598, party site id , supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 3281 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Format Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Code    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Delivery Channel Code  :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Bank Charge Bearer     :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Exclusive Payment Flag : N

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Settlement Priority    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Comments    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Method Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee OverRide Flag            : Y

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Accounting currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : First party country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Payee Country :

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule:1

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_le_match     :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_org_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_trxn_type_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_currency_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_cross_border_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_match                   :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Default Payment Method Name :Clearing

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : RETURN

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default payee bank account     :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : RETURN

                      ------------------>

                                  l_temp_invoice_status  = Y

                      ------------------> vendor_id = 15586 vendor_site_id = 206939 invoice_status = Y

                      terms_id = 10000 fatal_error_flag =  invoice_type_lookup_code = STANDARD match_

                      mode  =

                      (Import_invoice 12) Validate line

                      SOBID is :

                      (Check_lines 1) Call Get_employee_id

                      (Get_employee_id 1) Get employee id from po_vendors

                      ------------------> l_temp_line_status = Y l_employee_id = 435

                      (Check Lines 2) Get Max Line Number

                      (Check Lines 3) Open Cursor: invoice_lines

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 197790 line_type_lookup_code = ITEMline_n

                      umber = 1line_group_number = amount = 2150base amount  accounting_date = deferre

                      d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                      eriod = def_acctg_period_type = description = FOR TWO (2) DLP LINEMEN TRAVEL PER

                      DIEM - DEC.15, 2013 INTERRUPTION ( REVAMP SIN2 & SIN3 FEEDER LINES )-PER DIEM A

                      LLOWANCE FOR 2 DLP PERSONNEL - FOR DEC. 15, 2013 INTERRUPTIONprorate_across_flag

                      = po_header_id = po_number = po_line_id = po_line_number = po_release_id = rele

                      ase_num = po_line_location_id = po_shipment_num = po_distribution_id = po_distri

                      bution_num = unit_of_meas_lookup_code = inventory_item_id = item_description = p

                      urchasing_category_id = purchasing_category = quantity_invoiced = 1ship_to_locat

                      ion_code = unit_price = final_match_flag = distribution_set_id = distribution_se

                      t_name = dist_code_concatenated = 3002.8030227015.1211.00.00000.0000.000.0000.00

                      0dist_code_combination_id = awt_group_id = awt_group_name = balancing_segment =

                      cost_center_segment = account_segment = attribute_category = attribute1 = attrib

                      ute2 = attribute3 = attribute4 = attribute5 = attribute6 = attribute7 = attribut

                      e8 = attribute9 = attribute10 = attribute11 = attribute12 = attribute13 = attrib

                      ute14 = attribute15 = global_attribute_category = global_attribute1 = global_att

                      ribute2 = global_attribute3 = global_attribute4 = global_attribute5 = global_att

                      ribute6 = global_attribute7 = global_attribute8 = global_attribute9 = global_att

                      ribute10 = global_attribute11 = global_attribute12 = global_attribute13 = global

                      _attribute14 = global_attribute15 = global_attribute16 = global_attribute17 = gl

                      obal_attribute18 = global_attribute19 = global_attribute20 = project_id = task_i

                      d = award_id = expenditure_type = expenditure_item_date = expenditure_organizati

                      on_id = pa_addition_flag = pa_quantity = stat_amount = type_1099 = income_tax_re

                      gion = asset_tracking_flag = asset_book_type_code = asset_category_id = serial_n

                      umber = manufacturer = model_number = warranty_number = price_correction_flag =

                      price_correct_inv_num = price_correct_inv_id = price_correct_inv_line_num = rece

                      ipt_number = receipt_line_number = rcv_transaction_id = match_option = packing_s

                      lip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_

                      processed_code = reference_1 = reference_2 = credit_card_trx_id = requester_id =

                      org_id = 103expense_start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030227015.1211.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8149, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8149

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 197791 line_type_lookup_code = ITEMline_n

                      umber = 2line_group_number = amount = 2150base amount  accounting_date = deferre

                      d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                      eriod = def_acctg_period_type = description = FOR TWO (2) DLP LINEMEN TRAVEL PER

                      DIEM - DEC.15, 2013 INTERRUPTION ( REVAMP SIN2 & SIN3 FEEDER LINES )-PER DIEM A

                      LLOWANCE FOR 2 DLP PERSONNEL - FOR DEC. 15, 2013 INTERRUPTIONprorate_across_flag

                      = po_header_id = po_number = po_line_id = po_line_number = po_release_id = rele

                      ase_num = po_line_location_id = po_shipment_num = po_distribution_id = po_distri

                      bution_num = unit_of_meas_lookup_code = inventory_item_id = item_description = p

                      urchasing_category_id = purchasing_category = quantity_invoiced = 1ship_to_locat

                      ion_code = unit_price = final_match_flag = distribution_set_id = distribution_se

                      t_name = dist_code_concatenated = 3002.8030227015.1211.00.00000.0000.000.0000.00

                      0dist_code_combination_id = awt_group_id = awt_group_name = balancing_segment =

                      cost_center_segment = account_segment = attribute_category = attribute1 = attrib

                      ute2 = attribute3 = attribute4 = attribute5 = attribute6 = attribute7 = attribut

                      e8 = attribute9 = attribute10 = attribute11 = attribute12 = attribute13 = attrib

                      ute14 = attribute15 = global_attribute_category = global_attribute1 = global_att

                      ribute2 = global_attribute3 = global_attribute4 = global_attribute5 = global_att

                      ribute6 = global_attribute7 = global_attribute8 = global_attribute9 = global_att

                      ribute10 = global_attribute11 = global_attribute12 = global_attribute13 = global

                      _attribute14 = global_attribute15 = global_attribute16 = global_attribute17 = gl

                      obal_attribute18 = global_attribute19 = global_attribute20 = project_id = task_i

                      d = award_id = expenditure_type = expenditure_item_date = expenditure_organizati

                      on_id = pa_addition_flag = pa_quantity = stat_amount = type_1099 = income_tax_re

                      gion = asset_tracking_flag = asset_book_type_code = asset_category_id = serial_n

                      umber = manufacturer = model_number = warranty_number = price_correction_flag =

                      price_correct_inv_num = price_correct_inv_id = price_correct_inv_line_num = rece

                      ipt_number = receipt_line_number = rcv_transaction_id = match_option = packing_s

                      lip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_

                      processed_code = reference_1 = reference_2 = credit_card_trx_id = requester_id =

                      org_id = 103expense_start_date = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (v_check_lines 7.0) Check for partial Segments

                      ------------------> partial_segments = Nl_error_message = dist_code_concatenated

                      = 3002.8030227015.1211.00.00000.0000.000.0000.000

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      l_dist_code_combination_id: 8149, l_validate_res: TRUE

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 8149

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      invoice_status is:Y

                      (Import_invoice 17.2) Change the invoice status to PROCESSING

                      (Change_invoice_status 1) Change invoice status to PROCESSING

                      (Import_invoice 7) FETCH import_invoices

                      ------------------> invoice_id = 173855 invoice_num  = PCREP-ENG000006 invoice_t

                      ype_lookup_code  = EXPENSE REPORT invoice_date  = 16-DEC-13 po_number  =  vendor

                      _id  = 24704 vendor_num  = 1689 vendor_name  =  vendor_site_id  = 21498 vendor_s

                      ite_code  = OFFICE party_id   =  party_site_id  =  pay_proc_trxn_type_code =  pa

                      yment_function =  invoice_amount = 4760.25 base_currency_code =  invoice_currenc

                      y_code  = PHP payment_currency_code  =  exchange_rate  = 1 exchange_rate_type =

                      exchange_date  =  terms_id  =  terms_name  = IMMEDIATE description  = REPLENISH

                      MENT FOR PC FUND : ENG COMMON REP. # : 271 - FOR THE PERIOD COVERED DEC. 04 TO D

                      EC. 14, 2013 awt_group_id  =  awt_group_name  =  pay_awt_group_id  =  pay_awt_gr

                      oup_name  =  last_update_date  = 02-JAN-14 last_updated_by  = 1445 last_update_l

                      ogin  = 4168580 creation_date  = 02-JAN-14 attribute_category =  attribute1 =  a

                      ttribute2 =  attribute3 =  attribute4 =  attribute5 =  attribute6 =  attribute7

                      =  attribute8 =  attribute9 =  attribute10 =  attribute11 =  attribute12 =  attr

                      ibute13 =  attribute14 =  attribute15 =  global_attribute_category =  global_att

                      ribute1 =  global_attribute2 =  global_attribute3 =  global_attribute4 =  global

                      _attribute5 =  global_attribute6 =  global_attribute7 =  global_attribute8 =  gl

                      obal_attribute9 =  global_attribute10 =  global_attribute11 =  global_attribute1

                      2 =  global_attribute13 =  global_attribute14 =  global_attribute15 =  global_at

                      tribute16 =  global_attribute17 =  global_attribute18 =  global_attribute19 =  g

                      lobal_attribute20 =  doc_category_code  = EXP REP INV voucher_num  =  payment_me

                      thod_code =  pay_group_lookup_code =  goods_received_date =  invoice_received_da

                      te = 16-DEC-13 exclusive_payment_flag =  prepay_num =  prepay_line_num =  prepay

                      _apply_amount =  prepay_gl_date = 16-DEC-13 set_of_books_id =  legal_entity_id =

                        tax_only_flag = N tax_only_rcv_matched_flag = N remit_to_supplier_name =  remi

                      t_to_supplier_id =  remit_to_supplier_site =  remit_to_supplier_site_id =  relat

                      ionship_id =  remit_to_supplier_num =

                      (Import Invoices 8) Checking for Inconsistent OU

                      (Import Invoice 9a) Setting the org Context

                      (Import Invoice 10a) Default GL Date From Invoice

                      (Import_invoice 11) Validate invoice

                      SOBID is :

                      (Check Invoice Validation 0) Initialize invoice_date if null

                      (Check Invoice Validation 1) Check for Invalid and Inactive PO

                      (Check Invoice Validation 2) Check for Invalid Legal Entity

                      (Check Invoice Validation 2) Check for Invalid Supplier

                      (Check Invalid Supplier 2) Validate vendor id.

                      (Check Invalid Supplier 3) Validate vendor number and retrieve vendor id

                      (Check Invalid Supplier 7) Save Supplier id for further processing.

                      (Check Invoice Validation 2) Validated Supplier

                      ------------------>

                                  l_temp_invoice_status  = Y l_vendor_id         

                         = 24704

                      (Check Invoice Validation 3) Check for Invalid Supplier Site, if Supplier is val

                      id

                      (Check Invoice Validation 3.2) Supplier Site is per EDI

                      (Check Invalid Site 1) Check Supplier Site

                      (Check Invalid Site 3) Get Supplier Site details from p_invoice_rec.vendor_site_

                      id

                      (Check Invalid Site 4) Get Supplier Site details from p_invoice_rec.vendor_site_

                      code

                      (Check Invalid Site 6) Check Supplier Site for given vendor

                      ------------------> l_valid_vendor = X

                      (Check Invoice Validation 3) Validated Supplier Site

                      ------------------>

                                  l_temp_invoice_status        = Y l_vendor_site_i

                      d         = 21498 l_party_site_id          =

                      (Check Invoice Validation 3.5) Validated party and vendor info l_temp_invoice_st

                      atus = Y

                      (Get_tolerance_info 1) Get tolerance info...

                      ------------------> p_vendor_site_id = 21498 l_price_tolerance  = 0 l_positive_p

                      rice_tolerance  = 1 l_negative_price_tolerance  = 1 l_qty_tolerance  = 1 l_qty_r

                      eceived_tolerance  = 1 l_max_qty_ord_tolerance  =  l_max_qty_rec_tolerance  =  l

                      _amt_tolerance  = 1 l_amt_received_tolerance  = 1 l_max_amt_ord_tolerance  =  l_

                      max_amt_rec_tolerance  =  l_goods_ship_amt_tolerance  =  l_goods_rate_amttoleran

                      ce  =  l_goods_total_amt_tolerance  =  l_services_ship_amt_tolerance  =  l_servi

                      ces_rate_amttolerance  =  l_services_total_amt_tolerance  =

                      (Check Invoice Validation 4) Check for Invalid Invoice Number ,if Supplier Site

                      is valid

                      ------------------> l_invoice_num  =

                                              PCREP-ENG000006

                      (Check Invoice Number 2) Check for Invalid Invoice Number.

                      (Check Invoice Number 3) Check for Duplicate Invoice Number.

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 5) Check for Currency Code ,if Invoice No. is valid

                      (Check Invoice Currency Code 2) Get precision, mau for Invoice Currency Code.

                      l_valid_inv_currency: PHP

                      --------------> l_temp_invoice_status  = Y l_inv_currency_code = PHP

                      (Check Invoice Validation 6) Check for Invoice Lookup Code and Amount ,if Invoic

                      e No. is valid

                      (Check Invoice Type and Amount 1) Check for Invalid Invoice type lookup code.

                      (Check Invoice Type and Amount 2) Check for Null Invoice amount.

                      (Check Invoice Type and Amount 3) Check for Invalid Invoice amount.

                      (Check Invoice Type and Amount 4) Check for Invoice amount to match sum of invoi

                      ce line amounts.

                      (Check Invoice Type and Amount 6) Determine Match Mode.

                      ------------------>

                                  l_temp_invoice_status  = Y p_match_mode =

                      (Check Invoice Validation 7) Check for AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 7) Check for pay AWT Group ,if Invoice No. is valid

                      (Check AWT Group 2) Check for Inactive pay AWT Group

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 8) Check for Exchange Rate Type ,if Invoice No. is val

                      id

                      (Check Exchange Rate Type 9.a) Check for inconsistent exchange Information Enter

                      ed

                      (Check Exchange Rate Type 9.b) Exchange Rate info :Nullified

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 9) Check for Terms Info ,if Invoice No. is valid

                      (Check Invalid Terms 6a) Check for Terms Date provided as input :

                      (Check Invalid Terms 6b) Check for Invoice and Goods Received Date

                      (Check Invalid Terms 8) Check calendar based payment terms

                      ------------------>

                                  l_temp_invoice_status  = Yterms_id = 10000

                      (Check Invoice Validation 10) Check for Misc Info

                      (step 10.1 default the liability account

                      (Check Misc Invoice Info 1) Check for valid accts_pay_ccid.

                      (Check Misc Invoice Info 5) Check for valid employee

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11a) Check for LE Info

                      (Check Legal Entity Info 2) Check for reg code/number and Get LE.

                      (Check Legal Entity Info 2.1) Get Bill TO Location ID

                      (Check Legal Entity Info 2.2) Call LE API

                      (Check Legal Entity Info 2.3) Valid LE Flow

                      (Check Legal Entity Info 2.4a) Legal Entity ID: 23287

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 11) Check for Payment Currency Info ,if Invoice No. is

                      valid

                      (Check Invalid Pay Currency 0)  Calling Caching Function for Currency

                      Cache_Fnd_Currency <- AP_IMPORT_VALIDATION_PKG.v_check_invalid_pay_curr<-AP_IMPO

                      RT_VALIDATION_PKG.v_check_invoice_validation<-Import_invoices<- Before Report Tr

                      igger

                      Caching Currency from Fnd Currency

                      ------------------>

                                  l_temp_invoice_status  = Y

                      (Check Invoice Validation 14) Check for Prepayment Info.

                      ------------------>

                                            l_temp_invoice_status  = Y

                      (Check Invoice Validation 15) Check for tax drivers or invoice level tax validat

                      ions.

                      (Check tax info 1) Check for control_amount

                      (Check tax info 2) Check for tax_related_invoice_id

                      (Check tax info 3) Check for calc_tax_during_import_flag

                      (Check tax info 4) Validate if allocation structure is provided for inclusive li

                      nes when the invoice has more than one item line.

                      (Check tax info 5) Check if any non-tax line has tax information

                      (Check tax info 6) Check if an invoice has a tax line matched to receipt and ano

                      ther allocated to item lines

                      ------------------> l_temp_invoice_status  = Y

                      Check for Invalid Remit to Supplier

                      Check valid remit to supplier details

                      Remit to supplier Name

                      Remit to supplier Id

                      Remit to supplier Site Id

                      Remit to supplier Site Name

                      If Remit to supplier Name

                      If Remit to supplier Id

                      Remit to supplier Num

                      Remit to supplier Site Id

                      Remit to supplier Site

                      Data To IBY

                      Party Id 4296

                      Vendor Site id 21498

                      Invoice Date 16-DEC-13

                      Remit Party Id

                      Remit Supplier Site Id

                      Enter : import_Ext_Payee_Relationship

                      Input Parameters : p_party_id,p_supplier_site_id,p_date

                      Input Values : 4296,21498,16-DEC-13

                      Relationship ID is NOT provided

                      1 Remit-To-Supplier and Remit-To-Supplier Site are not provided

                      1 Primary Relationship not found

                      1 Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      1 Output Values : T,-1,,

                      Output Parameters : x_result,x_relationship_id,x_remit_party_id,x_remit_supplier_site_id

                      Output Values : T,-1,,

                      Exit : import_Ext_Payee_Relationship

                      Data From IBY

                      x_result : T

                      ------------------> l_temp_invoice_status  = Y

                      (Check Invoice Validation 16) Check for Exchange Rate Info.

                      (Check No Xrate Base Amount 1) Is Xrate_Base_Amount invalid?

                      (Check Invoice Validation 17) Check Payment Info

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Application_id   : 200

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : 1st party LE id  : 23287

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Id           : 103

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Org Type         : OPERATING_UNIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payer Id         : 4296

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee Site Id    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Supplier Site Id : 21498

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Trxn Type Code   : EMPLOYEE_EXP

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Amount   : 4760.25

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payment Function : PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4296, party site id , supplier site id 21498, org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 5113 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4296, party site id , supplier site id , org id 103, org type OPERATING_UNIT, pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was  exactly matched for the given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: No Payee was matched for the given payee context. Returning -1 for the payee id.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4296, party site id , supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 5112 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: ENTER

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Given payee context: payee party id 4296, party site id , supplier site id , org id , org type , pmt_function PAYABLES_DISB

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: Payee id 5112 exactly matched given payee context.

                      IBY_DISBURSE_SUBMIT_PUB_PKG.deriveExactPayeeIdFromContext: EXIT

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Format Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Code    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Delivery Channel Code  :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Bank Charge Bearer     : I

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Exclusive Payment Flag : N

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Settlement Priority    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Reason Comments    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default Payment Method Name    :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Payee OverRide Flag            : Y

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : ENTER

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Accounting currency : PHP

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : First party country : PH

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Payee Country :

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule:1

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_le_match     :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_payer_org_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_trxn_type_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_currency_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Evaluate Rule Condition:FOREIGN_AND_DOMESTIC

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_cumm_cross_border_match    :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : l_match                   :true

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : Default Payment Method Name :Clearing

                      IBY_DISBURSEMENT_COMP_PUB.Evaluate_Rule_Based_Default   : RETURN

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : Default payee bank account     :

                      IBY_DISBURSEMENT_COMP_PUB.Get_Default_Payment_Attribute : RETURN

                      ------------------>

                                  l_temp_invoice_status  = Y

                      ------------------> vendor_id = 24704 vendor_site_id = 21498 invoice_status = Y

                      terms_id = 10000 fatal_error_flag =  invoice_type_lookup_code = EXPENSE REPORT m

                      atch_mode  =

                      (Import_invoice 12) Validate line

                      SOBID is :

                      (Check_lines 1) Call Get_employee_id

                      (Get_employee_id 1) Get employee id from po_vendors

                      ------------------> l_temp_line_status = Y l_employee_id = 133

                      (Check Lines 2) Get Max Line Number

                      (Check Lines 3) Open Cursor: invoice_lines

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 197928 line_type_lookup_code = ITEMline_n

                      umber = 14line_group_number = amount = 216.25base amount  accounting_date = defe

                      rred_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_o

                      f_period = def_acctg_period_type = description = LIQ OF PC: TO COVER EXPENSES FO

                      R DEPARTMENT'S USE - FOOD COMM. PURCHASES FOR  - PURCHASE OF GROCERY ITEMS FOR "

                      PAMAINIT" - DEC. 08, 2013 INTERRUPTION (INSTALLATION OF TOTALIZING METER)prorate

                      _across_flag = po_header_id = po_number = po_line_id = po_line_number = po_relea

                      se_id = release_num = po_line_location_id = po_shipment_num = po_distribution_id

                      = po_distribution_num = unit_of_meas_lookup_code = inventory_item_id = item_des

                      cription = purchasing_category_id = purchasing_category = quantity_invoiced = 1s

                      hip_to_location_code = unit_price = final_match_flag = distribution_set_id = dis

                      tribution_set_name = dist_code_concatenated = dist_code_combination_id = 54174aw

                      t_group_id = awt_group_name = balancing_segment = cost_center_segment = account_

                      segment = attribute_category = attribute1 = attribute2 = attribute3 = attribute4

                      = attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attribute10

                      = attribute11 = attribute12 = attribute13 = attribute14 = attribute15 = global_a

                      ttribute_category = global_attribute1 = global_attribute2 = global_attribute3 =

                      global_attribute4 = global_attribute5 = global_attribute6 = global_attribute7 =

                      global_attribute8 = global_attribute9 = global_attribute10 = global_attribute11

                      = global_attribute12 = global_attribute13 = global_attribute14 = global_attribut

                      e15 = global_attribute16 = global_attribute17 = global_attribute18 = global_attr

                      ibute19 = global_attribute20 = project_id = task_id = award_id = expenditure_typ

                      e = expenditure_item_date = expenditure_organization_id = pa_addition_flag = pa_

                      quantity = stat_amount = type_1099 = income_tax_region = asset_tracking_flag = a

                      sset_book_type_code = asset_category_id = serial_number = manufacturer = model_n

                      umber = warranty_number = price_correction_flag = price_correct_inv_num = price_

                      correct_inv_id = price_correct_inv_line_num = receipt_number = receipt_line_numb

                      er = rcv_transaction_id = match_option = packing_slip = vendor_item_num = pa_cc_

                      ar_invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = reference_1 =

                      reference_2 = credit_card_trx_id = requester_id = org_id = 103expense_start_dat

                      e = expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      (v_check_po_overlay 1) No Overlay Required

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :54174

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      (v_check_line_account_info 1.2) Check distribution code combination id if entere

                      d

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 54174

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 197929 line_type_lookup_code = ITEMline_n

                      umber = 15line_group_number = amount = 216base amount  accounting_date = deferre

                      d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                      eriod = def_acctg_period_type = description = LIQ OF PC: TO COVER EXPENSES FOR D

                      EPARTMENT'S USE - FOOD COMM. PURCHASES FOR  - PURCHASE OF GROCERY ITEMS FOR "PAM

                      AINIT" - DEC. 08, 2013 INTERRUPTION (INSTALLATION OF TOTALIZING METER)prorate_ac

                      ross_flag = po_header_id = po_number = po_line_id = po_line_number = po_release_

                      id = release_num = po_line_location_id = po_shipment_num = po_distribution_id =

                      po_distribution_num = unit_of_meas_lookup_code = inventory_item_id = item_descri

                      ption = purchasing_category_id = purchasing_category = quantity_invoiced = 1ship

                      _to_location_code = unit_price = final_match_flag = distribution_set_id = distri

                      bution_set_name = dist_code_concatenated = dist_code_combination_id = 54174awt_g

                      roup_id = awt_group_name = balancing_segment = cost_center_segment = account_seg

                      ment = attribute_category = attribute1 = attribute2 = attribute3 = attribute4 =

                      attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attribute10 = a

                      ttribute11 = attribute12 = attribute13 = attribute14 = attribute15 = global_attr

                      ibute_category = global_attribute1 = global_attribute2 = global_attribute3 = glo

                      bal_attribute4 = global_attribute5 = global_attribute6 = global_attribute7 = glo

                      bal_attribute8 = global_attribute9 = global_attribute10 = global_attribute11 = g

                      lobal_attribute12 = global_attribute13 = global_attribute14 = global_attribute15

                      = global_attribute16 = global_attribute17 = global_attribute18 = global_attribu

                      te19 = global_attribute20 = project_id = task_id = award_id = expenditure_type =

                      expenditure_item_date = expenditure_organization_id = pa_addition_flag = pa_qua

                      ntity = stat_amount = type_1099 = income_tax_region = asset_tracking_flag = asse

                      t_book_type_code = asset_category_id = serial_number = manufacturer = model_numb

                      er = warranty_number = price_correction_flag = price_correct_inv_num = price_cor

                      rect_inv_id = price_correct_inv_line_num = receipt_number = receipt_line_number

                      = rcv_transaction_id = match_option = packing_slip = vendor_item_num = pa_cc_ar_

                      invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = reference_1 = re

                      ference_2 = credit_card_trx_id = requester_id = org_id = 103expense_start_date =

                      expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      (v_check_po_overlay 1) No Overlay Required

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :54174

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      (v_check_line_account_info 1.2) Check distribution code combination id if entere

                      d

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 54174

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 197930 line_type_lookup_code = ITEMline_n

                      umber = 16line_group_number = amount = 150base amount  accounting_date = deferre

                      d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                      eriod = def_acctg_period_type = description = LIQ OF PC: TO COVER EXPENSES FOR D

                      EPARTMENT'S USE - FOOD COMM. PURCHASES FOR  - PURCHASE OF GROCERY ITEMS FOR "PAM

                      AINIT" - DEC. 08, 2013 INTERRUPTION (INSTALLATION OF TOTALIZING METER)prorate_ac

                      ross_flag = po_header_id = po_number = po_line_id = po_line_number = po_release_

                      id = release_num = po_line_location_id = po_shipment_num = po_distribution_id =

                      po_distribution_num = unit_of_meas_lookup_code = inventory_item_id = item_descri

                      ption = purchasing_category_id = purchasing_category = quantity_invoiced = 1ship

                      _to_location_code = unit_price = final_match_flag = distribution_set_id = distri

                      bution_set_name = dist_code_concatenated = dist_code_combination_id = 54174awt_g

                      roup_id = awt_group_name = balancing_segment = cost_center_segment = account_seg

                      ment = attribute_category = attribute1 = attribute2 = attribute3 = attribute4 =

                      attribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attribute10 = a

                      ttribute11 = attribute12 = attribute13 = attribute14 = attribute15 = global_attr

                      ibute_category = global_attribute1 = global_attribute2 = global_attribute3 = glo

                      bal_attribute4 = global_attribute5 = global_attribute6 = global_attribute7 = glo

                      bal_attribute8 = global_attribute9 = global_attribute10 = global_attribute11 = g

                      lobal_attribute12 = global_attribute13 = global_attribute14 = global_attribute15

                      = global_attribute16 = global_attribute17 = global_attribute18 = global_attribu

                      te19 = global_attribute20 = project_id = task_id = award_id = expenditure_type =

                      expenditure_item_date = expenditure_organization_id = pa_addition_flag = pa_qua

                      ntity = stat_amount = type_1099 = income_tax_region = asset_tracking_flag = asse

                      t_book_type_code = asset_category_id = serial_number = manufacturer = model_numb

                      er = warranty_number = price_correction_flag = price_correct_inv_num = price_cor

                      rect_inv_id = price_correct_inv_line_num = receipt_number = receipt_line_number

                      = rcv_transaction_id = match_option = packing_slip = vendor_item_num = pa_cc_ar_

                      invoice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = reference_1 = re

                      ference_2 = credit_card_trx_id = requester_id = org_id = 103expense_start_date =

                      expense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      (v_check_po_overlay 1) No Overlay Required

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :54174

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      (v_check_line_account_info 1.2) Check distribution code combination id if entere

                      d

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 54174

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      (Check Misc Line Info 3) Defaulting type 1099 from

                          supplier

                      ------------------> l_temp_line_status = Y

                      ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                      (Check_lines 23) Call v_check_tax_line_info

                      (Check Tax Line Info 2) Check for control_amount greater than line amount

                      (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                      (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                      e imported

                      ------------------> l_temp_line_status = Y

                      (Check Lines 25) Checking the total dist amount to be prorated

                      (Check Lines 28) Update global context code

                      (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                      (Check GDF VALIDATION) Call CHECK_GDF_VALID

                      (Check GDF VALIDATION) GDF is valid

                      ------------------> l_temp_line_status = Y

                      (Check Lines 4) Looping through fetched invoice lines

                      ------------------>  invoice_line_id = 197931 line_type_lookup_code = ITEMline_n

                      umber = 17line_group_number = amount = 1000base amount  accounting_date = deferr

                      ed_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_

                      period = def_acctg_period_type = description = LIQ OF PC: TO COVER EXPENSES FOR

                      DEPARTMENT'S USE - FREIGHT OF 10 ROLLS OF WIRE#8 AAC TWISTED LOANED BY DLP DTD:

                      12/06/13 - FREIGHT ON 10 ROLLS OF WIRE #8AAC TO DLPC - LOANED BY DLPCprorate_acr

                      oss_flag = po_header_id = po_number = po_line_id = po_line_number = po_release_i

                      d = release_num = po_line_location_id = po_shipment_num = po_distribution_id = p

                      o_distribution_num = unit_of_meas_lookup_code = inventory_item_id = item_descrip

                      tion = purchasing_category_id = purchasing_category = quantity_invoiced = 1ship_

                      to_location_code = unit_price = final_match_flag = distribution_set_id = distrib

                      ution_set_name = dist_code_concatenated = dist_code_combination_id = 1123awt_gro

                      up_id = awt_group_name = balancing_segment = cost_center_segment = account_segme

                      nt = attribute_category = attribute1 = attribute2 = attribute3 = attribute4 = at

                      tribute5 = attribute6 = attribute7 = attribute8 = attribute9 = attribute10 = att

                      ribute11 = attribute12 = attribute13 = attribute14 = attribute15 = global_attrib

                      ute_category = global_attribute1 = global_attribute2 = global_attribute3 = globa

                      l_attribute4 = global_attribute5 = global_attribute6 = global_attribute7 = globa

                      l_attribute8 = global_attribute9 = global_attribute10 = global_attribute11 = glo

                      bal_attribute12 = global_attribute13 = global_attribute14 = global_attribute15 =

                      global_attribute16 = global_attribute17 = global_attribute18 = global_attribute

                      19 = global_attribute20 = project_id = task_id = award_id = expenditure_type = e

                      xpenditure_item_date = expenditure_organization_id = pa_addition_flag = pa_quant

                      ity = stat_amount = type_1099 = income_tax_region = asset_tracking_flag = asset_

                      book_type_code = asset_category_id = serial_number = manufacturer = model_number

                      = warranty_number = price_correction_flag = price_correct_inv_num = price_corre

                      ct_inv_id = price_correct_inv_line_num = receipt_number = receipt_line_number =

                      rcv_transaction_id = match_option = packing_slip = vendor_item_num = pa_cc_ar_in

                      voice_id = pa_cc_ar_invoice_line_num = pa_cc_processed_code = reference_1 = refe

                      rence_2 = credit_card_trx_id = requester_id = org_id = 103expense_start_date = e

                      xpense_end_date =

                      (Check Lines 5) Validate org id for line

                      (Check_lines 5.0) Org Id Is Not Null

                      (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                      ng precision

                      ------------------>

                               l_temp_invoice_status  = Y

                      (Check_lines 9) Call v_check_po_info only for ITEM Lines

                      (Check_lines 9.1) This is an ITEM Line

                      (v_check_line_po_info 35) Call v_check_line_po_info2

                      ------------------> l_current_invoice_status = Y

                      (v_check_line_po_info 36) Call v_check_po_overlay

                      (v_check_po_overlay 1) No Overlay Required

                      ------------------> l_current_invoice_status = Y

                      ------------------> l_temp_line_status = Y

                      (Check_lines 10) Call v_check_receipt_info

                      ------------------> l_temp_line_status = Y

                      (Check_lines 13) Call v_check_line_accounting_date

                      (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                      (v_check_line_accounting_date 3) Check IF gl date is not in open period

                      ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                      ------------------> l_temp_line_status = Y

                      (Check_lines 14) Call v_check_line_project_info

                      (Check_lines 15.0) Call Is_Product_Registered

                      (Check_lines 15.1) l_product_registered: N

                      (Check_lines 15) Call v_check_line_account_info

                      Before deriving l_dist_code_combination_id is :1123

                      (v_check_line_account_info 1) Check IF item line doesnt have account info

                      (v_check_line_account_info 1.2) Check distribution code combination id if entere

                      d

                      ------------------> l_temp_line_status = Ydist_code_combination_id = 1123

                      (Check_lines 16) Call v_check_deferred_accounting

                      ------------------> l_temp_line_status = Y

                      (Check_lines 17) Call v_check_line_dist_set

                      (Check Line Dist Set 1) Validate Distribution Set Id

                      (Check Line Dist Set 3.1) Check for inactive DIST SET

                      ------------------> l_temp_line_status = Y

                      (Check_lines 18) Call v_check_qty_uom_info

                      (Check Qty UOM non PO 2) Check Qty related information vs line type.

                      (Check Qty UOM non PO 4) Check Qty information when UOM populated

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_awt_group

                      (Check AWT Group 2) Check for Inactive AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                      (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                      ------------------> l_temp_line_status = Y

                      (Check_lines 20) Call v_check_duplicate_line_num

                      (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                      ------------------> l_temp_line_status = Y

                      (Check_lines 21) Call v_check_asset_info

                      (Check Asset Book 1) Verify asset info not on non-item line

                      (Check Asset Book 2) Verify asset book if not null

                      (Check Asset Book 3) Verify asset category if not null

                      ------------------> l_temp_line_status = Y

                      (Check_lines 22) Call v_check_misc_line_info

                      • 8. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
                        996473

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197932 line_type_lookup_code = ITEMline_n

                        umber = 18line_group_number = amount = 50base amount  accounting_date = deferred

                        _acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_pe

                        riod = def_acctg_period_type = description = PC REIMBURSEMENT FOR STRAIGHT DUTY

                        MEAL ALLOWANCE, AUDIT WORK ORDERS AT DOS, SK AND CITY AREAS. DATED NOV. 04-08, 2

                        013 (12:00NN - 1:00PM).                                              - MEAL ALLOWANCEprorate_across_flag = po_hea

                        der_id = po_number = po_line_id = po_line_number = po_release_id = release_num =

                        po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_nu

                        m = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasing

                        _category_id = purchasing_category = quantity_invoiced = 1ship_to_location_code

                        = unit_price = final_match_flag = distribution_set_id = distribution_set_name =

                        dist_code_concatenated = dist_code_combination_id = 54163awt_group_id = awt_grou

                        p_name = balancing_segment = cost_center_segment = account_segment = attribute_c

                        ategory = attribute1 = attribute2 = attribute3 = attribute4 = attribute5 = attri

                        bute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11 = attri

                        bute12 = attribute13 = attribute14 = attribute15 = global_attribute_category = g

                        lobal_attribute1 = global_attribute2 = global_attribute3 = global_attribute4 = g

                        lobal_attribute5 = global_attribute6 = global_attribute7 = global_attribute8 = g

                        lobal_attribute9 = global_attribute10 = global_attribute11 = global_attribute12

                        = global_attribute13 = global_attribute14 = global_attribute15 = global_attribut

                        e16 = global_attribute17 = global_attribute18 = global_attribute19 = global_attr

                        ibute20 = project_id = task_id = award_id = expenditure_type = expenditure_item_

                        date = expenditure_organization_id = pa_addition_flag = pa_quantity = stat_amoun

                        t = type_1099 = income_tax_region = asset_tracking_flag = asset_book_type_code =

                        asset_category_id = serial_number = manufacturer = model_number = warranty_numb

                        er = price_correction_flag = price_correct_inv_num = price_correct_inv_id = pric

                        e_correct_inv_line_num = receipt_number = receipt_line_number = rcv_transaction_

                        id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc

                        _ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2 = credit

                        _card_trx_id = requester_id = org_id = 103expense_start_date = expense_end_date

                        =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :54163

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 54163

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197933 line_type_lookup_code = ITEMline_n

                        umber = 19line_group_number = amount = 50base amount  accounting_date = deferred

                        _acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_pe

                        riod = def_acctg_period_type = description = PC REIMBURSEMENT FOR STRAIGHT DUTY

                        MEAL ALLOWANCE, AUDIT WORK ORDERS AT DOS, SK AND CITY AREAS. DATED NOV. 04-08, 2

                        013 (12:00NN - 1:00PM).                                              - MEAL ALLOWANCEprorate_across_flag = po_hea

                        der_id = po_number = po_line_id = po_line_number = po_release_id = release_num =

                        po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_nu

                        m = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasing

                        _category_id = purchasing_category = quantity_invoiced = 1ship_to_location_code

                        = unit_price = final_match_flag = distribution_set_id = distribution_set_name =

                        dist_code_concatenated = dist_code_combination_id = 54163awt_group_id = awt_grou

                        p_name = balancing_segment = cost_center_segment = account_segment = attribute_c

                        ategory = attribute1 = attribute2 = attribute3 = attribute4 = attribute5 = attri

                        bute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11 = attri

                        bute12 = attribute13 = attribute14 = attribute15 = global_attribute_category = g

                        lobal_attribute1 = global_attribute2 = global_attribute3 = global_attribute4 = g

                        lobal_attribute5 = global_attribute6 = global_attribute7 = global_attribute8 = g

                        lobal_attribute9 = global_attribute10 = global_attribute11 = global_attribute12

                        = global_attribute13 = global_attribute14 = global_attribute15 = global_attribut

                        e16 = global_attribute17 = global_attribute18 = global_attribute19 = global_attr

                        ibute20 = project_id = task_id = award_id = expenditure_type = expenditure_item_

                        date = expenditure_organization_id = pa_addition_flag = pa_quantity = stat_amoun

                        t = type_1099 = income_tax_region = asset_tracking_flag = asset_book_type_code =

                        asset_category_id = serial_number = manufacturer = model_number = warranty_numb

                        er = price_correction_flag = price_correct_inv_num = price_correct_inv_id = pric

                        e_correct_inv_line_num = receipt_number = receipt_line_number = rcv_transaction_

                        id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc

                        _ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2 = credit

                        _card_trx_id = requester_id = org_id = 103expense_start_date = expense_end_date

                        =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :54163

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 54163

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197934 line_type_lookup_code = ITEMline_n

                        umber = 20line_group_number = amount = 50base amount  accounting_date = deferred

                        _acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_pe

                        riod = def_acctg_period_type = description = PC REIMBURSEMENT FOR STRAIGHT DUTY

                        MEAL ALLOWANCE, AUDIT WORK ORDERS AT DOS, SK AND CITY AREAS. DATED NOV. 04-08, 2

                        013 (12:00NN - 1:00PM).                                              - MEAL ALLOWANCEprorate_across_flag = po_hea

                        der_id = po_number = po_line_id = po_line_number = po_release_id = release_num =

                        po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_nu

                        m = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasing

                        _category_id = purchasing_category = quantity_invoiced = 1ship_to_location_code

                        = unit_price = final_match_flag = distribution_set_id = distribution_set_name =

                        dist_code_concatenated = dist_code_combination_id = 54163awt_group_id = awt_grou

                        p_name = balancing_segment = cost_center_segment = account_segment = attribute_c

                        ategory = attribute1 = attribute2 = attribute3 = attribute4 = attribute5 = attri

                        bute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11 = attri

                        bute12 = attribute13 = attribute14 = attribute15 = global_attribute_category = g

                        lobal_attribute1 = global_attribute2 = global_attribute3 = global_attribute4 = g

                        lobal_attribute5 = global_attribute6 = global_attribute7 = global_attribute8 = g

                        lobal_attribute9 = global_attribute10 = global_attribute11 = global_attribute12

                        = global_attribute13 = global_attribute14 = global_attribute15 = global_attribut

                        e16 = global_attribute17 = global_attribute18 = global_attribute19 = global_attr

                        ibute20 = project_id = task_id = award_id = expenditure_type = expenditure_item_

                        date = expenditure_organization_id = pa_addition_flag = pa_quantity = stat_amoun

                        t = type_1099 = income_tax_region = asset_tracking_flag = asset_book_type_code =

                        asset_category_id = serial_number = manufacturer = model_number = warranty_numb

                        er = price_correction_flag = price_correct_inv_num = price_correct_inv_id = pric

                        e_correct_inv_line_num = receipt_number = receipt_line_number = rcv_transaction_

                        id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc

                        _ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2 = credit

                        _card_trx_id = requester_id = org_id = 103expense_start_date = expense_end_date

                        =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :54163

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 54163

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197935 line_type_lookup_code = ITEMline_n

                        umber = 21line_group_number = amount = 50base amount  accounting_date = deferred

                        _acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_pe

                        riod = def_acctg_period_type = description = PC REIMBURSEMENT FOR STRAIGHT DUTY

                        MEAL ALLOWANCE, AUDIT WORK ORDERS AT DOS, SK AND CITY AREAS. DATED NOV. 04-08, 2

                        013 (12:00NN - 1:00PM).                                              - MEAL ALLOWANCEprorate_across_flag = po_hea

                        der_id = po_number = po_line_id = po_line_number = po_release_id = release_num =

                        po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_nu

                        m = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasing

                        _category_id = purchasing_category = quantity_invoiced = 1ship_to_location_code

                        = unit_price = final_match_flag = distribution_set_id = distribution_set_name =

                        dist_code_concatenated = dist_code_combination_id = 54163awt_group_id = awt_grou

                        p_name = balancing_segment = cost_center_segment = account_segment = attribute_c

                        ategory = attribute1 = attribute2 = attribute3 = attribute4 = attribute5 = attri

                        bute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11 = attri

                        bute12 = attribute13 = attribute14 = attribute15 = global_attribute_category = g

                        lobal_attribute1 = global_attribute2 = global_attribute3 = global_attribute4 = g

                        lobal_attribute5 = global_attribute6 = global_attribute7 = global_attribute8 = g

                        lobal_attribute9 = global_attribute10 = global_attribute11 = global_attribute12

                        = global_attribute13 = global_attribute14 = global_attribute15 = global_attribut

                        e16 = global_attribute17 = global_attribute18 = global_attribute19 = global_attr

                        ibute20 = project_id = task_id = award_id = expenditure_type = expenditure_item_

                        date = expenditure_organization_id = pa_addition_flag = pa_quantity = stat_amoun

                        t = type_1099 = income_tax_region = asset_tracking_flag = asset_book_type_code =

                        asset_category_id = serial_number = manufacturer = model_number = warranty_numb

                        er = price_correction_flag = price_correct_inv_num = price_correct_inv_id = pric

                        e_correct_inv_line_num = receipt_number = receipt_line_number = rcv_transaction_

                        id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc

                        _ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2 = credit

                        _card_trx_id = requester_id = org_id = 103expense_start_date = expense_end_date

                        =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :54163

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 54163

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197936 line_type_lookup_code = ITEMline_n

                        umber = 22line_group_number = amount = 50base amount  accounting_date = deferred

                        _acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_pe

                        riod = def_acctg_period_type = description = PC REIMBURSEMENT FOR STRAIGHT DUTY

                        MEAL ALLOWANCE, AUDIT WORK ORDERS AT DOS, SK AND CITY AREAS. DATED NOV. 04-08, 2

                        013 (12:00NN - 1:00PM).                                              - MEAL ALLOWANCEprorate_across_flag = po_hea

                        der_id = po_number = po_line_id = po_line_number = po_release_id = release_num =

                        po_line_location_id = po_shipment_num = po_distribution_id = po_distribution_nu

                        m = unit_of_meas_lookup_code = inventory_item_id = item_description = purchasing

                        _category_id = purchasing_category = quantity_invoiced = 1ship_to_location_code

                        = unit_price = final_match_flag = distribution_set_id = distribution_set_name =

                        dist_code_concatenated = dist_code_combination_id = 54163awt_group_id = awt_grou

                        p_name = balancing_segment = cost_center_segment = account_segment = attribute_c

                        ategory = attribute1 = attribute2 = attribute3 = attribute4 = attribute5 = attri

                        bute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11 = attri

                        bute12 = attribute13 = attribute14 = attribute15 = global_attribute_category = g

                        lobal_attribute1 = global_attribute2 = global_attribute3 = global_attribute4 = g

                        lobal_attribute5 = global_attribute6 = global_attribute7 = global_attribute8 = g

                        lobal_attribute9 = global_attribute10 = global_attribute11 = global_attribute12

                        = global_attribute13 = global_attribute14 = global_attribute15 = global_attribut

                        e16 = global_attribute17 = global_attribute18 = global_attribute19 = global_attr

                        ibute20 = project_id = task_id = award_id = expenditure_type = expenditure_item_

                        date = expenditure_organization_id = pa_addition_flag = pa_quantity = stat_amoun

                        t = type_1099 = income_tax_region = asset_tracking_flag = asset_book_type_code =

                        asset_category_id = serial_number = manufacturer = model_number = warranty_numb

                        er = price_correction_flag = price_correct_inv_num = price_correct_inv_id = pric

                        e_correct_inv_line_num = receipt_number = receipt_line_number = rcv_transaction_

                        id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc

                        _ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2 = credit

                        _card_trx_id = requester_id = org_id = 103expense_start_date = expense_end_date

                        =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :54163

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 54163

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197937 line_type_lookup_code = ITEMline_n

                        umber = 23line_group_number = amount = 120base amount  accounting_date = deferre

                        d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                        eriod = def_acctg_period_type = description = PC REIMBURSEMENT FOR (DEVCON) ADHE

                        SIVE/SEALANT FOR PMD'S USAGE LAST DEC. 08, 2013 INTERRUPTION - ADHESIVE/SEALANT

                        FOR CURRENT TRANSFORMER - LAST DEC. 08, 2013 PMD INTERRUPTIONprorate_across_flag

                        = po_header_id = po_number = po_line_id = po_line_number = po_release_id = rele

                        ase_num = po_line_location_id = po_shipment_num = po_distribution_id = po_distri

                        bution_num = unit_of_meas_lookup_code = inventory_item_id = item_description = p

                        urchasing_category_id = purchasing_category = quantity_invoiced = 1ship_to_locat

                        ion_code = unit_price = final_match_flag = distribution_set_id = distribution_se

                        t_name = dist_code_concatenated = dist_code_combination_id = 6847awt_group_id =

                        awt_group_name = balancing_segment = cost_center_segment = account_segment = att

                        ribute_category = attribute1 = attribute2 = attribute3 = attribute4 = attribute5

                        = attribute6 = attribute7 = attribute8 = attribute9 = attribute10 = attribute11

                        = attribute12 = attribute13 = attribute14 = attribute15 = global_attribute_cate

                        gory = global_attribute1 = global_attribute2 = global_attribute3 = global_attrib

                        ute4 = global_attribute5 = global_attribute6 = global_attribute7 = global_attrib

                        ute8 = global_attribute9 = global_attribute10 = global_attribute11 = global_attr

                        ibute12 = global_attribute13 = global_attribute14 = global_attribute15 = global_

                        attribute16 = global_attribute17 = global_attribute18 = global_attribute19 = glo

                        bal_attribute20 = project_id = task_id = award_id = expenditure_type = expenditu

                        re_item_date = expenditure_organization_id = pa_addition_flag = pa_quantity = st

                        at_amount = type_1099 = income_tax_region = asset_tracking_flag = asset_book_typ

                        e_code = asset_category_id = serial_number = manufacturer = model_number = warra

                        nty_number = price_correction_flag = price_correct_inv_num = price_correct_inv_i

                        d = price_correct_inv_line_num = receipt_number = receipt_line_number = rcv_tran

                        saction_id = match_option = packing_slip = vendor_item_num = pa_cc_ar_invoice_id

                        = pa_cc_ar_invoice_line_num = pa_cc_processed_code = reference_1 = reference_2

                        = credit_card_trx_id = requester_id = org_id = 103expense_start_date = expense_e

                        nd_date =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :6847

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 6847

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197938 line_type_lookup_code = ITEMline_n

                        umber = 24line_group_number = amount = 250base amount  accounting_date = deferre

                        d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                        eriod = def_acctg_period_type = description = PC REIMBURSEMENT FOR CLAIM FOR MEA

                        L ALLOWANCE STRAIGHT DUTY 12-1PM, INSTALL VOLTAGE SCANNER, SURVEY BUSTED LATERAL

                        FUSE AND PRIMARY LINE SURVEY FOR TRIMMING...DEC. 2-6, 2013 - FOR B.TANARA - 5 D

                        AYS MEAL ALLOWANCE..DEC 2-6, 2013prorate_across_flag = po_header_id = po_number

                        = po_line_id = po_line_number = po_release_id = release_num = po_line_location_i

                        d = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_meas_lo

                        okup_code = inventory_item_id = item_description = purchasing_category_id = purc

                        hasing_category = quantity_invoiced = 1ship_to_location_code = unit_price = fina

                        l_match_flag = distribution_set_id = distribution_set_name = dist_code_concatena

                        ted = dist_code_combination_id = 54168awt_group_id = awt_group_name = balancing_

                        segment = cost_center_segment = account_segment = attribute_category = attribute

                        1 = attribute2 = attribute3 = attribute4 = attribute5 = attribute6 = attribute7

                        = attribute8 = attribute9 = attribute10 = attribute11 = attribute12 = attribute1

                        3 = attribute14 = attribute15 = global_attribute_category = global_attribute1 =

                        global_attribute2 = global_attribute3 = global_attribute4 = global_attribute5 =

                        global_attribute6 = global_attribute7 = global_attribute8 = global_attribute9 =

                        global_attribute10 = global_attribute11 = global_attribute12 = global_attribute1

                        3 = global_attribute14 = global_attribute15 = global_attribute16 = global_attrib

                        ute17 = global_attribute18 = global_attribute19 = global_attribute20 = project_i

                        d = task_id = award_id = expenditure_type = expenditure_item_date = expenditure_

                        organization_id = pa_addition_flag = pa_quantity = stat_amount = type_1099 = inc

                        ome_tax_region = asset_tracking_flag = asset_book_type_code = asset_category_id

                        = serial_number = manufacturer = model_number = warranty_number = price_correcti

                        on_flag = price_correct_inv_num = price_correct_inv_id = price_correct_inv_line_

                        num = receipt_number = receipt_line_number = rcv_transaction_id = match_option =

                        packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_nu

                        m = pa_cc_processed_code = reference_1 = reference_2 = credit_card_trx_id = requ

                        ester_id = org_id = 103expense_start_date = expense_end_date =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :54168

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 54168

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197939 line_type_lookup_code = ITEMline_n

                        umber = 25line_group_number = amount = 250base amount  accounting_date = deferre

                        d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                        eriod = def_acctg_period_type = description = PC REIMBURSEMENT FOR CLAIM FOR MEA

                        L ALLOWANCE STRAIGHT DUTY 12-1PM, INSTALL VOLTAGE SCANNER, SURVEY BUSTED LATERAL

                        FUSE AND PRIMARY LINE SURVEY FOR TRIMMING...DEC. 2-6, 2013 - FOR C. TOCAO - 5 D

                        AYS MEAL ALLOWANCE..DEC 2-6, 2013prorate_across_flag = po_header_id = po_number

                        = po_line_id = po_line_number = po_release_id = release_num = po_line_location_i

                        d = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_meas_lo

                        okup_code = inventory_item_id = item_description = purchasing_category_id = purc

                        hasing_category = quantity_invoiced = 1ship_to_location_code = unit_price = fina

                        l_match_flag = distribution_set_id = distribution_set_name = dist_code_concatena

                        ted = dist_code_combination_id = 54168awt_group_id = awt_group_name = balancing_

                        segment = cost_center_segment = account_segment = attribute_category = attribute

                        1 = attribute2 = attribute3 = attribute4 = attribute5 = attribute6 = attribute7

                        = attribute8 = attribute9 = attribute10 = attribute11 = attribute12 = attribute1

                        3 = attribute14 = attribute15 = global_attribute_category = global_attribute1 =

                        global_attribute2 = global_attribute3 = global_attribute4 = global_attribute5 =

                        global_attribute6 = global_attribute7 = global_attribute8 = global_attribute9 =

                        global_attribute10 = global_attribute11 = global_attribute12 = global_attribute1

                        3 = global_attribute14 = global_attribute15 = global_attribute16 = global_attrib

                        ute17 = global_attribute18 = global_attribute19 = global_attribute20 = project_i

                        d = task_id = award_id = expenditure_type = expenditure_item_date = expenditure_

                        organization_id = pa_addition_flag = pa_quantity = stat_amount = type_1099 = inc

                        ome_tax_region = asset_tracking_flag = asset_book_type_code = asset_category_id

                        = serial_number = manufacturer = model_number = warranty_number = price_correcti

                        on_flag = price_correct_inv_num = price_correct_inv_id = price_correct_inv_line_

                        num = receipt_number = receipt_line_number = rcv_transaction_id = match_option =

                        packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_nu

                        m = pa_cc_processed_code = reference_1 = reference_2 = credit_card_trx_id = requ

                        ester_id = org_id = 103expense_start_date = expense_end_date =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :54168

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 54168

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197940 line_type_lookup_code = ITEMline_n

                        umber = 26line_group_number = amount = 400base amount  accounting_date = deferre

                        d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                        eriod = def_acctg_period_type = description = LIQ OF PC: TO COVER EXPENSES FOR D

                        EPARTMENT'S USE - REQUEST FOR REFUND ON FREIGHT ON LOANED #8AAC TWISTED WIRE SEN

                        T TO DLPC. THIS IS ON TOP OF P* 1,000.00 REQUESTED BY D.YAP.TOTAL FREIGHT PAID I

                        S 1,000. - FREIGHT ON #8 AAC WIRE LOprorate_across_flag = po_header_id = po_numb

                        er = po_line_id = po_line_number = po_release_id = release_num = po_line_locatio

                        n_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of_meas

                        _lookup_code = inventory_item_id = item_description = purchasing_category_id = p

                        urchasing_category = quantity_invoiced = 1ship_to_location_code = unit_price = f

                        inal_match_flag = distribution_set_id = distribution_set_name = dist_code_concat

                        enated = dist_code_combination_id = 1123awt_group_id = awt_group_name = balancin

                        g_segment = cost_center_segment = account_segment = attribute_category = attribu

                        te1 = attribute2 = attribute3 = attribute4 = attribute5 = attribute6 = attribute

                        7 = attribute8 = attribute9 = attribute10 = attribute11 = attribute12 = attribut

                        e13 = attribute14 = attribute15 = global_attribute_category = global_attribute1

                        = global_attribute2 = global_attribute3 = global_attribute4 = global_attribute5

                        = global_attribute6 = global_attribute7 = global_attribute8 = global_attribute9

                        = global_attribute10 = global_attribute11 = global_attribute12 = global_attribut

                        e13 = global_attribute14 = global_attribute15 = global_attribute16 = global_attr

                        ibute17 = global_attribute18 = global_attribute19 = global_attribute20 = project

                        _id = task_id = award_id = expenditure_type = expenditure_item_date = expenditur

                        e_organization_id = pa_addition_flag = pa_quantity = stat_amount = type_1099 = i

                        ncome_tax_region = asset_tracking_flag = asset_book_type_code = asset_category_i

                        d = serial_number = manufacturer = model_number = warranty_number = price_correc

                        tion_flag = price_correct_inv_num = price_correct_inv_id = price_correct_inv_lin

                        e_num = receipt_number = receipt_line_number = rcv_transaction_id = match_option

                        = packing_slip = vendor_item_num = pa_cc_ar_invoice_id = pa_cc_ar_invoice_line_

                        num = pa_cc_processed_code = reference_1 = reference_2 = credit_card_trx_id = re

                        quester_id = org_id = 103expense_start_date = expense_end_date =

                        (Check Lines 5) Validate org id for line

                        (Check_lines 5.0) Org Id Is Not Null

                        (Check Invoice Line amount 8) Check for invoice line amount if it is not exceedi

                        ng precision

                        ------------------>

                                 l_temp_invoice_status  = Y

                        (Check_lines 9) Call v_check_po_info only for ITEM Lines

                        (Check_lines 9.1) This is an ITEM Line

                        (v_check_line_po_info 35) Call v_check_line_po_info2

                        ------------------> l_current_invoice_status = Y

                        (v_check_line_po_info 36) Call v_check_po_overlay

                        (v_check_po_overlay 1) No Overlay Required

                        ------------------> l_current_invoice_status = Y

                        ------------------> l_temp_line_status = Y

                        (Check_lines 10) Call v_check_receipt_info

                        ------------------> l_temp_line_status = Y

                        (Check_lines 13) Call v_check_line_accounting_date

                        (Check_line_accounting_date 1) Default line_accounting_date from Invoice gl_date

                        (v_check_line_accounting_date 3) Check IF gl date is not in open period

                        ------------------> l_period_name = DEC-2013l_accounting_date = 16-DEC-13

                        ------------------> l_temp_line_status = Y

                        (Check_lines 14) Call v_check_line_project_info

                        (Check_lines 15.0) Call Is_Product_Registered

                        (Check_lines 15.1) l_product_registered: N

                        (Check_lines 15) Call v_check_line_account_info

                        Before deriving l_dist_code_combination_id is :1123

                        (v_check_line_account_info 1) Check IF item line doesnt have account info

                        (v_check_line_account_info 1.2) Check distribution code combination id if entere

                        d

                        ------------------> l_temp_line_status = Ydist_code_combination_id = 1123

                        (Check_lines 16) Call v_check_deferred_accounting

                        ------------------> l_temp_line_status = Y

                        (Check_lines 17) Call v_check_line_dist_set

                        (Check Line Dist Set 1) Validate Distribution Set Id

                        (Check Line Dist Set 3.1) Check for inactive DIST SET

                        ------------------> l_temp_line_status = Y

                        (Check_lines 18) Call v_check_qty_uom_info

                        (Check Qty UOM non PO 2) Check Qty related information vs line type.

                        (Check Qty UOM non PO 4) Check Qty information when UOM populated

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_awt_group

                        (Check AWT Group 2) Check for Inactive AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 19) Call v_check_invalid_line_pay_awt_g

                        (Check Pay AWT Group 2) Check for Inactive Pay AWT Group

                        ------------------> l_temp_line_status = Y

                        (Check_lines 20) Call v_check_duplicate_line_num

                        (Check Duplicate Line Number 1) Check for Duplicate Line Number.

                        ------------------> l_temp_line_status = Y

                        (Check_lines 21) Call v_check_asset_info

                        (Check Asset Book 1) Verify asset info not on non-item line

                        (Check Asset Book 2) Verify asset book if not null

                        (Check Asset Book 3) Verify asset category if not null

                        ------------------> l_temp_line_status = Y

                        (Check_lines 22) Call v_check_misc_line_info

                        (Check Misc Line Info 3) Defaulting type 1099 from

                            supplier

                        ------------------> l_temp_line_status = Y

                        ------------------> p_invoice_lines_tab(i).ship_to_location_id = 159

                        (Check_lines 23) Call v_check_tax_line_info

                        (Check Tax Line Info 2) Check for control_amount greater than line amount

                        (Check Tax Line Info 3) Tax should not be inclusive if tax line is PO matched

                        (Check Tax Line Info 4.8) Tax_regime_code and tax are required in tax lines to b

                        e imported

                        ------------------> l_temp_line_status = Y

                        (Check Lines 25) Checking the total dist amount to be prorated

                        (Check Lines 28) Update global context code

                        (Check_lines 28) Call V_CHECK_GDF_VALIDATION

                        (Check GDF VALIDATION) Call CHECK_GDF_VALID

                        (Check GDF VALIDATION) GDF is valid

                        ------------------> l_temp_line_status = Y

                        (Check Lines 4) Looping through fetched invoice lines

                        ------------------>  invoice_line_id = 197941 line_type_lookup_code = ITEMline_n

                        umber = 27line_group_number = amount = 105base amount  accounting_date = deferre

                        d_acctg_flag = def_acctg_start_date = def_acctg_end_date = def_acctg_number_of_p

                        eriod = def_acctg_period_type = description = PC REIMBURSEMENT FOR PIPELINE REPA

                        IR DURING POLE ERECTION - PIPELINE DAMAGEprorate_across_flag = po_header_id = po

                        _number = po_line_id = po_line_number = po_release_id = release_num = po_line_lo

                        cation_id = po_shipment_num = po_distribution_id = po_distribution_num = unit_of

                        _meas_lookup_code = inventory_item_id = item_description = purchasing_category_i

                        d = purchasing_category = quantity_invoiced = 1ship_to_location_code = unit_pric

                        e = final_match_flag = distribution_set_id = distribution_set_name = dist_code_c

                        oncatenated = dist_code_combination_id = 8025awt_group_id = awt_group_name = bal

                        ancing_segment = cost_center_segment = account_segment = attribute_category = at

                        tribute1 = attribute2 = attribute3 = attribute4 = attribute5 = attribute6 = attr

                        ibute7 = attribute8 = attribute9 = attribute10 = attribute11 = attribute12 = att

                        ribute13 = attribute14 = attribute15 = global_attribute_category = global_attrib

                        ute1 = global_attribute2 = global_attribute3 = global_attribute4 = global_attrib

                        ute5 = global_attribute6 = global_attribute7 = global_attribute8 = global_attrib

                        ute9 = global_attribute10 = global_attribute11 = global_attribute12 = global_att

                        ribute13 = global_attribute14 = global_attribute15 = global_attribute16 = global

                        _attribute17 = global_attribute18 = global_attribute19 = global_attribute20 = pr

                        • 9. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
                          996473

                          Hi Cheryl,

                          Maybe I could send to you the FND log.

                          This is quite big.

                           

                          Regards,

                          • 10. Re: Cannot import ap_invoices due to this error "VALIDATE DEFAULT IMPORT FAIL"
                            996473

                            Hi Cheryl,

                             

                            Thanks for taking over the SR, and thanks for helping out.

                             

                            Now, we can successfully load the invoices interface.

                             

                            Kudos!

                             

                            Regards,

                            shynn