GET PF-STATUS pfstat.
1. ... PROGRAM
prog
2. ... EXCLUDING itab
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.
...PROGRAM prog
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 ...).
...EXCLUDING itab
The functions in the status that are currently inactive are placed in the internal table
itab (see SET PF-STATUS ... EXCLUDING ...).
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'.
Use GUI Status