Sort piciking ticket lines by location in new ADC

SOLVED

In old VXABP function, there is an entry point allow you sort picking ticket by location first. Is there any thing similar that we can sort picking ticket line by location in new ADC function?

SORT_PREP: Used to sort the table containing the lines to pick.

Use this entry point to sort the grid containing the lines to pick during the preparation of a list or of a pick ticket with an ADC.

The pick tickets must not be dissociated: the sort must thus be performed at least by pick ticket, then by location for example.

Context and operating mode

Transaction

There is no transaction in progress.

Log file

There is no open log file.

Different call cases - Significant variables

This entry point is located after the entry of the preparation list or the pick ticket and after the loading of either one into the PREPLAN [PREP] screen.

It is used to sort preparation lines stored in this screen for example by location.

Caution: the sort must always be performed in priority by pick ticket.

Example to sort according to Pick ticket no. / Location: 

Sorta [M:PREP]NBLIG [M:PREP]NBLIG Order By [M:PREP]PRHNUM(index),[M:PREP]LOC(index)

 The significant variables are contained in the PREPLAN [PREP] screen.