首页 > 代码库 > SAP 参照sto订单创建外向交货BAPI
SAP 参照sto订单创建外向交货BAPI
DATA: VSTEL LIKE TVST-VSTEL, "装运点/接收点 NUM_DELIVERIES TYPE VBNUM, STOCK_TRANS_ITEMS LIKE BAPIDLVREFTOSTO OCCURS 0 WITH HEADER LINE. SHIP_POINT = ‘1000‘. "装运点 STOCK_TRANS_ITEMS-REF_DOC = ‘4500000000‘. "参考凭证 APPEND STOCK_TRANS_ITEMS. REFRESH LT_RETURN. CALL FUNCTION ‘BAPI_OUTB_DELIVERY_CREATE_STO‘ EXPORTING SHIP_POINT = SHIP_POINT IMPORTING DELIVERY = LF_VBELN NUM_DELIVERIES = NUM_DELIVERIES TABLES STOCK_TRANS_ITEMS = STOCK_TRANS_ITEMS DELIVERIES = DELIVERIES CREATED_ITEMS = CREATED_ITEMS EXTENSION_OUT = EXTENSION_OUT RETURN = RETURN. IF NOT LF_VBELN IS INITIAL. CALL FUNCTION ‘BAPI_TRANSACTION_COMMIT‘ EXPORTING WAIT = ‘X‘. ENDIF.
SAP 参照sto订单创建外向交货BAPI
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。