on ‎2010 Sep 14 4:03 AM
Hi,
Our need is to default the user-settings with the checkbox "display change documents" flagged for all the users, and defaulted like this at new user creation.
When checking the available parameters under: PFCG -> Role -> Personalization, this one is not present ==> So we are not able to change this default value.
Does anyone know how to achieve this?
Thanks
Matthias
Request clarification before answering.
Maybe with some coding?
DATA: lt_spers_obj TYPE TABLE OF spers_obj,
ls_spers_obj TYPE spers_obj.
FIELD-SYMBOLS: <fs_spers_obj> TYPE spers_obj.
SELECT * FROM spers_obj INTO TABLE lt_spers_obj
WHERE pers_type = 'U'
AND pers_key = 'DPR_USER_SETTINGS'
AND fieldname = 'TODO'.
LOOP AT lt_spers_obj ASSIGNING <fs_spers_obj>.
<fs_spers_obj>-fieldvalue = TODO.
ENDLOOP.
*/ Update table
MODIFY spers_obj FROM TABLE lt_spers_obj.
IF sy-subrc IS INITIAL.
WRITE: 'executed successfully'.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Depending on your system you can take a look at method GET_ALL_PARAMETERS from class CL_DPR_USER_SPECIFIC_SETTINGS and create a post-exit enhancement.
Unfortunatelly the original method uses a RETURN statement, so if your NW component is pre 7.01 post-exit enhancement will not be called.
You could also modify standard code somewhere around CASE WHEN 2...(line around 50 in that method).
Regards,
Michal
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.