GET

Basic form 10

GET PF-STATUS pfstat.

Extras:

1. ... PROGRAM prog

2. ... EXCLUDING itab

Effect

Returns the name of the current status to field pfstat. You set the status using SET PF-STATUS pfstat...). The contents of pfstat are then identical to those of SY-PFKEY.
However, unlike SY-PFKEY, using GET PF-STATUS allows you to determine the name of the program to which the status belongs, and also its inactive functions - not just the name of the status itself.

Addition 1

...PROGRAM prog

Effect

The name of the program to which the current user interface status belongs is placed in the prog field (see SET PF-STATUS ... OF PROGRAM ...).

Addition 2

...EXCLUDING itab

Effect

The functions in the status that are currently inactive are placed in the internal table itab (see SET PF-STATUS ... EXCLUDING ...).

Example


DATA: STATUS TYPE SY-PFKEY,
      PROG   TYPE SY-REPID,
      EXCL_TAB TYPE TABLE OF RSEXFCODE.

SET PF-STATUS 'ABCD' OF PROGRAM 'TESTPROG' EXCLUDING 'XYZW'.

...

GET PF-STATUS STATUS PROGRAM PROG EXCLUDING EXCL_TAB.

STATUS now has the contents 'ABCD', PROG contains 'TESTPROG', and EXCL_TAB contains a line with the contents 'XYZW'.

Related

SET PF-STATUS

Additional help

Use GUI Status