SAP ABAP Class CL_USER_DEFAULTS (User Settings)
Hierarchy
☛
SAP_ABA (Software Component) Cross-Application Component
⤷
CA-GTF-TS-BRHF (Application Component) Basis-Related Help Functions, Appl. Log, Formula Intepreter
⤷
BALV_ADDON (Package) Additional Functions with ALV Grid

⤷

⤷

Properties
Class | CL_USER_DEFAULTS | |
Short Description | User Settings | |
Super Class | ||
Instantiability of a Class | 1 | Protected |
Final |
General Data
Message Class | ||
Program status | ||
Category | 0 | |
Package | BALV_ADDON | Additional Functions with ALV Grid |
Created | 20030425 | SAP |
Last change | 20110908 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_USER_DEFAULTS has no interface implemented.
Friends
Class CL_USER_DEFAULTS has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Constant | Protected | Type reference (TYPE) | XFELD | 'X' | Constant 'X' | 20030425 | |
2 | ![]() |
Instance attribute | Private | Type reference (TYPE) | USRDFLT_ITAB | User Settings - Buffer | 20030425 | ||
3 | ![]() |
Instance attribute | Private | Type reference (TYPE) | USRDFLT_ITAB | User Settings - DB Status | 20030425 | ||
4 | ![]() |
Constant | Public | Type reference (TYPE) | SY-UCOMM | 'UD_CLOSE_DFLT_GRID' | Close ALV Grid | 20030507 | |
5 | ![]() |
Static Attribute | Private | Type reference (TYPE) | TY_INST_LN | Line of Instance Table | 20030425 | ||
6 | ![]() |
Static Attribute | Private | Type reference (TYPE) | TY_INST_TAB | Instance Table | 20030425 | ||
7 | ![]() |
Instance attribute | Public | Type reference (TYPE) | USRDFLT_KEY | Key for User Settings | 20030425 | ||
8 | ![]() |
Instance attribute | Public | Type reference (TYPE) | SPERS_KEY | Key for Personalization | 20030425 | ||
9 | ![]() |
Instance attribute | Public | Type reference (TYPE) | SY-UNAME | ABAP System, User Logon Name | 20030425 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Static method | Public | Method | Change User Settings | 20030502 |
2 | ![]() |
Instance method | Public | Constructor | Constructor | 20030425 |
3 | ![]() |
Static method | Public | Method | Display User Settings | 20030502 |
4 | ![]() |
Instance method | Public | Method | Provide All User Settings | 20030425 |
5 | ![]() |
Static method | Private | Method | Provide All Default Values for User | 20030425 |
6 | ![]() |
Static method | Public | Method | Provide Object Instance | 20030425 |
7 | ![]() |
Instance method | Public | Method | Provide Individual User Setting | 20030425 |
8 | ![]() |
Instance method | Public | Method | Provide User Settings in Structural Form | 20030428 |
9 | ![]() |
Static method | Private | Method | Trigger Events | 20030505 |
10 | ![]() |
Instance method | Public | Method | Write Settings in the Buffer to the Database | 20030425 |
11 | ![]() |
Static method | Public | Method | Write Settings of All Instances to the Database | 20030507 |
12 | ![]() |
Instance method | Public | Method | Write Individual User Setting to the Buffer | 20030425 |
13 | ![]() |
Instance method | Public | Method | Write Values of a Structure to the Buffer | 20030428 |
Events
# | Event | Type | Visibility | Description | Created on |
---|---|---|---|---|---|
1 | CHANGE_REQUESTED | Static Event (1) |
Public (2) |
Change to User Settings Requested | 20030505 |
2 | DISPLAY_REQUESTED | Static Event (1) |
Public (2) |
Display of User Settings Requested | 20030505 |
Types
# | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
---|---|---|---|---|---|---|---|
1 | TY_INST_LN | Private | See coding | Line of Instance Administration Table | 20030425 | begin of ty_inst_ln,
report type programm,
handle type slis_handl,
uname type sy-uname,
pers_key type spers_key,
objref type ref to cl_user_defaults,
end of ty_inst_ln
|
|
2 | TY_INST_TAB | Private | See coding | Instance Administration Table | 20030425 | ty_inst_tab type hashed table of ty_inst_ln
with unique key report handle uname pers_key
|
Method Signatures
Method CHANGE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IO_CONTAINER | Call by reference | Object reference (TYPE REF TO) | CL_GUI_CONTAINER | Contaiener fuer Anzeige des Controls | 20030507 | ||
2 | ![]() |
IV_PERS_KEY | Call by reference | Type reference (TYPE) | SPERS_KEY | 'USER_DEFAULTS_GEN' | Schluessel fuer Personalisierung | 20030502 | |
3 | ![]() |
IV_STRUCTURE_NAME | Call by reference | Type reference (TYPE) | USRDFLT_STRUCTURE_NAME | Strukturname der Personalisierungsdaten | 20030502 | ||
4 | ![]() |
IV_USER_ID | Call by reference | Type reference (TYPE) | SY-UNAME | SY-UNAME | R/3-System, Anmeldename des Benutzers | 20030502 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Ausnahmen für Benutzereinstellungen | 20030520 |
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_CALLING_PROGRAM | Call by reference | Type reference (TYPE) | PROGRAMM | ABAP-Programmname | 20030429 | ||
2 | ![]() |
IV_HANDLE | Call by reference | Type reference (TYPE) | SLIS_HANDL | VerwaltungsID für Mehrfachaufrufe aus dem selben Programm | 20030429 | ||
3 | ![]() |
IV_PERS_KEY | Call by reference | Type reference (TYPE) | SPERS_KEY | 'USER_DEFAULTS_GEN' | Schluessel fuer Personalisierung | 20030429 | |
4 | ![]() |
IV_USER_ID | Call by reference | Type reference (TYPE) | SY-UNAME | SY-UNAME | R/3-System, Anmeldename des Benutzers | 20030429 |
Method CONSTRUCTOR on class CL_USER_DEFAULTS has no exception.
Method DISPLAY Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IO_CONTAINER | Call by reference | Object reference (TYPE REF TO) | CL_GUI_CONTAINER | Container fuer Anzeige des Controls | 20030507 | ||
2 | ![]() |
IV_PERS_KEY | Call by reference | Type reference (TYPE) | SPERS_KEY | 'USER_DEFAULTS_GEN' | Schluessel fuer Personalisierung | 20030502 | |
3 | ![]() |
IV_STRUCTURE_NAME | Call by reference | Type reference (TYPE) | USRDFLT_STRUCTURE_NAME | Strukturname der Personalisierungsdaten | 20030502 | ||
4 | ![]() |
IV_USER_ID | Call by reference | Type reference (TYPE) | SY-UNAME | SY-UNAME | R/3-System, Anmeldename des Benutzers | 20030502 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Ausnahmen für Benutzereinstellungen | 20030520 |
Method GET Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
RT_DEFAULTS | Value transfer | Type reference (TYPE) | USRDFLT_ITAB | Benutzereinstellungen | 20030429 |
Method GET on class CL_USER_DEFAULTS has no exception.
Method GET_ALL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_PERS_KEY | Call by reference | Type reference (TYPE) | SPERS_KEY | Schluessel fuer Personalisierung | 20030502 | ||
2 | ![]() |
IV_UNAME | Call by reference | Type reference (TYPE) | SY-UNAME | Benutzer | 20030502 | ||
3 | ![]() |
RT_DEFAULTS | Value transfer | Type reference (TYPE) | USRDFLT_PERS_ITAB | Benutzereinstellungen | 20030429 |
Method GET_ALL on class CL_USER_DEFAULTS has no exception.
Method GET_INSTANCE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_CALLING_PROGRAM | Call by reference | Type reference (TYPE) | PROGRAMM | ABAP-Programmname | 20030429 | ||
2 | ![]() |
IV_HANDLE | Call by reference | Type reference (TYPE) | SLIS_HANDL | VerwaltungsID für Mehrfachaufrufe aus dem selben Programm | 20030429 | ||
3 | ![]() |
IV_PERS_KEY | Call by reference | Type reference (TYPE) | SPERS_KEY | 'USER_DEFAULTS_GEN' | Schluessel fuer Personalisierung | 20030429 | |
4 | ![]() |
IV_USER_ID | Call by reference | Type reference (TYPE) | SY-UNAME | SY-UNAME | R/3-System, Anmeldename des Benutzers | 20030429 | |
5 | ![]() |
RO_OBJREF | Value transfer | Object reference (TYPE REF TO) | CL_USER_DEFAULTS | Instanz der Benutzereinstellungen | 20030429 |
Method GET_INSTANCE on class CL_USER_DEFAULTS has no exception.
Method GET_SINGLE_VALUE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
EV_VALUE | Call by reference | Type reference (TYPE) | ANY | Inhalt des Vorschlagswertes | 20030429 | ||
2 | ![]() |
IV_FIELD_NAME | Call by reference | Type reference (TYPE) | ANY | Name des Vorschlagswertes | 20030429 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Keine Vorschlagswerte zu diesem Feld vorhanden | 20030425 |
Method GET_STRUCTURE_VALUES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
ES_VALUES | Call by reference | Type reference (TYPE) | ANY | Strukturwerte | 20030429 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Parameter es_values zeigt nicht auf eine Struktur | 20030428 |
Method RAISE_EVENT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IO_ALV_GRID | Call by reference | Object reference (TYPE REF TO) | CL_GUI_ALV_GRID | Referenz auf ALV Grid | 20030505 | ||
2 | ![]() |
IR_DEFAULTS | Call by reference | Object reference (TYPE REF TO) | USRDFLT_PERS_ALV_ITAB | Benutzereinstellungen | 20030508 | ||
3 | ![]() |
IR_FIELDCAT | Call by reference | Object reference (TYPE REF TO) | LVC_T_FCAT | ALV Feldkatalog | 20030508 | ||
4 | ![]() |
IR_LAYOUT | Call by reference | Object reference (TYPE REF TO) | LVC_S_LAYO | ALV Layout | 20030508 | ||
5 | ![]() |
IR_SORTCAT | Call by reference | Object reference (TYPE REF TO) | LVC_T_SORT | ALV Sortierkatalog | 20030508 | ||
6 | ![]() |
IV_EVENT_ID | Call by reference | Type reference (TYPE) | C | '01' | 01 = Aendern '02' = Anzeigen requested | 20030505 | |
7 | ![]() |
IV_PERS_KEY | Call by reference | Type reference (TYPE) | SPERS_KEY | Schluessel fuer Personalisierung | 20030508 | ||
8 | ![]() |
IV_USER_ID | Call by reference | Type reference (TYPE) | SY-UNAME | Benutzername | 20030508 |
Method RAISE_EVENT on class CL_USER_DEFAULTS has no exception.
Method SAVE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IT_DEFAULTS_TO_DELETE | Call by reference | Type reference (TYPE) | USRDFLT_ITAB | Zu loeschende Benutzereinstellungen | 20030429 |
Method SAVE on class CL_USER_DEFAULTS has no exception.
Method SAVE_ALL Signature
Method SAVE_ALL on class CL_USER_DEFAULTS has no parameter.
Method SAVE_ALL on class CL_USER_DEFAULTS has no exception.
Method SET_SINGLE_VALUE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_FIELD_NAME | Call by reference | Type reference (TYPE) | ANY | Name des Vorschlagswertes | 20030429 | ||
2 | ![]() |
IV_VALUE | Call by reference | Type reference (TYPE) | ANY | Inhalt des Vorschlagswertes | 20030429 |
Method SET_SINGLE_VALUE on class CL_USER_DEFAULTS has no exception.
Method SET_STRUCTURE_VALUES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IS_VALUES | Call by reference | Type reference (TYPE) | ANY | Strukturwerte | 20030429 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
Parameter is_values zeigt nicht auf eine Struktur | 20030428 |
Event Signatures
Event CHANGE_REQUESTED Signature
# | Parameter | Type | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | EO_ALV_GRID | Exporting | Value transfer | Object reference (TYPE REF TO) | CL_GUI_ALV_GRID | Referenz auf ALV Grid | 20030505 | ||
2 | ER_DEFAULTS | Exporting | Value transfer | Object reference (TYPE REF TO) | USRDFLT_PERS_ALV_ITAB | Benutzereinstellungen | 20030508 | ||
3 | ER_FIELDCAT | Exporting | Value transfer | Object reference (TYPE REF TO) | LVC_T_FCAT | ALV Feldkatalog | 20030508 | ||
4 | ER_LAYOUT | Exporting | Value transfer | Object reference (TYPE REF TO) | LVC_S_LAYO | ALV Layout | 20030508 | ||
5 | ER_SORTCAT | Exporting | Value transfer | Object reference (TYPE REF TO) | LVC_T_SORT | ALV Sortierkriterien | 20030508 | ||
6 | EV_PERS_KEY | Exporting | Value transfer | Type reference (TYPE) | SPERS_KEY | Schluessel fuer Personalisierung | 20030508 | ||
7 | EV_USER_ID | Exporting | Value transfer | Type reference (TYPE) | SY-UNAME | Benutzername | 20030508 |
Event DISPLAY_REQUESTED Signature
# | Parameter | Type | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | EO_ALV_GRID | Exporting | Value transfer | Object reference (TYPE REF TO) | CL_GUI_ALV_GRID | Referenz auf ALV Grid | 20030505 | ||
2 | ER_DEFAULTS | Exporting | Value transfer | Object reference (TYPE REF TO) | USRDFLT_PERS_ALV_ITAB | Benutzereinstellungen | 20030508 | ||
3 | ER_FIELDCAT | Exporting | Value transfer | Object reference (TYPE REF TO) | LVC_T_FCAT | ALV Feldkatalog | 20030508 | ||
4 | ER_LAYOUT | Exporting | Value transfer | Object reference (TYPE REF TO) | LVC_S_LAYO | ALV Layout | 20030508 | ||
5 | ER_SORTCAT | Exporting | Value transfer | Object reference (TYPE REF TO) | LVC_T_SORT | ALV Sortierkriterien | 20030508 | ||
6 | EV_PERS_KEY | Exporting | Value transfer | Type reference (TYPE) | SPERS_KEY | Schluessel fuer Personalisierung | 20030508 | ||
7 | EV_USER_ID | Exporting | Value transfer | Type reference (TYPE) | SY-UNAME | Benutzername | 20030508 |
History
Last changed by/on | SAP | 20110908 |
SAP Release Created in | 640 |