cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt in BBP_READ_ATTRIBUTES

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184111
Active Contributor
0 Kudos

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