This discussion is archived
5 Replies Latest reply: Nov 14, 2012 2:48 AM by 880435 RSS

Missing information when updating invoice line

880435 Newbie
Currently Being Moderated
Dear all,

I am updating invoice line information but system giving and error



declare

begin


for rec in (select l.*
from ap_invoices_all l
where invoice_num = 'akp/445'
and vendor_id = 1068
and org_id = 82) loop

AP_INVOICES_PKG.Update_Row(X_Rowid => 'AABDoVAGSAACZlRAAM',
X_Invoice_Id => rec.invoice_id,
X_Last_Update_Date => rec.last_update_date,
X_Last_Updated_By => rec.last_updated_by,
X_Vendor_Id => rec.vendor_id,
X_Invoice_Num => rec.invoice_num,
X_Invoice_Amount => rec.invoice_amount,
X_Vendor_Site_Id => rec.vendor_site_id,
X_Amount_Paid => rec.amount_paid,
X_Discount_Amount_Taken => rec.discount_amount_taken,
X_Invoice_Date => sysdate,--rec.invoice_date+30,
X_Source => rec.source,
X_Invoice_Type_Lookup_Code => rec.invoice_type_lookup_code,
X_Description => rec.description,
X_Batch_Id => rec.batch_id,
X_Amt_Applicable_To_Discount => rec.amount_applicable_to_discount,
X_Terms_Id => rec.terms_id,
X_Terms_Date => rec.terms_date,
X_Goods_Received_Date => rec.goods_received_date,
X_Invoice_Received_Date => rec.invoice_received_date,
X_Voucher_Num => rec.voucher_num,
X_Approved_Amount => rec.approved_amount,
X_Approval_Status => rec.approval_status,
X_Approval_Description => rec.approval_description,
X_Pay_Group_Lookup_Code => rec.pay_group_lookup_code,
X_Set_Of_Books_Id => rec.set_of_books_id,
X_Accts_Pay_CCId => rec.accts_pay_code_combination_id,
X_Recurring_Payment_Id => rec.recurring_payment_id,
X_Invoice_Currency_Code => rec.invoice_currency_code,
X_Payment_Currency_Code => rec.payment_currency_code,
X_Exchange_Rate => rec.exchange_rate,
X_Payment_Amount_Total => rec.payment_amount_total,
X_Payment_Status_Flag => rec.payment_status_flag,
X_Posting_Status => rec.posting_status,
X_Authorized_By => rec.authorized_by,
X_Attribute_Category => rec.attribute_category,
X_Attribute1 => rec.attribute1,
X_Attribute2 => rec.attribute2,
X_Attribute3 => rec.attribute3,
X_Attribute4 => rec.attribute4,
X_Attribute5 => rec.attribute5,
X_Vendor_Prepay_Amount => rec.vendor_prepay_amount,
X_Base_Amount => rec.base_amount,
X_Exchange_Rate_Type => rec.exchange_rate_type,
X_Exchange_Date => rec.exchange_date,
X_Payment_Cross_Rate => rec.payment_cross_rate,
X_Payment_Cross_Rate_Type => rec.payment_cross_rate_type,
X_Payment_Cross_Rate_Date => rec.payment_cross_rate_date,
X_Pay_Curr_Invoice_Amount => rec.pay_curr_invoice_amount,
X_Last_Update_Login => rec.last_update_login,
X_Original_Prepayment_Amount => rec.original_prepayment_amount,
X_Earliest_Settlement_Date => rec.earliest_settlement_date,
X_Attribute11 => rec.attribute11,
X_Attribute12 => rec.attribute12,
X_Attribute13 => rec.attribute13,
X_Attribute14 => rec.attribute14,
X_Attribute6 => rec.attribute6,
X_Attribute7 => rec.attribute7,
X_Attribute8 => rec.attribute8,
X_Attribute9 => rec.attribute9,
X_Attribute10 => rec.attribute10,
X_Attribute15 => rec.attribute15,
X_Cancelled_Date => rec.cancelled_date,
X_Cancelled_By => rec.cancelled_by,
X_Cancelled_Amount => rec.cancelled_amount,
X_Temp_Cancelled_Amount => rec.temp_cancelled_amount,
X_Exclusive_Payment_Flag => rec.exclusive_payment_flag,
X_Po_Header_Id => rec.po_header_id,
X_Doc_Sequence_Id => rec.doc_sequence_id,
X_Doc_Sequence_Value => rec.doc_sequence_value,
X_Doc_Category_Code => rec.doc_category_code,
X_Expenditure_Item_Date => rec.expenditure_item_date,
X_Expenditure_Organization_Id => rec.expenditure_organization_id,
X_Expenditure_Type => rec.expenditure_type,
X_Pa_Default_Dist_Ccid => rec.pa_default_dist_ccid,
X_Pa_Quantity => rec.pa_quantity,
X_Project_Id => rec.project_id,
X_Task_Id => rec.task_id,
X_Awt_Flag => rec.awt_flag,
X_Awt_Group_Id => rec.awt_group_id,
X_Pay_Awt_Group_Id => rec.pay_awt_group_id,
X_Reference_1 => rec.reference_1,
X_Reference_2 => rec.reference_2,
X_Org_Id => rec.org_id,
X_global_attribute_category => NULL,
X_global_attribute1 => NULL,
X_global_attribute2 => NULL,
X_global_attribute3 => NULL,
X_global_attribute4 => NULL,
X_global_attribute5 => NULL,
X_global_attribute6 => NULL,
X_global_attribute7 => NULL,
X_global_attribute8 => NULL,
X_global_attribute9 => NULL,
X_global_attribute10 => NULL,
X_global_attribute11 => NULL,
X_global_attribute12 => NULL,
X_global_attribute13 => NULL,
X_global_attribute14 => NULL,
X_global_attribute15 => NULL,
X_global_attribute16 => NULL,
X_global_attribute17 => NULL,
X_global_attribute18 => NULL,
X_global_attribute19 => NULL,
X_global_attribute20 => NULL,
X_calling_sequence => null,
X_gl_date => rec.gl_date,
X_award_Id => rec.award_id,
X_approval_iteration => rec.approval_iteration,
X_approval_ready_flag => rec.approval_ready_flag,
X_wfapproval_status => rec.wfapproval_status,
X_requester_id => rec.requester_id,
X_quick_credit => rec.quick_credit,
X_credited_invoice_id => NULL,
X_distribution_set_id => NULL,
X_FORCE_REVALIDATION_FLAG => NULL,
X_CONTROL_AMOUNT => NULL,
X_TAX_RELATED_INVOICE_ID => NULL,
X_TRX_BUSINESS_CATEGORY => NULL,
X_USER_DEFINED_FISC_CLASS => NULL,
X_TAXATION_COUNTRY => NULL,
X_DOCUMENT_SUB_TYPE => NULL,
X_SUPPLIER_TAX_INVOICE_NUMBER => NULL,
X_SUPPLIER_TAX_INVOICE_DATE => NULL,
X_SUPPLIER_TAX_EXCHANGE_RATE => NULL,
X_TAX_INVOICE_RECORDING_DATE => NULL,
X_TAX_INVOICE_INTERNAL_SEQ => NULL, -- bug 8912305: modify
X_QUICK_PO_HEADER_ID => NULL,
x_PAYMENT_METHOD_CODE => rec.payment_method_code,
x_PAYMENT_REASON_CODE => null,
X_PAYMENT_REASON_COMMENTS => null,
x_UNIQUE_REMITTANCE_IDENTIFIER => null,
x_URI_CHECK_DIGIT => null,
x_BANK_CHARGE_BEARER => null,
x_DELIVERY_CHANNEL_CODE => null,
x_SETTLEMENT_PRIORITY => null,
x_NET_OF_RETAINAGE_FLAG => null,
x_RELEASE_AMOUNT_NET_OF_TAX => null,
x_PORT_OF_ENTRY_CODE => null,
x_external_bank_account_id => null,
x_party_id => null,
x_party_site_id => null,
x_disc_is_inv_less_tax_flag => null,
x_exclude_freight_from_disc => null,
x_remit_msg1 => null,
x_remit_msg2 => null,
x_remit_msg3 => null,
x_remit_to_supplier_name => null,
x_remit_to_supplier_id => null,
x_remit_to_supplier_site => null,
x_remit_to_supplier_site_id => null,
x_relationship_id => null,
x_original_invoice_amount => null,
x_dispute_reason => null);
commit;
end loop;

exception
when others then
dbms_output.put_line(sqlerrm);
end;





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


ORA-20001: APP-SQLAP-10000: ORA-01403: no data found occurred in
AP_INVOICES_PKG.UPDATE_ROW<-
with parameters (X_Rowid = AABDoVAGSAACZlRAAM, X_invoice_id = 180867)
while performing the following operation:

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points