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: 

issue in deleting null and initial value from Ztable

naveen_yadavs
Explorer
0 Kudos

HI Guys,

I have these fields in Z table and ABCDE are my key fields, and in B field

there is a INITIAL and a NULL value.

I want wo remove that record from Z-table where ABCDEF are same and G = 'N'.

but i dont able to delete records bcz in my B column there is initial and a null value.

A             B                             C                                 D                   E             F             G

2506   initial         000000000100103003      23.05.2016             Z310        5.000        N

2506   null            000000000100103003      23.05.2016            Z310        5.000        S

2503   null            000000000100103003      23.05.2016            Z310        5.000        N

2503   initial         000000000100103003       23.05.2016           Z310        5.000         S

Thanks in advace

3 REPLIES 3

former_member183164
Active Participant
0 Kudos

Hi,

Use this

DELETE ADJACENT DUPLICATES FROM itab COMPARING ALL FIELDS.

for specific,

DELETE ADJACENT DUPLICATES FROM itab COMPARING B




0 Kudos

i dont want to delete from internal table but from z-global table, and adjacent duplicate entries are not work for this bcz key field have a null and a initial value.

0 Kudos

Hi Naveen,

Is B field is one your primary or key field?