Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Update technique?

Former Member
0 Likes
420

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

3 REPLIES 3
Read only

Former Member
0 Likes
401

Hi Atul,

You can use DELETE and READ stmt .

I'm not sure of the rest.

Reward if useful.

Regards,

Chitra

Read only

Former Member
0 Likes
401

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.

Read only

Former Member
0 Likes
401

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.