on 02-28-2008 2:09 PM
Hello,
what is the Table( SE11 table ) which stores the default values selected for the Attributes selected for the User's in the Org structure.
Attributes are in T77OMATTR, but doesnt store default values.
Kindly advice.
Regards,
Gautam
Most user attributes(or rather position attributes) are maintained in table HRP1222/HRT1222, or view hrv1222a for easy viewing.
Also HRT/HRP5500, 5501, 5502 and 5503 (don't know for sure from the top of my head...).
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The attributes are stored in the table HRV1222A. But reading these data is very tediuos using queries.
But I would suggest you to use the FM -> BBP_READ_ATTRIBUTES for this purpose.
Please find a sample code to get default company code
REPORT zkb_read_attr.
DATA: ls_attr_single TYPE bbp_attr_list.
DATA: ls_attr_dft_single TYPE bbps_attr_single.
ls_attr_single-attr_id = 'BUK'. " Attribute Needed
CALL FUNCTION 'BBP_READ_ATTRIBUTES'
EXPORTING
iv_user = sy-uname
iv_attr_single = ls_attr_single
IMPORTING
ev_attr_dft_single = ls_attr_dft_single "Default Value is here
EXCEPTIONS
object_id_not_found = 1
no_attributes_requested = 2
attributes_read_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards
Kathirvel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.