Hi Gurus,
I have 250 records in an internal table, tell me how to
randomly delete the each 5th record...i,e 5,10,15,20 like
this.

Answer Posted / samrat

Do.
T = sy-index * 5.
Read table itab index T.
If sy-subrc = 0.
Delete itab index T.
Else
EXIT.
ENDDO.

Is This Answer Correct ?    30 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is projection view?

541


What is sap abap data classes?

609


What are clustered tables?

616


What is dynamic action? : sap abap hr

641


what are the 2 other types of views, which are not allowed in release 3.0? : abap data dictionary

618






when u prefer lsmw?

624


Explain what is sap script? What is the purpose of sap script? Difference between sap script and report?

536


How do you restrict the data to be entered in the payroll area? : sap abap hr

533


what is sales order confirmation and how can do design it in webdynpro. what is Tcode for the same?

1999


What are the tcodes for performance tuning?

911


A field-groups statement or an insert statement reverses storage space and transfers values. State true or false. : abap modularization

571


What are types of select statements?

579


Explain how data is stored in cluster table?

666


What is table pool?

583


What are base tables of an aggregate object?

623