cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_READ_ATTRIBUTES

Former Member
0 Kudos
469

How do you call the FuBa "BBP_READ_ATTRIBUTES".

What should you pass to the FM at least ?

Regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have a look at this sample code:

DATA: ls_attr_single TYPE bbp_attr_list.

DATA: ls_attr_dft_single TYPE bbps_attr_single.

DATA: ls_agent TYPE swhactor.

ls_attr_single-attr_id = 'SLAPPROVER'.

CASE iv_object_type.

WHEN 'BUS2205'.

CALL FUNCTION 'BBP_READ_ATTRIBUTES'

EXPORTING

iv_user = iv_user

iv_scenario = 'BBP'

iv_attr_single = ls_attr_single

IMPORTING

ev_attr_dft_single = ls_attr_dft_single

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.

ELSE.

CLEAR ls_agent.

ls_agent-otype = ls_attr_dft_single-value(2).

ls_agent-objid = ls_attr_dft_single-value+2(12).

APPEND ls_agent TO et_agent.

ENDIF.

WHEN OTHERS.

ENDCASE.

You just need to pass the user ID,scenario(deafult value 'BBP') and the attribute name in the structure iv_attr_single .

All the attribute names you can find in table "T77OMATTR".

Also have a look at these threads for sample code:

BR,

Disha.

Former Member
0 Kudos

Disha you are quite good on SRM!

I am glad to have somebody where is very well familiarized

with SRM.

Regards

sas

Former Member
0 Kudos

Thanks Sas.

Do let me know if you need any further help.

BR,

Disha.

Answers (0)