Interview Questions

How to eliminate duplicate entries in internal tables?

SAP Reports,SAP DB,ALE, SAP Tables questions and answers


(Continued from previous question...)

How to eliminate duplicate entries in internal tables?

Answer1:
SORT itab.DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS.

Answer2:
The following syntax:
SORT itab <fieldname>.
delete adjcent duplicates from itab comparing .

(Continued on next question...)

Other Interview Questions