‎2010 Jun 01 9:47 AM
Dear
i have to some calculation using internal table , nw i have some records in my internal tables , i have to select a multiple no's of records from that internal table . (Not one record ) . How i can select , please help me
‎2010 Jun 01 10:03 AM
Hi,
I think you cant select from the internal table. Instead of that move the records into another internal table and delete the unwanted records based on your condition.
<removed by moderator>
Thanks
Arul
Edited by: Thomas Zloch on Jun 1, 2010 11:28 AM
‎2010 Jun 01 10:08 AM
Hi Shankar,
You can use control Break Statements for doing the calculations in the internal table.
For control break statements search the SCN Forum. You can get lot of examples.
With Regards,
Sumodh.P
‎2010 Jun 01 10:09 AM
Hi,
You have the selected data in internal table. You want to do some calculation not one record it should be multiple record
for that you can use LOOP statemet to do the calculation.
LOOP AT ITAB INTO WA.
DO the callculation here.
ENDLOOP.
‎2010 Jun 01 10:09 AM
Heard about [LOOP AT itab WHERE|http://help.sap.com/abapdocu_70/en/ABAPLOOP_AT_ITAB_COND.htm#!ABAP_ADDITION_4@4@] ?
‎2010 Jun 01 10:11 AM
Check the keyword COLLECT .
Otherwise you have to loop the table and make the summation of the records matching your criteria but this might be slow for big tables.
‎2010 Jun 01 10:29 AM
Welcome to SDN.
Please search for available information before posting, ABAP online help etc., do not post basic questions.
Thread locked.
Thomas