【正文】
erved. 2727Import of RFC / IDoc interfacesImport of RFC / IDoc metadata from existing SAP systemnBased on connection parameters specified in the SW ComponentRFC and IDoc metadata cannot be modified within XINamespaces are preset: urn:sap:document:sap:idoc:messages urn:sap:document:sap:rfc:functionsXSD and WSDL representation available for exportProcedure: rightclick on ‘imported objects’ and follow the wizard169。因此,在我們執(zhí)行整個(gè)接口測(cè)試之前,最好先在此進(jìn)行 Operation Mapping的測(cè)試。169。 2023 SAP AG. All rights reserved. 17Service Interface Editor如下 圖 : 在接口 編輯 器中可以 進(jìn) 行接口基本信息的 設(shè) 定,接口方向,同步異步等信息17169。 2023 SAP AG. All rights reserved. 1212Interface objects: Data TypeData types 是定義 XML結(jié)構(gòu)最基本的對(duì)象n 相當(dāng)于 XML Schema (XSD)n Data type editor提供了所有的 XSD字段類型n 數(shù)據(jù)結(jié)構(gòu)可以嵌套,即:可以引用其他 Data Typen Date Type可以導(dǎo)出為 XSD格式文件169。 2023 SAP AG. All rights reserved. 99SAP Web AS ? Design timeIntegration RepositorySystem Landscape DirectorySoftware ComponentSoftware Component VersionJ2EE/ABAPProxiesMessage InterfacesMessage TypesEnterprise Services BuilderInterface EditorData TypesBusiness ProcessesMappingsBusiness ScenariosContext ObjectsScenario EditorProcess EditorMapping EditorCondition EditorBPELXSLTJavaXPathWSDLXSD169。開發(fā)對(duì)象由 Namespace組織,每個(gè)對(duì)象是由 SWCV, Namespace,及其名字唯一識(shí)別。 2023 SAP AG. All rights reserved. 2課程目標(biāo)參加完該課程后,參與者需要掌握以下內(nèi)容:? 理解 Software Components 和 Namespaces? 掌握 ESR對(duì)象的創(chuàng)建? 了解 ABAP Proxy的創(chuàng)建2169。SWCV通常是在 SLD中基于 Product創(chuàng)建的,然后導(dǎo)入到 ESR中。169。Imported Object 導(dǎo)入到 ESR中的 RFC或者 IDOC,其可以直接作為 Message Type使用。 2023 SAP AG. All rights reserved. 1616Interface objects: Service InterfaceService Interface是 XML元數(shù)據(jù)最高級(jí)別的代表。 2023 SAP AG. All rights reserved. 2121Mapping Objects: Message Mapping FeaturesGraphical mapping toolGraphically define mapping rules between source and target message typesQueuebased model allows for handling of extremely large documentsDraganddropGenerates internal Java codeBuiltin and userdefined functions (in Java)Integrated testing tool169。對(duì)于同步接口,需要提供 Request和 Response兩個(gè)方向的 Message Mapping。169。 2023 SAP AG. All rights reserved. 3232目錄PI接口實(shí)現(xiàn)的兩個(gè)階段Enterprise Services Repositoryn Overview and Conceptsn Interface Objectsn Mapping Objects n Miscellaneous樣例 : Enterprise Services BuilderMessage Design 步驟Scenario R2D: Step by StepScenario D2R: Step by StepQ A169。 2023 SAP AG. All rights reserved. 4040Step 3: Defining message type? Naming rule: MT_Message Name ? Only select the data type we created on Step 2 169。 2023 SAP AG. All rights reserved. 4848Step 2: Defining and structuring data types? Naming rule: DT_Message Name ? “row” is first subelement ? Data structure must match with select fields of SQL statementClick here to insert data structure169。 2023 SAP AG. All rights reserved. 5656目錄PI接口實(shí)現(xiàn)的兩個(gè)階段Enterprise Services Repositoryn Overview and Conceptsn Interface Objectsn Mapping Objects n Miscellaneous樣例 : Enterprise Services BuilderMessage Design 步驟Scenario R2D: Step by StepScenario D2R: Step by StepQ AThank You!演講完畢,謝謝觀看!。 2023 SAP AG. All rights reserved. 5050Step 4: Defining service interface? Naming rule: SI_Message Name_[In/Out]_[Sync/Async]? Be sure this message is “Outbound” and “Synchronous”?Category: Outbound ?Mode: Synchronous? Request message is we created on Step 3.? Response message is “MT_SAP_INBOUND_IN” in the PUBLIC namespace169。 2023 SAP AG. All rights reserved. 4242Step 5: Importing RFC/IDOC? The attribute of Processing type in RFC should be “RemoteEnabled Module” ? The procedure is Import