Get Example source ABAP code based on a different SAP table
ID DYNPRO% • SET PF-STATUS - list ABAP Statement
SET PF-STATUS>, List Short Reference >
ABAP_SYNTAX SET PF-STATUS status $[OF PROGRAM prog$] $[EXCLUDING fcode$] $[IMMEDIATELY$].>
ABAP Addition 1 ... OF PROGRAM prog> 2 ... EXCLUDING fcode> 3 ... IMMEDIATELY>
What does it do? In list processing, this statement sets the GUI status specified in status> for the display window of the current list, and all subsequent list levels until the next SET PF-STATUS> statement. The statement mostly has the same function as for dynpros>. Unlike the screen layouts> of dynpros, however, every list level is automatically linked with the GUI status that is set for it. If the system returns from displaying a higher list level to a lower list level, the latter is displayed again with the GUI status that was set for it. If the status> of the data object is initial, the standard list status is set, and the additions OF PROGRAM> and EXCLUDING> are ignored. The standard list status> contains predefined list-specific functions whose functions codes are handled by the runtime framework when a screen list is displayed, and produce calls of event blocks in the ABAP program. If event blocks are also defined with AT LINE-SELECTION> or AT PFnn>, further function keys are automatically assigned function codes in the standard list status:
If AT LINE-SELECTION>> is used, the F2> key and the double-click function of the mouse is assigned the function code PICK> and the function text Select>. This function is then also automatically displayed in the application toolbar>.