Skip to Content
0
Former Member
Jan 04, 2007 at 10:03 PM

assigning

32 Views

Hi!

Suppose itab2 contains lots of values lets say about 20.

How can I assign its values to itab3' s all components.

Hopefully, somebody can give helpful idea.

Regards

itab3-one= itab2-firstvalue

itab3-two= itab2-secondvalue

itab3-three= itab2-thirdvalue

itab3-four= itab2-fourthvalue

append itab3

TYPES: begin of typ1, 
       one(10) type c, 
       two(10) type c, 
       three(10) type c, 
       four(10) type c, 
       end of typ1. 
        
TYPES: begin of typ2, 
       first(10) type c, 
       end of typ2. 


data itab type ALSMEX_TABLINE occurs 0 with header line. 
data itab2 type typ2 occurs 0 with header line . 
data itab3 type typ1 occurs 0 with header line .


LOOP AT ..
...
ENDLOOP.