SAP ABAP 创建销售退货单BAPI_CUSTOMERRETURN_CREATE
CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE' "退货单创建
EXPORTING
return_header_in = ls_sales_header_in
return_header_inx = ls_sales_header_inx
IMPORTING
salesdocument = lv_salesdocument
TABLES
return = lt_return
return_items_in = lt_sales_items_in
return_items_inx = lt_sales_items_inx
return_partners = lt_sales_partners
return_schedules_in = lt_sales_schedules_in
return_schedules_inx = lt_sales_schedules_inx
return_conditions_in = lt_sales_conditions_in.
参数参考创建标准销售订单:https://www.cnblogs.com/LikZ-WM/p/16520135.html