二维码

[IDOC] idoc实现同一sap系统不同client之间传输物料主数据

Twilight发表于 2014-11-07 16:18Twilight 最后回复于 2014-11-07 16:18 [复制链接] 8187 0

配置ALE,通过消息类型控制主数据idoc的发送,这里我们以物料主数据为例

发送系统:client 200
接收系统:client 100
1、定义逻辑系统 、分配逻辑系统到client、定义RFC及定义port请参考
idoc实现同一sap系统不同client之间传输自定义字段值

2、client 200 建立模型(Distribution Model)
Transaction BD64
Configuration for Message type 1.jpg
然后,添加message type
Configuration for Message type 2.jpg
生成参数伙伴文件
Configuration for Message type 3.jpg
Configuration for Message type 4.jpg
PS:这里的port如果T-code:WE21自己定义,则使用自己定义的端口;如果port之前不配,这里生成参数伙伴文件时会自动创建端口
Configuration for Message type 5.jpg

3、将client 200下的模型分配到client 100下
Configuration for Message type 6.jpg
Configuration for Message type 7.jpg
client 200分配成功会有绿色消息提示
Configuration for Message type 8.jpg
我们登录client 100会看到这边也出现了刚才在200 client创建的模型了
Configuration for Message type 9.jpg

4、在client 100下生成参数伙伴文件
Configuration for Message type 10.jpg
Configuration for Message type 11.jpg

5、WE20查看生成的参数伙伴文件
client 200 Outbound parameters
message type:MATMAS 系统标准的发送物料的消息类型
SYNCH:系统同步消息类型,保留就行
Configuration for Message type 13.jpg
双击MATMAS,查看发送端口配置
Configuration for Message type 14.jpg
client 100 inbound parameters
Configuration for Message type 15.jpg
双击MATMAS,查看接收到idoc的处理代码
Configuration for Message type 23.jpg

6、测试idoc是否能传输成功
client 200  mm01创建一个物料
Configuration for Message type 16.jpg
必输都填入,保存
Configuration for Message type 17.jpg
登录client 100 ,mm03查看没有创建,其实这里idoc根本就没发送,可用we02验证查看
Configuration for Message type 18.jpg
再回到client 200,Tcode BD10手工出发idoc发送
Configuration for Message type 19.jpg
Configuration for Message type 20.jpg
Configuration for Message type 21.jpg
再登录client 100,mm03查看物料
Configuration for Message type 22.jpg
回复

使用道具 举报

快速回帖

本版积分规则
您需要登录后才可以回帖 登录 | 注册有礼

快速回复 返回顶部 返回列表