Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

simple abap query doubt

Hello all,

i have one simple doubt plz help.

data:begin of itab1 occurs 0,

psnfh like plfh-psnfh,

end of itab1.

select psnfh into table itab1

from plfh

where plnty = 'N'

AND plnNR = group_number


and loekz ne 'X'

and plnkn = t_plnkn.

this query is working fine.

now i have 3 psnfh entires(0010 0020 0030) requirement is that i have choose maximum of these that is 0030 and wanna add 0010 to it everytime.....and may be it will be better if i can save it in a variable.......

plz help in this syntax......i know we can use MAX function but it will be better if u can give that exact 2-3 lines of code.

Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question