Skip to Content
0
Former Member
Jun 02, 2006 at 07:25 PM

Regarding Internal Table Manipulation

17 Views

Hi All,

I have a issue in internal table manipilation.

The I.Table decalred as below:

DATA: BEGIN OF i_zzexgen OCCURS 0,

zzalnum LIKE zexport_class-zzalnum,

zzembgr LIKE zexport_class-zzembgr,

zzgennr LIKE zexport_class-zzgennr,

zzexgen LIKE zexport_class-zzexgen,

netwr LIKE vbap-netwr,

END OF i_zzexgen.

Now i am populating data into above internal table as below:

100 ABC 3100 B750 50.00

100 ABC 3100 B750 50.00

100 ABC 3100 B750 50.00

100 ABD 3200 B750 50.00

100 ABD 3200 B850 50.00

100 ABD 3300 B850 50.00

1. Now what i have to do is i need to store the entries where ZZALNUM, ZZEMBGR, ZZGENNR are common by summing up NETWR for the same.

For the above case i should get 3 rows for above combination with summing of NETWR.

2. Now again i need to store the entries where ZZEXGEN are common by summing up NETWR for the same.

For this case i should get 2 rows for above combination with summing of NETWR.

Can anybody give the resolution for the same.

Thanks in advance.

Thanks & Regards,

Prasad.