有没有办法在snocount不使用SORT语句的情况下找到最大值?
TYPES: BEGIN OF ls_student1,
snocount(5) TYPE n,
id TYPE i,
property(10) TYPE c,
value(10) TYPE c,
END OF ls_student1.
DATA: wa1 TYPE ls_student1,
lt_table4 TYPE HASHED TABLE OF ls_student1 with UNIQUE key snocount id.
lt_table4 = VALUE #(
( snocount = 1 id = 1 property = 'name' value = 'rambo' )
( snocount = 4 id = 1 property = 'age' value = '23' )
( snocount = 5 id = 1 property = …Run Code Online (Sandbox Code Playgroud)