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 |
Can we add new records to the already displayed ALV list.
The logo uploaded using RSTXLDMC programe, Where it is going to store ?
hi, can you please tell me some thing about "Worksoft Certify Tool"? how it is useful??
How many main windows can be created for a script?
What do you mean by symbols?
how we can debug in sap scipt
What is the use of rstbserv program?
Will a script be activated without page format ?
What is the client concept in SAP? What is the meaning of client independent ?
How can I print logos in sapscripts?
4. Whatis the outbnd process code for quotion
Explain composer.