Application Development and Automation 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: 
Read only

classical reports

Former Member
0 Likes
752

Hi everybody,

I am Srikanth, and i have generated report on customer order details. In that report thier is lot of redundant data.So please explain me how to delete that redundant data with coding.

Thanks and Regards

M.Srikanth

7 REPLIES 7
Read only

Former Member
0 Likes
717

if u want to delete duplicate fields from internal tables , then

delete adjacent duplicates from itab.

Read only

0 Likes
717

1) for deleting duplicates -

use delete adjacent duplicates from itab.

2) if u want to delete redundant data based on some condition then u can use delete with where clause on ur internal table and then print this formatted Internal table.

Amit

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
717

Hi,

Once you framed the output internal table,

delete adjacent duplicates from itab.

Here itab is the internal table name.

Read only

former_member188829
Active Contributor
0 Likes
717

delete adjacent duplicates from itab comparing <field>.

Read only

Former Member
0 Likes
717

hi,

Once you've collected all the data into the internal table you sort the internal table on the key field and delete the duplicate adjacent rows so that you would end up deleting all the reduntant data.

let's suppose the internal table is itab.

after having possessed data into itab.

sort itab.

delete adjacent duplicates from itab.

Read only

Former Member
0 Likes
717

Before that use Sort Statement

SORT <itab> [ASCENDING|DESCENDING] [AS TEXT] [STABLE]

... BY <fi> [ASCENDING|DESCENDING] [AS TEXT]...

Sorts the internal table <itab>. If you omit the BY addition, the table is sorted by its key. You can define a different sort key by using the BY addition. The other additions specify whether you want to sort in ascending or descending order, and whether strings should be sorted alphabetically.

DELETE ADJACENT DUPLICATE ENTRIES FROM <itab> [COMPARING... ].

Deletes adjacent duplicate entries, either by comparing the key fields or the comparison fields specified explicitly in the COMPARING addition.

Read only

0 Likes
717

if u want to delete duplicate fields from internal tables , then

delete adjacent duplicates from itab.