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 find the driver program for the given sapscript?

559


Where are the sapscript form names?

559


What role does an abap program play in sapscript?

543


When a program is created and need to be transported to production does selection texts always go with it ? if not how do you make sure ? Can you change the CTS entries? How do you do it ?

1464


How do u configure the script?

544






what is maximum columns number in SAPScripts and Smartforms. If How can we move to next page for print.?

2786


What is client concept in sapscript? What is client dependent and client independent?

554


What is the work you have done in the MM module and what programs did you use for creating views in MM ?

2080


Explain compare tool.

553


Explain the main in sapscript

550


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

505


Explain the pages in layout set.

533


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

2007


What is sap script? Difference between sap script and report?

555


Difference between ABAB Memory and SAP Memory ?

1597