‎2005 Dec 14 2:57 AM
Guys,
I have a few important questions. My first question is how can I sort my internal table that is inside a table control? I would like it that if I press a button, it would sort either ascending or descending order.
Also, Is there a way to diplay usign ALV? so for example when I press a button all the data from my table would be shown via ALV and/or sapscript?
examples preferred...
Thanks!
‎2005 Dec 14 4:32 AM
Hi viraylab,
1. y first question is how can I sort my internal table that is inside a table control?
For this u will have to capture the function
code and use the syntax
SORT Itab.
Then accordingly u will have to refresh/populate
your table control (if u require)
2. Also, Is there a way to diplay usign ALV?
Well, For this again, u have to write
your own code
using the routine FMs
REUSE_ALV_LIST_DISPLAY
REUSE_ALV_FIELDCATALOG_MERGE
and passing the requisite internal table.
3. and/or sapscript?
Directly Not Possible !
There is no way like ALV FMs
which can show data in internal table
in the form of a sapscript !
Yes, one must SPECIFICALLY design a sapscript
and its driver program, to show the data. Only
then can it be called to show sapscript,
OTHERWISE NOT.
Hope it helps.
Regards,
Amit M.
‎2005 Dec 14 4:54 AM
can you guys give me examples on my questions. I'm just a beginner on SAP.Thanks!