on 2008 Nov 20 3:47 PM
How do you call the FuBa "BBP_READ_ATTRIBUTES".
What should you pass to the FM at least ?
Regards
sas
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.
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.