LOOP AT t_customres INTO DATA(ls_cust)

     GROUP BY  ( route = ls_cust-route

                 city  = ls_cust-city )

      ASCENDING.

 

  WRITE: / ls_cust.

 

  DATA(members) = VALUE tt_customers( ).

  LOOP AT GROUP ls_cust ASSIGNING FIELD-SYMBOL(<route>).

    members = VALUE #( BASE members ( <route> ) ).

  ENDLOOP.

 

  LOOP AT members INTO DATA(ls_member).

    WRITE: /(5)", ls_member-customer, ls_member-name.

  ENDLOOP.

  SKIP 2.

ENDLOOP.



Serkan AKKAVAK

Computer Engineer BSc

SAP Department Deputy Manager

Contact : serkurumsal@yandex.com