Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select Data from internal table

Former Member
0 Likes
718

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

6 REPLIES 6
Read only

arul_murugan
Active Participant
0 Likes
684

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

Read only

Former Member
0 Likes
684

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

Read only

Former Member
0 Likes
684

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.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
684

Heard about [LOOP AT itab WHERE|http://help.sap.com/abapdocu_70/en/ABAPLOOP_AT_ITAB_COND.htm#!ABAP_ADDITION_4@4@] ?

Read only

Former Member
0 Likes
684

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.

Read only

ThomasZloch
Active Contributor
0 Likes
684

Welcome to SDN.

Please search for available information before posting, ABAP online help etc., do not post basic questions.

Thread locked.

Thomas