Skip to Content
0
Former Member
May 23, 2010 at 06:25 AM

Moving a field to a struct

39 Views

Hi all,

The cdpos has a field tabkey which is equalent to the concatented fields(client + BOM type + BOM + Node + position + counter ie: first 6 fields in the table stpo)

If I create a data type of these stpo fields

TYPES:
  BEGIN OF lty_cdtabkey_str,
   client(3) TYPE c,    
   bomtype(1) TYPE c,     
   BOM(6) TYPE c,      
   nODE(5) TYPE c,  
  POSITION(5) TYPE c, 
 counter(5) TYPE c,   
                
  END   OF lty_cdtabkey_str.
DATA:
  ls_cdtabkey TYPE lty_cdtabkey_str,

and if I make a move like

MOVE itab_cdpos-tabkey INTO ls_cdtabkey.

Will it break it down into the individual fields.

Thanks

K