on 12-11-2008 2:35 PM
Hello friends,
I am uploading some catlog attributes and I am able to.
I am using the FM - 'BBP_UPDATE_ATTRIBUTES' , I am getting the SY-subrc = 7, and the error message isn Update error.
I further debugged it and figured that the error is in the
FM - RH_OM_ATTRIBUTES_UPDATE, This FM comes with sy-subrc = 3 and the message is no attributes found.
I have further debugged this FM and found that thsi Internal table ihrtnnnn does not get value. this is of the structure hrtdbtab.
Please help this is a cut over activity.
Thanks,
Ster
The below code will work perfectly.
REPORT zkb_attr_catalogid.
DATA: lt_attr TYPE TABLE OF bbp_attributes.
DATA: ls_attr TYPE bbp_attributes.
ls_attr-attr_id = 'CAT'.
ls_attr-value = 'VENDOR_CAT'.
APPEND ls_attr TO lt_attr.
CALL FUNCTION 'BBP_UPDATE_ATTRIBUTES'
EXPORTING
user_id_p = '<User Id>'
scenario_p = 'BBP'
start_date_p = sy-datum
end_date_p = '99991231'
replace_p = ' '
TABLES
it_attr_p = lt_attr
EXCEPTIONS
object_id_missed = 1
no_active_plvar = 2
object_not_found = 3
no_attributes = 4
times_invalid = 5
inconsistent_values = 6
update_error = 7
ambiguous_position = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
COMMIT WORK AND WAIT.
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.