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

Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

1582


What are the different abap/4 editors?

568


What is the significance of technical settings (specified while creating a table in the data dictionary) ?

584


Difference between function group and function module?

643


How to pass data from list to report?

564






1/ How do u apprach if error occur in sending idocs ? 2/ where u assigned process code ?

1464


How can we use / display table in a screen?

641


How many primary keys can be created for a table?

618


Persistent class

899


What is asynchronous and synchronous update?

578


What are differences between at selection-screen and at selection-screen output?

772


Can a filed occur in several field groups? : abap modularization

655


Which objects are independent transport objects? : abap data dictionary

576


Explain what is the step-by-step process to create a table in data dictionary?

627


What are conversion routines? : abap data dictionary

586