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

How to convert a sapscript to smart form?

755


You want to backup sapscript layoutsets. How will you do it? Can you perform the download and upload function here? How?

708


Explain the page windows

676


Differentiate between protect and end protect.

721


What the conditional statements used in sapscripts?

681


Explain the paragraph format in layout set.

677


While designing layout for labels Is there any specific parameters or constraints i need to take care (at form as well as print program level)?

1754


HELLO ALL...HOW CAN WE CORRECT AN ERROR IN PRODUCTION...?

1716


How to add extra functionality to a standard print program without touching the print program ?

3039


How can I print logos in sapscripts?

725


How to change the package of a SAP Script ?

3638


What is difference between script and report?

833


How to assign own form to a standard print program?

712


Hello.. i have a question. which signature digital or signature logo we use in smartforms & scripts...? if we use digital sign what are those steps to use it...?

2156


What is script? Its advantages?

745