cancel
Showing results for 
Search instead for 
Did you mean: 

Update Catlog Attributes

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

I have the same code but the error is comming as Update_error, Sy-subrc = 7.

Ster

Former Member
0 Kudos

1) The user id you are trying to update might have some errors. Please check that first.

2) Then try with different user id or try to update the data manually first

3) Check you have sufficient authorization to do this activity.

Regards

Kathirvel

former_member183819
Active Contributor
0 Kudos

Hi Ster

B_UPLOAD_COST_CENTER_ATTRIBUTE - this report se38 helps you to upload cost centers in SRM.

so please check up with your technical help for file format.

regards

Muthu

Answers (0)