SAP GET PF ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID DYNPRO%
• GET PF-STATUS ABAP Statement

GET PF-STATUS
Short Reference

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

ABAP Addition
1 ... PROGRAM prog
2 ... EXCLUDING fcode

What does it do?
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) or FINAL(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.
• PROGRAM GET PF-STATUS

ABAP Addition

What does it do?
The addition PROGRAM is used to assign the name of the program in which the current GUI status is defined to the variable prog. prog expects a character-like data object.
• EXCLUDING GET PF-STATUS

ABAP Addition

What does it do?
The addition EXCLUDING is used to insert the function codes which are inactive in the current GUI status line by line into the internal table fcode. For fcode, an internal table with a flat character-like line type can be specified. Function codes are only determined 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 ABAP Coding

Determination of the current status in a PAI module.
ABEXA 00303
ABAP_EXAMPLE_END

Return to menu