Skip to Content
avatar image
Former Member

'/SCWM/DLV_ITEM_UPDATE_PAR' CANCEL OUTBOUND DN

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.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 11, 2017 at 07:24 AM

    Solved,thanks.

    Add comment
    10|10000 characters needed characters exceeded