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 pass the variables to forms ?

1452


You want to import graphics into sapscript. How will you do that?

501


How can I create a shaded box?

550


I want to take the back up of my script layout into my hard disk to be loaded later. What should I do?

533


How can I format the time in the sapscript?

558






What is the client concept in SAP? What is the meaning of client independent ?

1495


What is the purpose of sap script? Difference between sap script and report?

617


How to download/upload image sapscripts from & to your pc?

598


What are step loops? How do you program page down page up in step loops?

2002


Different types of ABAP memory ?

1412


How to transfer the objects? Have you transferred any objects ?

1661


What is the difference between EHP 4.0 and ECC 6.0 .Is there any different settings to be done in the system for functional modules?I have done ECC 6.0 version. Please tell me the answer of the question as soon as possible?

10509


What is t.code for script styles?

589


Explain the header data in layout set.

554


What are the different types of windows in sapscripts?

501