‎2007 Dec 13 8:38 AM
plz help me to find out the ans for this q.
which statement can be applied for sorted IT?
1. sort
2.delete.
3.append.
4modify.
5collect
6 read.
Message was edited by:
Atul Bhatia
‎2007 Dec 13 8:41 AM
Hi Atul,
You can use DELETE and READ stmt .
I'm not sure of the rest.
Reward if useful.
Regards,
Chitra
‎2007 Dec 13 8:42 AM
Hi Atul,
If question about which statement sorts the contents of an internal table then the answer sould be the first one i.e " SORT ".
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/content.htm
The above link will help you understand the functionality of the " SORT " statement.
<b>Kindly award points if you found the reply helpful.</b>
Cheers,
Chaitanya.
‎2007 Dec 13 8:46 AM
Hi,
I know that appending (rather than inserting) a new record that doesn't fit the sorting criteria will give a short dump.
But IIRC sorting a sorted table will generate a syntax error in the ABAP error. (you might try to test that though).
You cannot sort a sorted table using the SORT statement. The system always maintains these tables automatically by their sort order. If an internal table is statically recognizable as a sorted table, the SORT statement causes a syntax error. If the table is a generic sorted table, the SORT statement causes a runtime error if the sort key is not the same as an extract of the beginning of the table key, you sort in descending order, or use the AS TEXT addition. In other words, the SORT statement is only allowed for generic internal tables, if it does not violate the internal sort order.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3800358411d1829f0000e829fbfe/frameset.htm
Delete:
you can delete the selected row/rows from the table
Append:
By this you can append an record at the end if only whenthe internal table is a standard table
Read:
we can read the records from the IT
Reward points if found helpful..
Cheers,
Chandra Sekhar.