The summary stock traceability function manages the stock fields identifier 1 (PALNUM), identifier 2 (CTRNUM) and the status.
To avoid this management and then improve the stock traceability inquiry readability, you can now use the entry point AGREG_TRK in the script STKLIB.
If you set the variable GPE=1 in the entry point, the identifiers PALNUM and CTRNUM will no longer be considered during the generation of the summary traceability records in the table STOTRK.
Warning: this behaviour is not retro-active.
This entry point is available from the release 2022 R2.