判断订单是否被锁定

判断订单是否被锁定函数:

CALL FUNCTION 'CO_ZF_ORDER_LOCK'
    EXPORTING
      AUFNR     = '008160000122'
      AUTYP     = '10'
      CLIENT    = SY-MANDT
      SCOPE     = '2'
    EXCEPTIONS
      INCONSISTENT_INTERFACE = 1
      PROGRAM_ERROR          = 2
      OTHERS                 = 3.

  IF SY-SUBRC = 0.
    WRITE 'OK'.
  ELSE.
    WRITE 'NO'.
  ENDIF.

 

CO_ZF_ORDER_DELOCK 订单解锁的函数

你可能感兴趣的:(function,interface)