Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fieldexit in personalization object

Former Member
0 Likes
940

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.

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
877

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

Read only

0 Likes
877

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

Read only

0 Likes
877

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

Read only

0 Likes
877

Can you let me know under which class / method this code is there .

Read only

0 Likes
877

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