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 |
How to upload more than 2GB file from External Source to SAP?
What is repository info. Systems? : abap data dictionary
What are control commands in sap scripts?
What is page window?
which processor controls the flow logic of an online program?
How you will catch errors in call transaction?
How to write file to application server?
What are the check tables and value tables?
If BDC is developed in Development system with no data , where do we do the recording?
What are the different methods of passing data? : abap modularization
what is inline documnetation?
Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called?