DATA: gt_bdcdata LIKE bdcdata OCCURS 0 WITH HEADER LINE,
gw_bdcdata TYPE bdcdata.
DATA: gw_options TYPE CTU_PARAMS. "---BDC 处理的参数
DATA: gt_messtab like bdcmsgcoll OCCURS 0 WITH HEADER LINE,
gw_messtab like LINE OF gt_messtab.
*& Add by ac_abap 2014-01-16 Begin CR:MTDK912762
CLEAR: gw_options.
gw_options-dismode = iv_mode.
gw_options-updmode = 'S'.
gw_options-defsize = 'X'.
gw_options-racommit = 'X'.
CALL TRANSACTION 'FK08' USING gt_bdcdata
OPTIONS FROM gw_options
MESSAGES INTO gt_messtab.