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

Delete the gaps in internal table

Former Member
0 Likes
504

hi all,

in the internal table there few gaps, gaps need to be removed,

the final internal table is as below.

gt_final[]. (final internal table)

user    plant  bukrs

100      200    -
100      300    -
100       -       10
100       -       20
100       -       30

the output should be as

user    plant  bukrs
100      200    10
100      300    20
100       -        30

the gaps should be removed , for the same user there are 5 line items because of gaps, if we remove the gaps and adjust there are only 3 line items for the same user.

please suggest the code to delete the gaps.

thanks in advance.

Edited by: Matt on Aug 24, 2010 10:29 AM - fixed formatting

hi all,

in the internal table there few gaps, gaps need to be removed,

the final internal table is as below.

gt_final[]. (final internal table)

user    plant  bukrs

100      200    -
100      300    -
100       -       10
100       -       20
100       -       30

the output should be as

user    plant  bukrs
100      200    10
100      300    20
100       -        30

the gaps should be removed , for the same user there are 5 line items because of gaps, if we remove the gaps and adjust there are only 3 line items for the same user.

please suggest the code to delete the gaps.

thanks in advance.

Edited by: Matt on Aug 24, 2010 10:29 AM - fixed formatting

2 REPLIES 2
Read only

Former Member
0 Likes
468

it isn;t very clear whether what your table structure is and what currently you have and what you need?

Regards,

Lalit mOhan Gupta

Read only

deepak_dhamat
Active Contributor
0 Likes
468

hi ,

first tell me how you got this line entries

regards

Deepak.