KP06需要传入成本要素,这里就比较麻烦,目前找了很多BAPI都没有合适的,经过两天的查找资料才找到,下面详细见代码:一个批量导入程序:
*&---------------------------------------------------------------------*
*& 包含
*&---------------------------------------------------------------------*
TYPE-POOLS: icon.
TABLES: sscrfields.
*--------------------------------------------------------------------*
* 结构定义
*--------------------------------------------------------------------*
TYPES: BEGIN OF ty_excel,versn TYPE char01,perbl TYPE char03,perbl2 TYPE char03,gjahr TYPE char04,kostl TYPE char10,kstar TYPE char10,wkf TYPE wkfxxx,
* tke TYPE tkexxx,END OF ty_excel.
DATA:gt_fin_upload TYPE TABLE OF ty_excel,gs_fin_upload TYPE ty_excel.
TYPES: BEGIN OF ty_out,sel TYPE char01, "选择id TYPE char08,mess TYPE char200,versn