Skip to Content
0

'/SCWM/DLV_ITEM_UPDATE_PAR' CANCEL OUTBOUND DN

Mar 07, 2017 at 10:40 AM

32

avatar image

Dear Expert,

I want cancel outbound DN,When I call '/SCWM/DLV_ITEM_UPDATE_PAR' FM modify QTY(/SCWM/PRDO),but failed,return table

message type S '/SCDL/BO_ACTION 066' (Item locked successfully for processing),please help,thanks.

 LOOP AT gt_item INTO gw_item.
    ls_update-doccat = gw_item-doccat.
    ls_update-docid = gw_item-docid.
    ls_update-itemid = gw_item-itemid.
    ls_update-prcode_qty-prcode = 'O001'.   
    ls_update-prcode_qty-qty_new = gw_item-qty.
    ls_update-prcode_qty-uom = gw_item-uom.
    APPEND ls_update TO lt_update.
    CLEAR ls_update.
  ENDLOOP.

  CLEAR:lt_entries_ok[],lt_entries_failed[],lt_return[],lt_lock_errors[].
  CALL FUNCTION '/SCWM/DLV_ITEM_UPDATE_PAR'
    EXPORTING
      iv_save           = c_x
      iv_synchronously  = c_x  "c_blank
      iv_doccat         = lv_doccat
      iv_lockuser       = lv_lockuser
      iv_lockuservb     = lv_lockuservb
      it_item_update    = lt_update
    TABLES
      et_entries_ok     = lt_entries_ok
      et_entries_failed = lt_entries_failed
      et_return         = lt_return
      et_lock_errors    = lt_lock_errors.
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Terry Xiao Mar 11, 2017 at 07:24 AM
0

Solved,thanks.

Share
10 |10000 characters needed characters left characters exceeded