14: function BeforeReport return boolean is
15: begin
16:
17: DECLARE
18: l_sort po_lookup_codes.displayed_field%type;
19: l_yes_no fnd_lookups.meaning%type;
20:
21: BEGIN
22: /*SRW.USER_EXIT('FND SRWINIT');*/null;
27: IF P_ORDERBY is NOT NULL THEN
28:
29: SELECT displayed_field
30: INTO l_sort
31: FROM po_lookup_codes
32: WHERE lookup_code = P_ORDERBY
33: AND lookup_type = 'SRS ORDER BY';
34:
35: P_ORDERBY_DISP := l_sort;