We are trying to limit the number of values in the Order Reason (VBAK-AUGRU) based on the document type. This is just a dropdown without any special code in the screen, from what I can see. So far I've followed the steps in this post successfully and added a search help exit. There are some inaccuracies in that post but I figured it out and it works perfectly fine. Once.
The problems start when the users back out to the first VA01 screen (where the order type is entered), enter a different order type and hit Enter. In this case the search help exit is not called at all. At first I thought there was something wrong with my code or maybe order type was not in memory. But the search help exit code is simply not executed, unless the users totally back out from the transaction.
There is another SCN post with the same exact problem but it's just "assumed answered" and the longest response doesn't seem to answer the question:
Search Help Exit not triggering in VA01
There are many other posts about the same issue in other transactions, but all are either a different problem or no answer / "answered myself" with no solution. Nothing in the notes either.
Not even sure what to debug - for obvious reasons nothing happens if you do /h before calling the dropdown and exit is called way before that anyway. Completely baffled by such behavior. Any clues on how to force the search help exit to be triggered?
P.S. By the way, there is already a request posted for this functionality, but we need some solution sooner: Order reasons