Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Processing Flow of Field-Group??

asik_shameem
Active Contributor
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

Yes, it is possible

0 Kudos

Hi Saipriya,

Could you explain me how?

br

Asik.