‎2006 Dec 07 11:57 AM
can we sort the internal table in the sapscript .the table is containing the text elements used in the script and is passed by the driver program to the script.
‎2006 Dec 07 11:59 AM
Hi Faisal ,
We cannot sort an internal table in sapscript .
Regards
Aru
‎2006 Dec 07 12:01 PM
‎2006 Dec 07 12:13 PM
???
How is the table [containing text elements] passed by the driver program to the script?
What is the table structure like?
How can a script (FORM) make use of text elements passed as internal table?
If you found that in standard SAP, please give names.
Regards,
Clemens
‎2006 Dec 07 12:19 PM
Hi,
The internal table always can be sorted...
Let me have the structure and necessity for sorting the internal table which will be passed to sapscript.
Regards,
Satya.
‎2006 Dec 07 2:08 PM
"The internal table always can be sorted" and "it never rains in southern California". Yes, indeed.
SORT is ABAP, not SAPSCRIPT. You always need an interface ABAP<==>SAPSCRIPT.
Regards,
Clemens
‎2006 Dec 11 7:44 AM
Hi Satya,
The script is for excise register RG1 .the program is : j_2irrg1 and the form is :j_2i_rg1
I want to sort the T_RG1 table without modifying the driver program.
Thanks ,
‎2006 Dec 07 3:00 PM
Hello
you can not use a SORT command in your SAP-script. However you have always a print program for your sapscript. In that program normally is a loop over a internal table in which is the information which is printed. If you sort this table before the loop your problem is solved.
It is an easy change if you were to change it.
Regards.
‎2006 Dec 11 7:51 AM
Hi Faisal,
It is not possible to sort the data in sapscript. You need to sort the data before passing the value into sapscript.