Skip to Content
0
Former Member
May 21, 2008 at 09:54 AM

Internal Tables Appending

24 Views

Hi Gurus,

Please solve this problem.

I have 2 internal tables 1) test_hdr

2) test_txt

Both fields have common field 'CHANGENR'.

I have to restrict test_txt table based on test_hdr.

Delete all test_txt records if test_hdr changenr is not equal to test_txt changenr

test_hdr

Changenr Field 2 Field 3 Field 4

111

222

333

Test_txt

Changenr Field 6 Field 7 Field 8

111

111

111

111

555

555

666

o/p internal table

Changenr Field 6 Field 7 Field 8

111

111

111

111

Declared another internal table(delta_txt) and filling this 3rd table if condition satisfies.

Is there any easy way of doing this, without using 3rd table. Directly deleting from the second table?

Thanks & Regrds,

Radha.