Skip to Content
0
Former Member
Jul 05, 2006 at 05:39 PM

Confused with the internal table

43 Views

Hello,

I am getting confused again by the usage of work space for an internal table.

Say for example I have a internal table itab that is defined as:

DATA:ITAB TYPE STANDARD TABLE OF Txxx.

Then I define a work space for the internal table.

DATA:WS_ITAB LIKE ITAB.

Now say for example, I would like to fill in some data to this internal table, can I do:

WS_ITAB-FIELD1 = 3.

APPEND WS_ITAB INTO ITAB INDEX 1.

where FIELD1 is a valid field in Txxx?

If not, how should I accomplish my goal? Thanks a lot!