SAP® Documentation

Single view

ABAPGET_PF - GET PF

PERFORM Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

GET PF-STATUS

Short Reference



Syntax

GET PF-STATUS status $[PROGRAM prog$] $[EXCLUDINGfcode$].

Additions

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. The following can be specified for status:

  • An existing character-like variable.
  • An inline declaration DATA(var), where a variable of type GUI_STATUS is declared.

If no status is set (empty status is displayed in the GUI window), status is initialized. If the standard list status is set, status is set to the value "STLI".

Addition 1

...PROGRAM prog

Effect

The addition PROGRAM is used to assign the name of the program (where the current GUI status is defined) to the variable prog. prog expects a character-like data object.

Addition 2

... EXCLUDING fcode

Effect

The addition EXCLUDING is used to insert the function codes (which are inactive in the current GUI status) row by row into the internal table fcode. For fcode, an internal table with a flat character-like row type can be specified. Function codes are only defined if they have been deactivated with the relevant addition of the statement SET PF-STATUS. 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.






rdisp/max_wprun_time - Maximum work process run time   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 3476 Date: 20200125 Time: 090803     sap01-206 ( 30 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.