on 01-20-2008 8:46 AM
in an internal table(I_VEPO) i have two reocords with fields SDABW , TKNUM, VBELN, ERDAT , and TOT_VALUE(hardcoded). these reocords are having same data except TOT_VALUE so i want to make it single records by adding their TOT_VALUE, please giv me the soution how to work on this.
1 PS2 13108970 202.50
2 PS2 13108970 11,988.00
must be
PS2(SDABW) 13108970(TKNUM) 12,190.50(TOT_VALUE)
Solved
Edited by: sam johny on Dec 2, 2009 8:13 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Try the collect keyword (F1 on it), or do it manually using loop & add.
Ash Thomas
Sap Abap Developer & Sap Abap Programmer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ps. Or, try looping & adding then putting the values into a new internal table. You can create an identical one in one line:
data: t_new like t_old occurs 0 with header line.
Kind regards
Ash Thomas
<a href=http://www.ashthomas.com>Sap Abap CV & Sap Abap Resume</a>
<a href=http://www.ashthomas.com>www.ashthomas.com</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.