How will you display top 5 records form an internal table ?
Answers were Sorted based on User's Feedback
Answer / narasareddy
write a simple syntax:
loop at it_tab1 INTO wa_tab from 1 to 5.
ENDLOOP.
Is This Answer Correct ? | 23 Yes | 1 No |
Answer / balaji.p
hi,i think,
1.u have declare another internal table (it_tab2).
2.then u use (append multiple lines of )
3.then write syntax ,
APPEND LINES OF IT_TAB1 FROM N1 TO N2 TO IT_TAB2.
4. THEN write loop at it_tab2 into wa.
write:/--------------------------
endloop.
OR
1.USE READ STATEMENT.
2.IT HAS 2 TYPES A.BY USING INDEX
B.BY USING KEY
3.USE READ STATEMENT USING ,B(BY USING KEY),i MEAN
SYNTAX:READ<INT_TAB>INTO WA WITH KEY KUNNR = '1',
KUNNR = '2',
KUNNR = '3',
KUNNR = '4',
KUNNR = '5'.
4.THEN write loop at it_tab into wa.
write:/--------------------------
endloop
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / rakesh kaushik
Loop at < workarea_name> into <internaltable_name> from 1 to 5 .
Means
loop at itab into it_main into from 1 to 5 .
Is This Answer Correct ? | 5 Yes | 3 No |
Answer / samir
SORT ITAB.
DELETE ITAB WHERE INDEX > 5.
tHEN DISPLAY THE INTERNAL TABLE.
Is This Answer Correct ? | 4 Yes | 4 No |
i think
do 5 times.
read itab with key xxx.
ktab-xxxx = itab-xxxx.
append ktab.
enddo.
it myt work
Is This Answer Correct ? | 2 Yes | 5 No |
What are different tools to report data in SAP? What all have you used ?
How can I debug my sapscript?
I create a box in sap script for the amount in bill,i want to add Rs. word over box,it is possible?
what is the use of outline option?
In what format does sap script store text ?
The logo uploaded using RSTXLDMC programe, Where it is going to store ?
How many styles for there in script?
How do we activate trace in smart forms ?
Different types of ABAP memory ?
What is the difference between the sapscript texts, 'customer &kna1-kunnr&' and '&customer kna1-kunnr&'?
What is difference between script and report?
what is sap ? can i learn sap from home ? future of sap and freshers salary and experience salary ? carrer scope for sap and please tell me indepth details of company listings in chennai ?