Idoc学习笔记

http://www.samuelog.cn/category/sap-related-topic/05-sap-abap/

 

今天又学习了一下Idoc的知识,包括Idoc的概念、开发、配置和管理。
Concept
EDI:公司之间的电子数据交换。
ALE:公司之内不同系统之间的数据交换。
IDOC:基本上就是EDI的一种实现形式,用于SAP。     

  1. Control record, data record, status record
  2. Outbound and inbound
  3. Sender and receiver
  4. Partner(协议) and port(发送的形式eg:File, RFC,XML)
  5. Status

IDoc Development
Message type WE81, identifies type of data : MATMAS (material master)

Idoc type WE30, indicates the SAP format of the data : MATMAS05 ( 05-version)

Segment WE31, structures used to define data: E1MARAM (material master general data)
Link message type with basic type WE82

Outbound – outbound process code/outbound function module WE41, only for application outbound

Inbound – inbound process code/inbound function module WE42

Link inbound function module to message type and Idoc type WE57
Mtn. inbound function module attribute BD51

IDoc Configuration
General:           RFC destination SM59, 定义 transactional RFC port destination

                        Logical System BD54,定义LS partner type

                        Partner Profile WE20, 用于定义数据交换的参数

                        Port WE21,用于定义各类port

For Master data outb : distribution model BD64

For Application data outb :outb process code WE41
                                                           Condition type NACE
Demo: 1)master data outbound and inbound
从IDES 800 发到 IDES 810:      
            1. develop idoc type in 800
            2. config destination LS/port/partner profile in 800
            3 config LS/partnerprofile in 810
            4. test with BD10
            5. check with WE02

Demo: 2) purchase order output to file
            1. use standard message type ORDERS,idoc type orders05,define process code(WE41)ME10
            2.config port, LS, partner profile; for application only : process code and condition type
            3. configure condition type(同义:message type, output type) : NACE 1output type 2procedure
            4.test with create PO
            5.check with WE02 , AL11 check directory

IDoc administration
Transactions:
WEDI: Area Menu

WE02/WE05: display Idoc

BD87: Monitor/process Idoc message

WE19: Test/Reprocess Idoc

Program:

RSNAST00: create idoc for message(application data)

RSEOUT00: process all selected Idocs (EDI)

RBDAPP01: Inbound Processing of Idocs ready for transfer
Tips:

Tables:  EDIDC(control record : idoc)

                        EDID4: Idoc records from 4.0 onwards

                        EDIDS: status record

                        NAST: Message record (application data)

Function modules:

                        IDOC_WRITE_AND_START_INBOUND: create Idoc and process Idoc

                        MASTER_IDOC_DISTRIBUTE: create outbound Idoc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值