‎2009 Oct 22 8:23 PM
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
‎2009 Oct 23 8:03 AM
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..
‎2009 Oct 22 8:26 PM
Try this
loop at it_table.
clear it_table-SSN.
MODIFY it_table INDEX sy-tabix
Endloop.
‎2009 Oct 22 8:31 PM
Hi Rajiv,
you are clearing only the Header of the internal table.
Once you clear header you have to modify the internal table rgt?
‎2009 Oct 22 8:35 PM
Hi Venkat and NW... you are right. but even this didn't help and I am still getting the SSN ..ny more clues
‎2009 Oct 22 8:37 PM
‎2009 Oct 22 9:06 PM
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
‎2009 Oct 23 8:03 AM
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..