Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Screens →  ABAP Statements for Screens 

GET PF-STATUS

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


GET PF-STATUS status [PROGRAM prog] [EXCLUDING fcode]. 

Extras

1. ...PROGRAM prog
2. ... EXCLUDING fcode

Effect

This statement assigns data object status the currently set GUI status, whose name is also available in the sy-pfkey system field. For status, you must specify a character-like variable. If no status is set (empty status is displayed in the window), status is initialized. If the standard list status is set, status is set to the value "STLI".

Addition 1

...PROGRAM prog

Effect

Use the PROGRAM addition to assign the name of the program (where the current GUI status is defined) to variable prog. For prog, a character-like data object is expected.

Addition 2

... EXCLUDING fcode

Effect

Use the EXCLUDING addition to insert the function codes (which are inactive in the current GUI status) row by row into the internal table fcode. For fcode, you can specify an internal table with a flat character-like row type. Function codes are only defined if they have been deactivated with the relevant addition of the SET PF-STATUS statement. Statically deactivated function codes in the GUI status are not defined.


Example

Determine the current status in a PAI module.

DATA: status TYPE string, 
      prog  TYPE string, 
      fcode  TYPE SORTED TABLE OF sy-ucomm 
             WITH NON-UNIQUE KEY table_line. 
... 
MODULE user_command_100 INPUT. 
  ... 
  GET PF-STATUS status PROGRAM prog EXCLUDING fcode. 
  ... 
ENDMODULE.