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
How to edit standard SAPSCRIPT called by standard program ?
What do you mean by symbols?
Explain the pages in layout set.
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...?
Where do u set the default paragraph?
How does check, continue and exit commands work in loop and end Loop.
If u want to add any fields in the layout what is the procedure you follow ?
What is the use of rstbserv program?
You want to backup sapscript layoutsets. How will you do it? Can you perform the download and upload function here? How?
Is it possible to create a sapscript without a main window?
I want few sample tech spec's in ABAP
What is difference between window & a page window?
What is the use of rscltcop program?
HELLO ALL...HOW CAN WE CORRECT AN ERROR IN PRODUCTION...?
What are the various text formatting options in sapscript?