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

Issue with clearing internal table

Former Member
0 Likes
809

Hi Gurus,

I am working on an issue, where when we run a std. report we see social number of the employee on the output screen, when I debugged the program I found that there are 2 internal tables where we are putting this SSN. I tried to clear the SSN at the both the places like:

loop at it_table.

clear it_table-SSN.

Endloop.

but still when I ran the report I am seeing social there. so can you please give me any idea of what I am doing wrong?

Thanks,

Rajeev Gupta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
780

Hi rajeev,

even after ur clearing if the field is still populating it means again its filling the particular field in the later place.

1) keep ur code and while debuging just click on watchpoint and give ur field name go with f8 it will take u to the place the field is filling..

2) below that place clear that field and modify the table..

6 REPLIES 6
Read only

former_member189629
Active Contributor
0 Likes
780

Try this

loop at it_table.

clear it_table-SSN.

MODIFY it_table INDEX sy-tabix

Endloop.

Read only

Former Member
0 Likes
780

Hi Rajiv,

you are clearing only the Header of the internal table.

Once you clear header you have to modify the internal table rgt?

Read only

0 Likes
780

Hi Venkat and NW... you are right. but even this didn't help and I am still getting the SSN ..ny more clues

Read only

0 Likes
780

Do CLEAR right before WRITE step ot build fieldcat step.

Read only

Former Member
0 Likes
780

Hello:

Determine where you are physically writing out the SSN number. Once you have found that just clear that file out each time the loop grabs a new record from within the internal table.

Hope this helps.

John

Read only

Former Member
0 Likes
781

Hi rajeev,

even after ur clearing if the field is still populating it means again its filling the particular field in the later place.

1) keep ur code and while debuging just click on watchpoint and give ur field name go with f8 it will take u to the place the field is filling..

2) below that place clear that field and modify the table..