By using SE16 or SE16N tcodes, it will give short dump when trying to execute the non primary key tables. We can solve this issue by following these steps here.
Restricting Range Completely in Selection Option
We can use the FM SELECT_OPTIONS_RESTRICT, which does the job for us by removing the ranges tab and therefore completely restricting the range in select option.
Restricting Range in Selection Option
We can use the FM SELECT_OPTIONS_RESTRICT, which does the job for us by removing the ranges tab and therefore completely restricting the range in Select Option.