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 |
How to transfer the objects? Have you transferred any objects ?
How can I prevent page-break in the message that is to be displayed?
what is the way to maigrate From sap-script to smartform?
Can i Have Some Realtime Examples on Scripts ?
in the smartform we have a folder option .i don't know what is the use of this folder?if any body knows please answer this question?
What is client concept in sapscript? What is client dependent and client independent?
What are the output types and Tcodes ?
What are the modules in FI that you have worked on ?
Differentiate between sapscript and smartform.
what is the diffrence between window & page window?
what is maximum columns number in SAPScripts and Smartforms. If How can we move to next page for print.?
Is it possible to create a sapscript without a main window?