ITPub博客

首页 > 应用开发 > IT综合 > 有关IDoc的一些东西

有关IDoc的一些东西

原创 IT综合 作者:tolyhuang 时间:2009-05-06 15:12:19 0 删除 编辑

[@more@]idoc 事务码
查看idoc:WE02,WE05
端口定义:WE21
RFC目标定义:SM59
开发IDOC segment:WE31
开发IDOC Type:WE30
创建Message Type:WE81
IDOC类型与消息类性绑定:WE82
IDOC、Message和FM绑定:WE57
建立逻辑系统:SALE
分配逻辑系统:SALE(定义本SAP中Client的发送端口)
伙伴参数定义:WE20


IDOC 相关程序和事务
程序:
RBDMIDOC IDOC生成,根据IDOC类型对修改过的数据生成IDOC
RWDIDOCSL 按日期、SITE、商品编号、IDOC号码查看IDOC,这个比较常用
事务:
RWVKP03D 删除wind表程序,定时删除这个表会提高assortment list 性能
RBDSECRE 手工触发供商的IDOC下传(选择Message Type) tcode:bd14.

客户主数据 tcode:bd12
RC1_IDOC_SET_STATUS 改变IDOC壮态,从一个状态到另一个状态。
T-CODE:------------------------------------------------------------------
wdbm_hpr 商品IDOC,按商品级别生成IDOC
wdbu_hpr 按SITE级别生成IDOC
wdbu 按销售组织级别生成IDOC
WE18 生成IDOC状态文件
BD61 关闭和打开Change Pointer
BD60 消息类型所对应的Function Moudle ,,wbbdld 对应的处理程 MASTERIDOC_CREATE_SMD_WBBDLD
wper2 IDOC管理中心,主程序,辅助分析报告
wpia 重新处理错误的IDOC

IDOC类型:
WBBDLD 商品IDOC(增量方式)
CREMAS 供商IDOC
ORDERS05 SO订单
--------------------------------------------------------------------------------
Use the archiving programs. IDoc is a separate archiving class. The following programs are available:

1. Archive RSEXARCA and RSEXARCB (as of Release 3.0C)
2. Delete RSEXARCD
3. Read archiveRSEXARCR
4. Restore RSEXARCL
-----------------------------------------------------
Have a look at transaction WE47, set "Archiving - Possible" for all statuses to be archived. Use transaction SARA with object IDoc to archive.
------------------------------------------------------------------
An IDoc type consists of the following components:

· a control record
This is identical for each IDoc type.

· several data records
One data record consists of a fixed key part and a variable data part. The data part is interpreted using segments, which differ depending on the IDoc type selected.

· several status records
These are identical for each IDoc type and describe the statuses an IDoc has already passed through or the status an IDoc has attained.
----------------------------------------------------------------
Let start learning IDOC. IDOC is new to me as well. I learned it when I was in one of the project. It was great that I have the opportunity to learn new stuff. Back to the point… let start what you need to do with IDOC.

1) Create segment (WE31)

Of course it will have naming convention for different company. Here are some tips:

If you copy from existing or std segment eg: Z1E1EDP01_01.

If not you can just put Z1….but this is only the example.

2) Create IDOC Types (WE30)

3) Create message type (WE81)

4) Link message type with basic type (WE82)

5) Create FM

In the FM all the attributes should be the same for Inbound or Outbound. Basically you can get an example from the std FM eg: Inbound - IDOC_INPUT_DELVRY
Outbound - IDOC_OUTPUT_SHPMNT.

6) Create Process Code (Inbound - WE41/ Outbound - WE42)

IMPORTANT: Before you key in the FM, you are required to add the FM in this table V_TBD51.

7) Link FM with Basic Type

For testing go to WE19.

Here are some of the std program that you can use for IDOC:

1) RSNAST00 - Issuing Output type

2) RBDINPUT - Processing Inbound idocs

3) RBDAPP01 - Processing Idocs that already processed before

4) RBDSEMAT- Stand alone program to generate IDocs (Send Material)

5) RBDMIDOC - Outbound triggered from change pointer

6) RSEINB00 - Convert file to IDOC in status 64

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9437124/viewspace-1021784/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-07-22

  • 博文量
    268
  • 访问量
    1411193