12-23-2008 7:08 AM
Hi,
I have a clarification in field-group. In the below program, Can I see the accumulated values of function-groups like an internal table?
REPORT demo_extract.
DATA: position(3) TYPE n,
name(15),
units TYPE i.
FIELD-GROUPS: header, product.
INSERT position INTO header.
INSERT name units INTO product.
position = '001'.
name = 'Screw'.
units = 500.
EXTRACT product.
ADD 1 TO position.
name = 'Nail'.
units = 200.
EXTRACT product.
ADD 1 TO position.
name = 'Nail'.
units = 300.
EXTRACT product.
ADD 1 TO position.
name = 'Hammer'.
units = 400.
EXTRACT product.
SORT.
" >> AT THIS POINT, can I see the CONSOLIDATED(like internal table) values of FGs?? <<
LOOP.
AT product.
WRITE: / position, name, units.
ENDAT.
ENDLOOP.
12-23-2008 10:59 AM
12-24-2008 4:21 AM