sap idoc 处理

上传人:小** 文档编号:94003147 上传时间:2019-07-31 格式:DOC 页数:5 大小:39KB
返回 下载 相关 举报
sap idoc 处理_第1页
第1页 / 共5页
sap idoc 处理_第2页
第2页 / 共5页
sap idoc 处理_第3页
第3页 / 共5页
sap idoc 处理_第4页
第4页 / 共5页
sap idoc 处理_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《sap idoc 处理》由会员分享,可在线阅读,更多相关《sap idoc 处理(5页珍藏版)》请在金锄头文库上搜索。

1、什么是IDOC,以及IDOC的步骤 创建IDOC: 第一步:WE31 创建IDOC所包含的字段. 第二步:WE30 创建IDOC 把Segment分配给IDOC 第三步:WE81 创建信息类型 第四步:WE82 把IDOC类型与信息类型对应. 第五步:WE57 Assign Message & Idoc Type to a Function Module for Data Process 第六步:SM59 Define a RFC connection for Idoc transfer 第七步:WE21 Define a Port ( Assign a RFC destination whi

2、ch created in SM59 ) 第八步:WE41/42 Creat Process Code 第九步:WE20 Define a Partner Profiles( Also creat a Outbound parameters with Port, or Inbound parameters with Process code ) 管理IDOC: WE02 显示IDOC,可以根据时间,IDOC类型查找IDOC,查看成功,出错信息。 WE46 IDOC管理(出入) WE60 IDOC类型文档(可以查看IDOC结构,和每个字段的描述. WE19 根据IDOC号进行IDOC处理,可以修

3、改IDOC值进行补发动作,处理分为内向和外向。 消息配置: WE20 配置伙伴消息进和出IDOC类型 WE21 配置伙伴。 官方介绍: What is a IDOC? An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data. IDoc is not a process. - IDocs are stored in the database. -

4、 In the SAP system, IDocs are stored in database tables. - IDocs are independent of the sending and receiving systems. - IDocs are independent of the direction of data exchange. An IDoc Type is SAPs format for data being moved between applications. Essentially, SAP has defined what a sales order, fi

5、nancial statement, invoice, etc will look like electronically. This includes how fields are grouped together (segments), the order and hierarchy of these groupings, and the format of each individual field. If youre familiar with EDI at all, then an IDoc will look very familiar to you. Nearly everyth

6、ing youre used to is there: from segment name to allowable codes to min/max occurs. It is important to note that an IDoc Type is really just a structure defined on the system and given a name (i.e., ORDERS04). An actual IDoc, however, consists of data, which fits within the defined structure of the

7、IDoc Type. This IDoc is identified by a number rather than by a type. Creation of IDOCs Transaction code: WE 30 Steps of Defining Segment Creating Segment : Tcode - WE31 Creating Message Type : Tcode - we81 Assigning Message type to Idoc type: Tcode - we82 Process The two processes for IDoc are Outb

8、ound Process and Inbound Process. Outbound Process When the data is sent out from the system, the process is called Outbound Process and the IDoc is known as Outbound IDoc. Inbound Process When the data is coming in, the process is called Inbound Process and the IDoc is known as Inbound IDoc. Outbou

9、nd Process (Sending System) Steps : 1) Goto Tcode SALE: Creating the logical system Click on Sending & Receiving Systems Select Logical Systems-Here Define the Logical Systems Click on Execute Button Go for New Entries 1) System Name : LOG1:Description: Sending System 2) System Name : LOG2:Descripti

10、on: Receiving System Press Enter & Save it will ask for Request if you want new request create new request or press continue for transferring the objects. Assigning Client to the Logical System: Select Assign Client to Logical Systems - Client : Sending System Logical System : LOG1 and also Client :

11、 Receiving System Logical System : LOG2 Save this Data. Step 2) For RFC Creation: Goto Tcode SM59 and Select R/3 Connects Click on create Button RFC Destination Name should be same as partners logical system name and case sensitive to create the ports automatically while generating the partner profi

12、les Give the information for required fields: RFC Destination : LOG2 Connection type : 3 Target Host : System No : 00 Client : 210 User : Login user name Password : Save this & Test it and Remote Login Step 3) Goto Tcode BD64: Click on the change buttonClick on the create model view Short Text: mod

13、el view Technical Name: LMOD Save this & press ok Select just created model view Name: “LMOD“ Goto add message type Model Name : LMOD Sender : LOG1 Receiver : LOG2 Message type: ZAZHARMESS Save and press Enter. 4) Goto Tcode BD82: Give Model View : LMOD Partner system : LOG2 Execute this by pressing

14、 F8 It will gives you sending system port No: A00000000089 (Like) 5) Goto Tcode BD64: Select the model view Goto Edit model view Distribute Press ok & Press Enter. Run your Zprogram REPORT ZIDOC1 . DATA: Begin of imara occurs 0, matnr like mara-matnr, mtart like mara-mtart, end of imara. DATA: wamas

15、_con LIKE edidc, imas_data LIKE edidd OCCURS 0 WITH HEADER LINE, icom_con LIKE edidc OCCURS 0 WITH HEADER LINE. PARAMETERS: e_matnr LIKE mara-matnr, e_msgtyp LIKE edidc-mestyp, e_rcvprn LIKE edidc-rcvprn. * retrive app. data from DB SELECT matnr mtart FROM mara INTO TABLE imara WHERE matnr = e_matnr

16、. *Master idoc control record wamas_con-rcvprt = LS. wamas_con-rcvprn = e_rcvprn. wamas_con-idoctp = ZAZHARIDOC. wamas_con-mestyp = e_msgtyp. * master idoc data records LOOP AT imara. imas_data-segnam = ZAZHARSEG. move imara to imas_data-sdata . APPEND imas_data. ENDLOOP. CALL FUNCTION MASTER_IDOC_DISTRIBUTE EXPORTING master_idoc_control = wamas_con TABLES communic

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 管理学资料

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号