Skip to Main Content

Cloud Connectivity

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to establish one to one relation between Invoice and Po-Receipt.

3505572Oct 4 2024 — edited Oct 4 2024

Unable to establish one to one relation between Invoice and Receipt. One receipt mapped to Multiple Payable Invoice Numbers. Because of same po_distribution_id across.

Using po_distributions_all.po_distribution_id to map ap_invoice_distributions_all.po_distribution_id.

And also rcv_transaction_id populates as null in ap_invoice_distributions_all. So can't join to RCV_TRANSACTIONS.

https://docs.oracle.com/en/cloud/saas/supply-chain-and-manufacturing/24b/oedsc/rcvtransactions-8520.html#Indexes

Any help on one to one relation between Receipt and Invoice.

SELECT aia.invoice_num
FROM
po_headers_all pha,
po_distributions_all pda,
ap_invoice_distributions_all aid,
ap_invoices_all aia,
rcv_shipment_lines rsl,
rcv_shipment_headers rsh,
rcv_transactions rt,
ap_invoice_lines_all ail,
po_line_locations_all pll,
po_lines_all PL
WHERE 1=1
AND pha.po_header_id = pda.po_header_id
AND aid.po_distribution_id = pda.po_distribution_id
AND aia.invoice_id = aid.invoice_id
AND aia.invoice_id = ail.invoice_id
AND rt.po_line_location_id = ail.po_line_location_id
AND rsl.po_header_id = pha.po_header_id
AND rsl.shipment_header_id = rsh.shipment_header_id
AND rt.shipment_line_id = rsl.shipment_line_id
AND rt.shipment_header_id = rsl.shipment_header_id
AND pha.po_header_id = pll.po_header_id
AND pll.po_line_id = pl.po_line_id
AND rt.transaction_type ='RECEIVE'
--AND rsh.receipt_num IN (15480)

Comments

InoL Apr 29 2024

How doc gen treats nulls values?

You have to be more specific. Are your referring to the pre-built Document Generator function?

If so:

When my query return null in some columns

What is the JSON that is generated?

You should always include the element in the JSON, with an empty value. Don't leave it out.

Francois Robert-Oracle Jan 8 2025 — edited on Jan 8 2025

Since September 2024, when a tag has no corresponding value in the JSON data or the value is null, the tag is replaced by an empty string.

See the September Release Notes

1 - 2

Post Details

Added on Oct 4 2024
0 comments
190 views