TECO技术关闭生产订单
DATA: lt_orders TYPE TABLE OF bapi_order_key,
ls_order TYPE bapi_order_key,
lt_return TYPE TABLE OF bapi_order_return.
ls_order-order_number = '10000001'.
APPEND ls_order TO lt_orders.
CLEAR ls_order.
CALL FUNCTION 'BAPI_PRODORD_COMPLETE_TECH'
TABLES
orders = lt_orders
detail_return = lt_return.