77: FUNCTION get_cost_center(p_req_line_id IN NUMBER) RETURN VARCHAR2
78: IS
79: l_segment_num fnd_id_flex_segments.segment_num%TYPE;
80: l_cost_center VARCHAR2(200);
81: l_account_id gl_sets_of_books.chart_of_accounts_id%TYPE;
82: cost_center_1 VARCHAR2(200);
83: cc_Id po_req_distributions_all.code_combination_id%TYPE;
84: l_segments fnd_flex_ext.SegmentArray;
85: nsegments NUMBER;
98: INTO l_segment_num, l_account_id
99: FROM FND_ID_FLEX_SEGMENTS fs,
100: fnd_segment_attribute_values fsav,
101: financials_system_params_all fsp,
102: gl_sets_of_books gls,
103: po_requisition_lines_all prl
104: WHERE prl.requisition_line_id = p_req_line_id AND
105: --added NVL check for single org, bug#6705513
106: NVL(prl.org_id,-99) = NVL(fsp.org_id,-99) AND