Skip to Content

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

Internal Table and work area

Hi,

in BC400 it is written I shall do something like this

DATA: it_mytable TYPE TABLE OF Z_TABLEA,
wa_mywork LIKE LINE OF it_mytable.

Z_TABLEA is a table existing in the dictionary. I am getting now an error in the ABAP editor:

The internal table "it_mytable" has no header line - explicit 
specification of an output area with "INTO wa" or "ASSIGNING <fs>" is 
required.

Of course in the BC400 sample code they don't use table Z_TABLEA but some other table. Is there a difference between my table and the BC400 table? What is the difference and what do I have to do?

Thanks.

Former Member
replied

while loop .. endloop, you have to use "loop at it_mytable into wa_mywork".

Regards

Vinod

2 View this answer in context

Helpful Answer

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