mani tavva
New Member
Hi i want to take output of the following function and i need to validate the output with if statement to assign value to a local variable in browse of se2013 version.
FUNCTION fgettrlamt3 returns logical(input snbr as character, sline as integer ):
define variable i as logical no-undo format "yes/no".
define buffer sdet for sod_det.
define buffer smst for so_mstr.
find first smst where smst.so_nbr = snbr no-lock no-error.
if available smst then
find first sdet where sdet.sod_nbr = smst.so_nbr no-lock no-error.
if sdet.sod_line = sline then
i = yes.
else i = no.
return i.
END.
please help me regarding this thank you
FUNCTION fgettrlamt3 returns logical(input snbr as character, sline as integer ):
define variable i as logical no-undo format "yes/no".
define buffer sdet for sod_det.
define buffer smst for so_mstr.
find first smst where smst.so_nbr = snbr no-lock no-error.
if available smst then
find first sdet where sdet.sod_nbr = smst.so_nbr no-lock no-error.
if sdet.sod_line = sline then
i = yes.
else i = no.
return i.
END.
please help me regarding this thank you