Solution : https://service.sap.com/sap/support/notes/149730 (SAP Service marketplace login required)
Key words :
additional key words sort, sort statement terminates, runtime error exsort_exec_exec_msg, large internal tables, abap runtime environment, environment variables tmpdir, sort large datasets, nt operating system, external sort reads, profile parameter dir_sorttmp
Related Notes :
31559 | NT: Setting environment variables for R/3 kernel |