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

Clearing final internal table data(numeric field)

Former Member
0 Likes
1,044

Hi folks,

iam clearing the internal table data based on some conditions,but one of my field in my internal table is numeric.so that field data is showing in my final internal table as 00000000 and it is appending one empty record.how to clear that record..after appending my final internal table , i wroter clear statement..though it is showing..

Thanks in advance..

6 REPLIES 6
Read only

Former Member
0 Likes
870

hi,

Try to Refresh your internal table.

hope this will help.

Regards,

Neha Rai

Read only

0 Likes
870

hi

The initial value is 0 for numeric.change field datatype as character

In write statemet you can aviod by no-zero.

Read only

0 Likes
870

>

> Try to Refresh your internal table.

> hope this will help.

Yes certainly, it will help her to show the EMPTY Alv on the out-put screen.

Cheers

Amit.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
870

Hello Swetha,

CLEAR will delete the entire table contents & set the fields to the initial value (because of which you get 00000000 for your numeric field).

Can you share the code you are using ?

BR,

Suhas

Read only

Former Member
0 Likes
870

Thanks solved...

i have changed the final internal table field as character type...

Read only

Former Member
0 Likes
870

hi shweta,

with clear statement , your table will set to initial value...same is the case is with refresh...since one field is numeric its initial value is 000000, u can change the daata type from numeric to other data type...or you can copy the numeric value to other data field value,if you dont need the table henceforward you can use free command to free the table.

thanks,

tanmaya