Results for “return_code”
2 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PO_RTRN_DTL is the return-line detail table within the GML (Process Manufacturing Logistics) product family of Oracle E-Business Suite. As the name implies, it stores the individual line-level records that make up a return transaction, where goods previously received against a purchase order are sent back to a supplier or otherwise reversed. Each row in PO_RTRN_DTL represents one return line and is linked to a parent header row in PO_RTRN_HDR through the RETURN_ID column. The table is owned by the GML schema and is documented as VALID in both EBS 12.1.1 and 12.2.2, with a documented physical schema of 53 columns in the 12.2.2 ETRM repository.
The primary key is defined by the index PO_RTRN_DTL_PK on the surrogate column LINE_ID. A second unique index, PO_RTRN_DTL_UK (the object the user searched for), is also defined on the LINE_ID column in the documented metadata. From a Data Vault modeling perspective, the heuristic classification mined from the foreign-key structure is link: the table's identity is dominated by relationships to header, order, receipt, item, and code-reference tables rather than by descriptive attributes. In practical terms, it operates as a transaction detail table sitting between a return header and the source purchasing and receiving documents.
Key Information Stored
The most significant columns are those that identify the line and connect it to the surrounding transaction chain:
LINE_ID— Surrogate primary key and sole column of the unique indexPO_RTRN_DTL_PK(andPO_RTRN_DTL_UK).RETURN_ID— Foreign key toPO_RTRN_HDR; identifies the parent return.LINE_NO— Line sequence number within the return.PO_IDandPOLINE_ID— Foreign keys toPO_ORDR_HDRandPO_ORDR_DTL, tying the return to the original purchase order and line.RECV_IDandRECVLINE_ID— Foreign keys toPO_RECV_HDRandPO_RECV_DTL, linking the return to the originating receipt.ITEM_ID— Foreign key toIC_ITEM_MST/IC_ITEM_MST_B; the returned item.RETURN_QTY1,RETURN_QTY2,RETURN_UM1,RETURN_UM2— Returned quantities in the primary and secondary units of measure; the UM columns referenceSY_UOMS_MST.RMA— Return merchandise authorization reference.RETURN_CODE— Reason code, foreign key toSY_REAS_CDS_B/SY_REAS_CDS.TEXT_CODE— Foreign key toPO_TEXT_HDRfor line notes.REORDER_INDandTRANS_CNT— Flags and counters for return processing.- Standard audit columns (
CREATION_DATE,CREATED_BY,LAST_UPDATE_DATE,LAST_UPDATED_BY) and theATTRIBUTE_CATEGORY/ATTRIBUTE1–ATTRIBUTE30descriptive flexfield columns.
Common Use Cases and Queries
Typical reporting scenarios include tracing returns back to their purchase order and receipt, analyzing return volumes by item or supplier, and reconciling return quantities by reason code. A representative join query is:
- Return header/detail listing: join
PO_RTRN_DTLtoPO_RTRN_HDRonRETURN_IDto obtain header and line information. - Source-document traceability: join to
PO_ORDR_DTLonPOLINE_IDand toPO_RECV_DTLonRECVLINE_IDto relate each return line to the order line and receipt line that generated it. - Reason-code analysis: join to
SY_REAS_CDSonRETURN_CODEto summarize return quantities by reason. - Item enrichment: join to
IC_ITEM_MSTonITEM_IDto report returned items by description or category.
Related Objects
PO_RTRN_HDR— Parent return header, joined onRETURN_ID.PO_ORDR_HDR/PO_ORDR_DTL— Original purchase order header and line, joined onPO_IDandPOLINE_ID.PO_RECV_HDR/PO_RECV_DTL— Originating receipt header and line, joined onRECV_IDandRECVLINE_ID.IC_ITEM_MST/IC_ITEM_MST_B— Item master, joined onITEM_ID.SY_REAS_CDS/SY_REAS_CDS_B— Reason codes, joined onRETURN_CODE.SY_UOMS_MST— Units of measure, joined onRETURN_UM1andRETURN_UM2.PO_TEXT_HDR— Text headers for line notes, joined onTEXT_CODE.
-
Return lines.
-
Return lines.