cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting issue

Former Member
0 Kudos

HI all,

I am having strange problem with SORT command.

I am using this command in Invoice print out with an internal table which contains of fields

VBELN_SO POSNR_SO

VBELN_DELIV POSNR_DELIV

BIL_NUMBER

ITM_NUMBER

POSEX

Sort command is like below

SORT g_it_main_new2 BY vbeln_so vbeln_deliv.

All the times I have VBELN_DELIV = SPACE.

When Internal table has rows more than 10 items in internal table are getting reversed, i.e

Last line of table becoming first line.

Can you guys help me in sorting this issue out.

Thanks,

KK:

Accepted Solutions (1)

Accepted Solutions (1)

GauthamV
Active Contributor
0 Kudos

hi,

try this.

SORT g_it_main_new2 BY vbeln_so vbeln_deliv ascending.

Answers (0)