on 01-04-2022 12:45 PM
I'm using BAPI_SALESORDER_CHANGE to block / reject sales order. It is working fine but I've noticed at the log (VA03) it is modifying many price related things. It is not actually changing values but is registering as they were modified:
My code is as follows:
w_bapisdh1x-updateflag = c_u.
t_item-itm_number = <f_itmnum>.
t_item-reason_rej = c_zh.
APPEND t_item.
t_itemx-itm_number = <f_itmnum>.
t_itemx-updateflag = c_u.
t_itemx-reason_rej = abap_true.
APPEND t_itemx.
SET UPDATE TASK LOCAL.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = <f_documento>
order_header_inx = w_bapisdh1x
TABLES
return = t_return
order_item_in = t_item
order_item_inx = t_itemx.
Since I'm only rejecting a sales order I thing there's no need at all to update so many data. Is that right?
User | Count |
---|---|
101 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.