删除shipment

2020-08-20  本文已影响0人  Mmm_余安
  DATA: headerdata       LIKE  bapishipmentheader,
        headerdataaction LIKE  bapishipmentheaderaction.
  headerdata-shipment_num       = ''.
  headerdataaction-shipment_num = 'D'.
  DATA return2 TYPE TABLE OF bapiret2.


  CLEAR return2. REFRESH return2.
  CALL FUNCTION 'BAPI_SHIPMENT_CHANGE'
    EXPORTING
      headerdata       = headerdata
      headerdataaction = headerdataaction
    TABLES
      return           = return2.

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait = 'X'.

上一篇下一篇

猜你喜欢

热点阅读