本次测试以读取.csv为例,.txt格式同理,只需更改channel中读取文件file name为*.txt
读取的.csv文件内容:
生成的xml文件:
以下为ESR 和 ID 配置
ESR:
message mapping
ID:
Message Protocol选择FCC
Document Name:经过FCC转换后的message type
Document Namespace:上面message type 的namespace
Recordset Name:结果集名称
Recordset Structure:子结构名称 <NameA,nA,NameB,nB,...> , where nA=1,2,3,... or * (for a variable, unlimited number, including 0).
Recordsets per Message:每条消息多少个结果集,即多少个Record
Key Field Name:主键字段,如果有多个子结构需要定义
head.ignoreRecordsetName | true |
head.fieldNames | key,str1,str2,str3 |
head.fieldSeparator | , |
head.endSeparator | ‘nl‘ |
head.keyFieldValue | head |
list.fieldNames | key,str1,str2,str3,str4 |
list.fieldSeparator | , |
list.endSeparator | ‘nl‘ |
list.keyFieldValue | list |
具体参数配置:https://help.sap.com/doc/saphelp_nw75/7.5.5/en-US/44/6713ec3f914ddee10000000a1553f7/content.htm?loaded_from_frameset=true
参考资料:http://saptechnical.com/Tutorials/XI/Contentconversion/page2.htm
原文:https://www.cnblogs.com/paidx/p/14282755.html