GET PF-STATUS

GET


Additions:
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.

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 ... ).

Effect

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

DATA: STATUS LIKE SY-PFKEY, 
	PROG   LIKE SY-REPID, 
	EXCL_TAB LIKE RSEXFCODE OCCURS 1. 
 
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