2011 Aug 17 2:00 PM
Hello,
Is is possible to add a fieldexit to populate data in SU01 personalization object LAW_PERS. ?
When i click F1 and click the technical documentation, there is no screen number and program name displayed .
If fieldexit is not possible what are the other ways to populate the data in the data element.
Regards,
kevin.
Hello,
Is is possible to add a fieldexit to populate data in SU01 personalization object LAW_PERS. ?
When i click F1 and click the technical documentation, there is no screen number and program name displayed .
If fieldexit is not possible what are the other ways to populate the data in the data element.
Regards,
kevin.
2011 Aug 17 6:48 PM
Hi Kevin,
It's because it's an ALV grid control, batch input doesn't like them.
You may use CL_PERS_ADMIN class, as described here: [SAP Library: Central Repository for Personalization Data|http://help.sap.com/saphelp_nw70/helpdata/en/ab/e70538389511d5974400a0c930dcc1/frameset.htm ]
Sandra
2011 Aug 18 1:46 PM
Thanks for your kind information.
I am new to object oriented ABAP . When i read the document it says that
To provide an external table that already contains user-specific data for user or role maintenance, you must implement a class that in turn implements interface IF_PERS_EXTERNAL_TABLE.
Now what should i do ? Do i have to create a new Zclass and i should implement the interface also ? . Is there any other way to populate the data in the table level , because i know the data element name and the table name .
Is it possible add some kiind of Z search help to the Standard table ?.
2011 Aug 18 2:19 PM
Hi,
No, you must only look at the part of the documentation which is about CL_PERS_ADMIN.
data l_data type c length 100. "length or structure to be determinated
call method cl_pers_admin=>get_data
exporting
p_pers_key = 'LAW_PERS'
p_uname = sy-uname
IMPORTING
p_pers_data = L_data.
"here check by debug what contains l_data
l_data+0(1) = 'X'. "here change the part you need
call method cl_pers_admin=>set_data
exporting
p_pers_key = 'LAW_PERS'
p_uname = sy-uname
p_pers_data = l_data.
commit work.
Sandra
2011 Aug 19 9:07 AM
Can you let me know under which class / method this code is there .
2011 Aug 19 9:25 AM
Hi,
that's just a template code, that may work for any personalization object.
If you want to know how l_data should be exactly declared, you have to look at the SPERS_REG table to know the function module/class used to enter the personalization data. Or start an ABAP trace (SE30) for SU01 when you enter the personalization dialog.
Sandra
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |