* IN AT END OF.....ENDAT
Could ne 1 plz tell me why does * come while using AT END OF syntax.
eg loop at it_table into wa_table.
at end of wa_table-field.
Why does * come into work area? Also all numeric fields turn to 0.
This question is just out of Curiosity
Ramkumar Muthurajan replied
If the INTO addition is used in the LOOP statement to assign the content of the current line to a work area wa, its content is changed upon entry into the AT-ENDAT control structure as follows:
The components of the current control key remain unchanged.
All components with a character-type, flat data type to the right of the current control key are set to character "*" in every position.
All the other components to the right of the current control key are set to their initial value.
When the AT-ENDAT control structure is exited, the content of the current table line is assigned to the entire work area wa.