Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Replace Select/Delete Adjacent duplicate in ABAP for HANA

Former Member
0 Kudos

Hi All,

We are migrating to HANA and need to change ABAP code as per ABAP for HANA guidelines. Please assist in transforming following query.

SELECT <fld1> <fld2> <fld3>... FROM <TABLE> INTO TABLE LT_TAB.

SORT LT_TAB ASCENDING <fld1> <fld2>.

DELETE ADJACENT DUPLICATE FROM LT_TAB.

We need to transform it into single query to eliminate warning message we are getting.

Please assist.

Thanks & Regards,

Rajesh

1 REPLY 1

charlycris
Member
0 Kudos

Hi Rajesh

You can use SELECT DISTINCT statement, whenever no have key field complete.

CCCE.