Writing...
1. Overview
This solution automates the AP Invoice Void process between Oracle ERP Cloud and a taUTC rget application using Oracle Integration Cloud (OIC). The integration uses Schedule, Main, Callback, and Child integrations to extract invoice details from ERP, process the BIP report, update the target application, and subsequently void the corresponding AP invoices in Oracle ERP.
2. Business Use Case
The requirement is to identify AP invoices from Oracle ERP through a Bulk Export process, retrieve the generated BIP report, update the corresponding invoice records in the target application, and void the respective invoices in Oracle ERP after successful target application updates.
3. Solution Approach
Step 1: Schedule Integration
- Triggers the Main Integration at the configured schedule.
- Initiates the AP invoice bulk export process.
- Schedule params FromDate and ToDate in UTC YYYY-mm-dd HH:MM:SS format.
- Rotate the FromDate = ToDate and Todate ='' at the end of the process.
- Pass FromDate and Todate to Main service. Where we have the logic if FromDate is empty , take from cureent date time function else, map as is. Same for ToDate.
Step 2: Main Integration – Submit Bulk Export
- Invokes Oracle ERP to submit the Bulk Export ESS job.
- Captures the ESS request ID for tracking.
- Does not wait synchronously for the complete ESS and BIP processing.
- Invokes Oracle ERP cloud Adpater | ErpIntegration Service | ExportBulkData operation.
- Pass the following:
- the job package name, Job Definition Name
- Parameter list -Fromadate,ToDate,PaymentSource
- JobOptions : EnableEvent=Y
Step 3: ERP ESS & BIP Processing
ERP processes the submitted ESS job.
Once the ESS job and BIP report generation are completed, the configured callback mechanism triggers the OIC Callback Integration.
ESS job:
Navigation >> My enterprise >> Setup and Maintenance >> Tasks >> Search >> search with %Manage%Schedule% >> click on Manage Enterprise Scheduler Job Definitions and Job Sets for Financial, Supply Chain Management and related applications.>> Create ESS job >> Provide Job Deifinition name, Display name, Path, Jop application name, job type, Report id. >> add parameters and save
BIP Report:
Navigation >> Tools >> Reports and Analytics >> Brose Catalog >> Traverse to the path and create BIP model
SELECT
ac.check_id AS check_id,
ac.payment_type_flag AS payment_type_flag,
ac.org_id AS org_id,
ac.vendor_name AS vendor_name,
ac.vendor_site_code AS vendor_site_code,
ac.party_id AS party_id,
ac.party_site_id AS party_site_id,
ac.check_number AS check_number,
ac.check_date AS check_date,
ac.amount AS amount,
ac.currency_code AS currency_code,
ac.payment_method_code AS payment_method,
ac.status_lookup_code AS payment_status,
ac.bank_account_num AS bank_account_num,
ac.void_date AS void_date,
aia.invoice_num AS InvoiceNumber,
aipa.amount AS InvoicePaidAmount,
bu.bu_name AS InvoiceBusinessUnit
FROM
ap_checks_all ac,
ap_invoice_payments_all aipa,
ap_invoices_all aia,
fun_all_business_units_v bu
WHERE 1 = 1
--AND ac.check_number = '5469'
AND ac.check_id = aipa.check_id
AND aipa.invoice_id = aia.invoice_id
AND aia.org_id = bu.bu_id
AND UPPER(ac.status_lookup_code) = 'VOIDED'
AND aipa.amount < 0
AND CAST(ac.last_update_date AS DATE) BETWEEN
NVL(
CAST(TO_DATE(:P_FROM_DATE, 'YYYY-MM-DD HH24:MI:SS') AS DATE),
CAST(ac.last_update_date AS DATE)
)
AND NVL(
CAST(TO_DATE(:P_TO_DATE, 'YYYY-MM-DD HH24:MI:SS') AS DATE),
CAST(ac.last_update_date AS DATE)
)
AND UPPER(ac.payment_method_code) LIKE '%' || UPPER(:P_PAYMENT_SOURCE)
Step 4: Callback Integration
- Receives the completion notification from ERP.
- Invokes the Main Integration with the required ESS request details.
- Ensures report processing starts only after the BIP report is ready.
- ERP Integration Output Event
- Add filter to select the events for the specific ESS job completion.
- Throw new fault id not scceeded
- Pass Document id to main service.
Step 5: Main Integration – BIP Report Processing
- Retrieves the generated BIP report from Oracle ERP.
- Downloads and unzips the report file.
- Reads and parses the file contents.
- Extracts the required AP invoice details for further processing.
Step 6: Child Integration – Target Update & AP Invoice Void
Invokes the Child Integration with the extracted invoice details.
Updates the corresponding records in the target application.
After successful target application updates, invokes the Oracle ERP operation to void the respective AP invoices.
Handles success and failure responses appropriately.
4. Key Design Considerations
- Asynchronous Processing: Callback-based execution avoids unnecessary waiting for long-running ERP ESS and BIP operations.
- Separation of Responsibilities: Schedule, Main, Callback, and Child integrations have clearly defined responsibilities.
- ESS Tracking: Maintain the ESS request ID to correlate job submission, callback, and report retrieval.
- Error Handling: Handle ESS failures, BIP report download issues, file processing errors, and target application failures.
- Data Consistency: Void AP invoices only after successful updates in the target application.
- Duplicate Prevention: Maintain invoice-level processing status to avoid duplicate updates or repeated void operations.
- Monitoring: Track ESS request IDs, invoice numbers, processing status, and failure details.
5. Conclusion
This architecture provides a structured and asynchronous approach to automating AP Invoice Void processing using OIC. By combining ERP Bulk Export, ESS callback-based execution, BIP report processing, and reusable Child Integrations, the solution improves maintainability, scalability, and reliability while ensuring proper sequencing between target application updates and ERP invoice void operations.

















































