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

SORT statement

Former Member
0 Likes
397

Hi All,

I have a requirement to sort a internal table like below. Only the last 2 fields as descending. But when I check in debug it is not working. What is wrong in this syntax.

SORT i_conterms BY oicontnr posnr vkorg kunag kunwe werks matnr

ascending season_effdate season_expdate descending.

Thanks in advance for all your help.

Regards,

Chandra Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
376

Hi,

Try changing it like this:

SORT i_conterms BY oicontnr posnr vkorg kunag kunwe werks matnr

ascending

season_effdate <b>descending </b>

season_expdate <b>descending</b>.

regards

Subramanian

3 REPLIES 3
Read only

Former Member
0 Likes
377

Hi,

Try changing it like this:

SORT i_conterms BY oicontnr posnr vkorg kunag kunwe werks matnr

ascending

season_effdate <b>descending </b>

season_expdate <b>descending</b>.

regards

Subramanian

Read only

Former Member
0 Likes
376

Hi

You can also try descending fields frst then ascending fields

SORT i_conterms BY season_effdate season_expdate descending

oicontnr posnr vkorg kunag kunwe werks matnr

ascending.

  • Please mark Useful Answers

Read only

gopi_narendra
Active Contributor
0 Likes
376

If not you can just give by this also.

sort I_CONTERMS by season_effdate season_expdate <b>descending</b>.

Regards

Gopi