删除shipment

  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'.

你可能感兴趣的:(删除shipment)