DATA: lt_item TYPE TABLE OF bapi_bus2054_chg,
ls_item TYPE bapi_bus2054_chg,
lt_itemx TYPE TABLE OF bapi_bus2054_upd,
ls_itemx TYPE bapi_bus2054_upd,
lt_return TYPE TABLE OF bapiret2,
lt_message_table TYPE TABLE OF bapi_conf_return.
DATA: ls_return TYPE bapiret2.
ls_item-wbs_element = -posid. "WBS编码
ls_itemx-wbs_element = -posid. "WBS编码
ls_item-wbs_actual_start_date = -istrt. "实际开始日期
ls_itemx-wbs_actual_start_date = 'X'. "实际开始日期
ls_item-wbs_actual_finish_date = -iende. " 实际完成日期
ls_itemx-wbs_actual_finish_date = 'X'. " 实际完成日期
APPEND ls_item TO lt_item.
APPEND ls_itemx TO lt_itemx.
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
CALL FUNCTION 'BAPI_BUS2054_CHANGE_MULTI'
EXPORTING
i_project_definition = ls_zpsprpsqr-pspid
TABLES
it_wbs_element
PS:WBS更改BAPI_BUS2054_CHANGE_MULTI
最新推荐文章于 2023-12-25 13:51:56 发布