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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kumar
data qqq;
input name $ total;
cards;
qq 22
ww 33
qq 22
ee 44
rr 33
ww 44
;
run;
data k;
set qqq;
if _N_ in(2 4) then delete;
run;
proc print;
run;
Is This Answer Correct ? | 0 Yes | 0 No |
Is it possible to bring select option in module pool screens?
Can we handle two transaction codes in the same program using call transaction bdc input method? : abap bdc
How to fetch all the data from the Internal table?
What is the name of the system variable that holds the contents of the selected line in interactive reporting?
What are the abap/4 commands that link to a layout set?
What are the page windows? How many main windows will be there in a page window?
Suppose the client wants me the vacancy to be displayed on a website as well as ess. How should I do it? : sap abap hr
A field containing quantity amounts (data type quan) must be assigned to a reference table and a reference field. Explain? : abap data dictionary
If your project is support project ? when is your implementation has completed ?
What are the major steps will you use for tuning?
What are subroutines? : abap modularization
How do you delete duplicate records from internal table?