赞
踩
SAP接口中需要添加生产订单组件,BDC录屏CO02有各种问题,找不到BAPI,只找到RFC:CO_XT_COMPONENT_ADD,但是会各种弹框,设置sy-batch = ‘X’,不弹出维护结算规则页面,再调用commit RFC CO_ZV_ORDER_POST,设置 no_dialog = ‘X’
CALL FUNCTION ‘CO_ZV_ORDER_POST’
EXPORTING
commit_flag = space
ext_flg = ‘X’
trans_typ = ‘V’
no_dialog = ‘X’
iv_commit_work_and_wait = ‘X’
EXCEPTIONS
no_change = 01
update_reject = 02
error_message = 03.
IF sy-subrc = 0.
CALL FUNCTION ‘BAPI_TRANSACTION_COMMIT’.
CALL FUNCTION ‘CO_XT_ORDER_INITIALIZE’.
ENDIF.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。