Below is Simple Query to display Sales Order Line Number in Oracle Order Management
select to_char(l.line_number) ||
decode(l.shipment_number, null, null, '.' ||
to_char(l.shipment_number))||
decode(l.option_number, null, null, '.' ||
to_char(l.option_number)) ||
decode(l.component_number, null, null,
decode(l.option_number, null, '.',null)||
'.'||to_char(l.component_number))||
decode(l.service_number,null,null,
decode(l.component_number, null, '.' , null) ||
decode(l.option_number, null, '.', null ) ||
'.'|| to_char(l.service_number))||','||
h.order_number
from
oe_order_headers_all h
, oe_order_lines_all l
where
h.header_id = l.header_id
and l.open_flag='Y'
Excellent! Thank you very much!!
ReplyDeletenice!but why should option flag be 'Y'?
ReplyDeleteI set Open flag = Y to see the data for open lines only
ReplyDeleteThanks a lot!
ReplyDeleteIf you just call this function, it does all the work for you: apps.oe_order_misc_pub.get_concat_line_number(line_id)
ReplyDelete