Skip to Content
0
Former Member
Nov 21, 2008 at 04:28 PM

Internal table aggregation

1628 Views

HI SDN,

I am bringing the data into internal table like this

TYPES: BEGIN OF ty_EKAB,

i_CONTRACT LIKE /BIC/AZPUR_OAP00-CONTRACT,

i_CONT_ITEM LIKE /BIC/AZPUR_OAP00-CONT_ITEM,

i_ZNET_VAL LIKE /BIC/AZPUR_OAP00-/BIC/ZNET_VAL,

i_ZORDR_QTY LIKE /BIC/AZPUR_OAP00-/BIC/ZORDR_QTY,

END OF ty_EKAB.

DATA: IT_EKAB TYPE SORTED TABLE OF ty_EKAB

WITH NON-UNIQUE KEY i_CONTRACT i_CONT_ITEM ,

WA_EKAB TYPE ty_EKAB.

SELECT CONTRACT CONT_ITEM /BIC/ZNET_VAL /BIC/ZORDR_QTY INTO

TABLE IT_EKAB FROM /BIC/AZPUR_OAP00.

and Data looks like this

4600000000 00040 54,635.00 1.000

4600000000 00040 40,365.00 1.000

4600000002 00010 0.00 0.000

4600000002 00010 91,200.00 1.000

4600000002 00010 31,554.00 1.000

My question : Is there any statement on Internal table which aggregate the values with same CONTRACT CONT_ITEM .

Thanks