f_get_dft_pf.srf 432 B

123456789101112131415161718192021
  1. $PBExportHeader$f_get_dft_pf.srf
  2. global type f_get_dft_pf from function_object
  3. end type
  4. forward prototypes
  5. global function string f_get_dft_pf (long arg_mtrlid)
  6. end prototypes
  7. global function string f_get_dft_pf (long arg_mtrlid);string rst_pfcode
  8. select pfcode into :rst_pfcode
  9. from u_mtrl_pf
  10. where mtrlid = :arg_mtrlid
  11. and ifdi = 0
  12. and ifdft = 1;
  13. if sqlca.sqlcode <> 0 then rst_pfcode = ''
  14. return rst_pfcode
  15. end function