Skip to Content
0
Nov 14, 2011 at 08:18 AM

BAPI_SALESORDER_CHANGE is not allowing to update Rejection type for an Item

179 Views

Hi,

below is the code by which i am trying to update the rejection reason for an item via this BAPI_SALESORDER_CHANGE.

 DATA: lw_vlcactdata TYPE vlcactdata_item_s.
    READ TABLE vlcactdata_cs-actdata_item INTO
               lw_vlcactdata WITH KEY vguid = vlcdiavehi_ls-vguid.
    IF sy-subrc EQ 0.
      so_item_ls-reason_rej = lw_vlcactdata-abgru.
      so_item_x_ls-REASON_REJ = 'X'.
    ENDIF.

but the updation is not happening and i am getting an error msg.

"Item 000010's configuration can no longer be changed"

Any clue?

ags