创建excel模板
构建strans(简单转换)
另存为XML文件
打开这个xml文件,用浏览器打开 ,得到模板源码
新建stans-简单转换 事务码strans
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
<tt:root name="ROOT" type="?"/>
<tt:root name="TT_ITEM" type="ddic:ZTSTRANS_STRUC1"/>
<tt:template>
</tt:template>
</tt:transform>
这里需要手工加一下
<tt:loop ref="TT_ITEM">
<Row>
<Cell>
<Data ss:Type="String">
<tt:value ref="POSID"/>
</Data>
</Cell>
<Cell>
<Data ss:Type="String">
<tt:value ref="POST1"/>
</Data>
</Cell>
</Row>
</tt:loop>
完整的strans
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="