AME: set up attribute
I am attempting to set up an attribute for Transaction Type = Purchase Requisition Approval named PO_FUND.
I am using the dynamic SQL below:
select po_ame_setup_pvt.get_accounting_flex('GL_FUND', prd.distribution_id) from po_req_distributions_all prd, po_requisition_lines_all prl where prl.requisition_header_id = po_ame_setup_pvt.get_new_req_header_id(:transactionId) and prl.requisition_line_id = prd.requisition_line_id and nvl(prl.cancel_flag, 'N') = 'N' and nvl(prl.modified_by_agent_flag, 'N') = 'N' order by prd.distribution_id
This SQL has been validated, but produces no results. Our FUND value is located in segment1 field of the GL_CODE_COMBINATIONS table/object.