on 07-15-2011 10:15 AM
Hello experts,
We are using SRM 7.0....I tried using FM BBP_READ_ATTRIBUTES and gave the user name under IV_USER and the attribute BUK for example under ATTR_ID.
This returns the value for BUK. But what if I want to see all attributes for user....is developing a report the only solution? Can you share a sample code for the same?
Best Regards.
John
Hi,
You need to pass all attribute IDs for the attributes you need to read
data: lt_attr_list type bbpt_attr_list,
ls_attr_list like line of lt_attr_list.
data: et_attr type bbpt_attr.
ls_attr_list-attr_id = 'CNT'.
append ls_attr_list to lt_attr_list.
ls_attr_list-attr_id = 'BUK'.
append ls_attr_list to lt_attr_list.
call function 'BBP_READ_ATTRIBUTES'
exporting
iv_user = sy-uname
it_attr_list = lt_attr_list
importing
et_attr = et_attr
exceptions
object_id_not_found = 1
no_attributes_requested = 2
attributes_read_error = 3
others = 4.
Regards,
Anubhav
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.