Development (ABAP Development WorkBench, ABAP/4 programming)
Moderators: Snowy, thx4allthefish, YuriT, Gothmog
- Posts: 1
- Joined: Thu Jan 28, 2010 12:52 am
I have an internal table in which i have to calculate the values of 1 column into another column based on another column. For example....
Code: Select all
COL1 COL2 COL3(sum of col2 based on col1)
120 1300 4500
121 2000 3000
122 3000 3000
Plz tell me..how can I do this.
- Posts: 2409
- Joined: Thu Apr 29, 2004 3:33 pm
I suppose you read the 'basic forum rules' when you accepted them during the registration ?
you're certainly not in the right subforum.
- Posts: 4467
- Joined: Sun Oct 20, 2002 3:08 pm
- Location: New Zealand
How did you manage to fit all those columns internally?
Putting the Chur in Christchurch, bro!
- Posts: 5694
- Joined: Sat Oct 26, 2002 6:18 pm
- Location: barolo barrel
moved from GD.
I give up. Humanity isn't worth saving. Why is there never a Vogon Constructor Fleet around when you really need one?
- Posts: 7116
- Joined: Thu Oct 31, 2002 4:47 pm
- Location: Liverpool
swright wrote:How did you manage to fit all those columns internally?
tsk tsk. Stop taking advantage of (apparently) non-native english speaking people.
Use a second itab and the COLLECT statement.....
- Posts: 27
- Joined: Mon Jun 16, 2008 2:11 pm
you should try BW to solve your problems...LOL
- Posts: 797
- Joined: Wed Dec 18, 2002 5:55 am
- Location: Hyderabad, India
You can also use 'AT END OF col1' to get totals then use MODIFY to populate value in Col3.