Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

* IN AT END OF.....ENDAT

Dear all,

Could ne 1 plz tell me why does * come while using AT END OF syntax.

eg loop at it_table into wa_table.

some processing.....

at end of wa_table-field.

some code

endat.

Why does * come into work area? Also all numeric fields turn to 0.

This question is just out of Curiosity

Tags:
Former Member 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.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question