SAP中如何使用BAPI创建销售订单 最好有源代码或者程序编写说明

2024-12-03 09:15:12
推荐回答(1个)
回答1:

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
salesdocumentin = wa_vbeln-vbeln
order_header_in = order_header_in
IMPORTING
salesdocument = v_vbeln
TABLES
return = it_return_tmp
order_partners = order_partners
order_schedules_in = order_schedules_in
order_items_in = order_items_in
order_conditions_in = order_conditions_in
order_cfgs_value = order_cfgs_value
order_cfgs_ref = order_cfgs_ref.
把=后面要的数据收集进去就好了