How to Hide the Last Search Results in Certain Transactions?

How to Hide the Last Search Results in Certain Transactions?

Clarification of the Question

Let’s begin with a specific feature related to how search tools work in transactions like PA20, PA30, PA40, PPPD, PPPM, PPOME, etc.
This feature is as follows:
After using one of the available search tools in the mentioned transactions and retrieving the desired results, the next time you enter the same transaction, you will see:

  1. The active search tool that was used during your previous session in this transaction;
  2. The last search results displayed on the screen, retrieved from the use of the search tool mentioned in point #1.

To better illustrate the paragraph above, a short video clip is provided.

0:00
/1:13

This system behavior can be easily changed.

Solution

To address this issue, the vendor offers a few recommendations, as usual, documented in an SAP Note:

See SAP Note 1997384 - How to forget the previous search results in transaction codes like PA20, PA30, PA40, PPPD, PPPM, PPOME, etc.

In short, to change this behavior, you need to activate the SPA parameter OM_OBJM_NO_LAST_SEAR in the user’s default settings.

See the note: SPA/GPA Parameters in ABAP

After that, the system will handle everything automatically. A video fragment demonstrates this behavior.

0:00
/1:16