Application Development 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: 

SORTing problems

Former Member
0 Kudos

Ladies & Gentlemen

I am facing a very peculiar issue with a simple SORT statement.

The scenario is this:

1) Generate a table of Sales Unit for F4 in the sales order item. The default order of display should be Ascending by SU.

Now if i look at std. SAP, the FM F4_ALLOWED_QUANTITY_UNIT gives out a table TQTUNITS, which is sorted as

SORT TQTUNITS BY FLAGSIQTUNIT.

inside the call of FM RV_HELP.

This is all std. SAP and we have just created entries in the table.

This SORT sorts the data correctly 1st time. Howeever, if i change the data at line item, say PLANT the SU's are re determined and then this SORT gives out the data in DESECENDING order. if in debug, i go back to the SORT and F5 it again, it sorts the data correctly. i am really confused why this is happening.

Any pointers to notes or some data data i need to reset or look into?

PS: i have already checked the tables are all refereshed correctly and there are no other SORTS on this very table.

Regards

Ravish

1 REPLY 1

Former Member
0 Kudos

Ladies & Gentlemen

I am facing a very peculiar issue with a simple SORT statement.

The scenario is this:

1) Generate a table of Sales Unit for F4 in the sales order item. The default order of display should be Ascending by SU.

Now if i look at std. SAP, the FM F4_ALLOWED_QUANTITY_UNIT gives out a table TQTUNITS, which is sorted as

SORT TQTUNITS BY FLAGSIQTUNIT.

inside the call of FM RV_HELP.

This is all std. SAP and we have just created entries in the table.

This SORT sorts the data correctly 1st time. Howeever, if i change the data at line item, say PLANT the SU's are re determined and then this SORT gives out the data in DESECENDING order. if in debug, i go back to the SORT and F5 it again, it sorts the data correctly. i am really confused why this is happening.

Any pointers to notes or some data data i need to reset or look into? Any help will be appreciated

Any pointers??

PS: i have already checked the tables are all refereshed correctly and there are no other SORTS on this very table.

Regards

Ravish