0% found this document useful (0 votes)
176 views

PL/SQL FoB Queries

The document contains SQL queries to look up codes from reference tables for FOB point and freight terms on order headers, count planners by organization, and count enabled freight term lookup types.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views

PL/SQL FoB Queries

The document contains SQL queries to look up codes from reference tables for FOB point and freight terms on order headers, count planners by organization, and count enabled freight term lookup types.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

FOB Point Code select lookup_code from ar_lookups where lookup_type = 'FOB' and enabled_flag = 'Y' and upper(meaning)

= upper(oe_order_headers_all.fob_point_code) Freight terms select lookup_code from apps.oe_lookups where upper (lookup_type) = 'FREIGHT_TERMS' and enabled_flag = 'Y' and upper (lookup_code) = upper (oe_order_headers_all.freight_terms_code) select organization_id, count(*) from apps.mtl_planners where DISABLE_DATE IS NU LL group by organization_id select count(*) from apps.oe_lookups where upper(lookup_type) = 'FREIZGHT_TERMS' and enabled_flag='Y'

You might also like