Skip to Content
author's profile photo Former Member
Former Member

SORTing problems

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2009 at 10:03 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.