How will you display top 5 records form an internal table ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sapscript? What is its purpose?

561


Can we print bar codes in SAP only from ZEBRA printer ?

1588


Hello ABAP GURUS.. I WANT TO KNOW DO WE DEVELOPE SCRIPTS FROM SCRATCH OR WE USE STANDARD SCRIPTS OF SAP..? AND WHAT LOGO WE HAVE IN STANDARD IN LOGO WINDOW OF STANDARD SCRIPT BUSINESS DOCUMENTS...?

2542


What are the advantages and disadvantages of ABAP/4 query tool ?

1694


Explain the paragraph format in layout set.

531






What do you mean by symbols? What are their different types?

518


How can I debug my sapscript?

545


How many styles for there in script?

555


Can we have more than one Selection Screen and how ?

1458


If u want to add any fields in the layout what is the procedure you follow ?

1698


How to print page numbers in a script through SE38 Program ?

3350


What are different tools to report data in SAP? What all have you used ?

2298


How to debug a script?

592


How to insert symbols in smart form?

554


Where are the sapscript form names?

555