Skip to Content

Introduction

This is the fourth part of a mini-series blog about how to build a basic SAP-to-REST synchronous interface scenario. The blog’s first part can be found here:  Consuming Your First Synchronous RESTful Service – Step-by-Step – Introduction. This part is to build all Integration Builder objects (integration system-specific objects). The objects we will be building are shown as all the colored objects in this diagram:


https://lh5.googleusercontent.com/-D1jUvJbifaw/VV7I8ZVIQvI/AAAAAAAAAqg/HXXLg98mqJM/w2236-h804-no/00.60%2B-%2BIB%2BObjects.jpg


Let’s get to work


Creating IB Objects:

    • The objects will be created in the following order: Business System, Business Component, Communication Channels, Sender Agreement, Receiver Determination, Interface Determination, then Receiver Determination.
    • Start the “Integration Builder” by clicking the link on the NW Process Integration page shown above (transaction SXMB_IFR).
    • Once the tool starts, it will look very similar to the ESR tool. We will need to create a configuration scenario to group all of our objects together.
      • Click the “Create Object” button. Expand node “Administration” and select object type “Configuration Scenario.” Type a configuration scenario name then click the “Create” button.

https://lh5.googleusercontent.com/-WDHoPnvXl84/VV-KvQSXNPI/AAAAAAAAAxo/-Rnaca4s1q0/w1824-h1210-no/09.10%2B-%2BConfig%2BScenario.jpg

    • In the “Configuration Scenario” details screen, click the “Save” button. You can use this screen to create other objects if you like.

https://lh4.googleusercontent.com/-aLgikOu3lj0/VV-KvGhUPrI/AAAAAAAAAxg/qZxzfCvipOo/w1226-h546-no/09.20%2B-%2BConfig%2BScenario%2BDetails.jpg

    • You can see the configuration scenario created successfully.

https://lh6.googleusercontent.com/-R6XMUfR9khI/VV-KvZR4ojI/AAAAAAAAAxk/gSl4Gq0NaWQ/w664-h774-no/09.30%2B-%2BConfig%2BScenario%2BCreated.jpg

    • In order to have a similar view like the one above, you need to change the “Object View” to “Configuration Scenario View”.

https://lh5.googleusercontent.com/-IlswPeQWX44/VV-i_9yXGLI/AAAAAAAAAys/dbbLi8giADA/w546-h318-no/09.40%2B-%2BConfig%2BScenario%2BView.jpg

    • Now, we need to add the SAP ECC Business System to the configuration scenario.
      • Expand the node of the configuration scenario you just created, then right-click the “Business System” object type and select the “Assign Business System” option.

https://lh6.googleusercontent.com/-WNnxjVw1WZU/VV-OsAS6FbI/AAAAAAAAAyM/CGJdsgSr7TY/w678-h542-no/10.10%2B-%2BBusiness%2BSystem%2BCreate.jpg

    • You will be presented with a wizard-like page on which you need to click “Continue.” When asked for a “Party” or to “Assign Partner”, you can leave the field blank. After that, you need to select the sending SAP ECC system from the list of business systems. This system must have already been defined in the PI SLD as mentioned in the pre-requisite section. Once you select the business system, you need to click the “Finish” button.

https://lh3.googleusercontent.com/-zmKDyiXVE7s/VV-OsFS6PZI/AAAAAAAAAyQ/jWzVd8kBWOI/w1296-h1336-no/10.20%2B-%2BBusiness%2BSystem.jpg

      • Note that if the business system is not available in this list (and you are sure it is available in the SLD), it might have already been assigned to another configuration scenario. That is OK. What you need to do is find which configuration scenario it is defined in. Then, right-click the business system there and select the “Assign Configuration Scenario” button.

https://lh3.googleusercontent.com/GeHVHi1vplTa_1JSZz3tV-GgQ_K2U4Qq1W3xDul5brQ=w371-h373-no

      • In the pop-up screen, select the new configuration scenario you want to add the business system to. The configuration scenarios that are currently assigned to the business system will be already checked.

https://lh3.googleusercontent.com/2HtXuaT-QDdl9JdmPNzX2Q6j4A02RjJKltuodWOduRk=w494-h551-no

    • Verify that the business system is added to the configuration scenario.

https://lh5.googleusercontent.com/-CeUCa-DrKNI/VV-OsN2VWMI/AAAAAAAAAyU/Df2_g10bfVM/w1724-h698-no/10.30%2B-%2BBusiness%2BSystem%2BCreated.jpg

    • The next IB object is a Business Component to represent the third-party system that hosts the RESTful service.
      • Right-click the “Business Component” object type or just click the “Create Object” button. Expand the “Collaboration Profile” node in the pop-up screen and select “Business Component” object type. Then, click the “Create” button.

https://lh5.googleusercontent.com/-jQTY9YXUxYU/VV-m6au5y0I/AAAAAAAAAzU/FfqjrUVzoPs/w1908-h810-no/11.10%2B-%2BBiz%2BComp%2BCreate.jpg

    • In the business component details screen, make sure you are on the “Receiver” tab to select the inbound interface we created earlier in the ESR using the value help menu. Then, click the “Save” button.

https://lh3.googleusercontent.com/-9sGdiLBzlS8/VV-m6EH8-uI/AAAAAAAAAzI/jHENX-JuiUs/w1958-h1030-no/11.20%2B-%2BBiz%2BComp%2BReciever%2BSelection.jpg

    • Verify the business component is now created in the configuration scenario.

https://lh6.googleusercontent.com/-EBnygAYu-uU/VV-m6GHmxaI/AAAAAAAAAzM/-Gh4sryHetI/w1612-h930-no/11.30%2B-%2BBiz%2BComp%2BCreated.jpg

    • If you can’t find it, it might be in the “Unassigned Objects” folder. You can right-click an object in that list and select the “Assign Configuration Scenario” option to move it to your configuration scenario.

https://lh6.googleusercontent.com/-HmIV9DU_l0Y/VV-m6s2ORbI/AAAAAAAAAzQ/ypgU_iT_3hY/w472-h344-no/11.40%2B-%2BAssign%2Bto%2BConfig%2BScenario.jpg

    • Next, we need to create a communication channel for the sender.
      • Right-click the sender Business System and select the “New” option (or click the “Create Object” button). Expand the “Collaboration Profile” node and select “Communication Channel” object type. Type a name and make sure the correct communication component and scenario names are selected. Then, click the “Create” button.

https://lh4.googleusercontent.com/-cgTMChSuhPE/VV-qxOyaRbI/AAAAAAAAAz4/80tlOMl8J44/w1788-h774-no/12.10%2B-%2BComm%2BChannel%2BSender%2BCreate.jpg

    • In the communication channel details screen, select the SOAP adapter type from the value help menu.

https://lh3.googleusercontent.com/-DHCpbTbRl90/VV-uTLzEekI/AAAAAAAAA0Y/zaYFRVYoYFI/w2240-h1480-no/12.20%2B-%2BComm%2BChannel%2BSender%2BAdapter%2BType.jpg

    • Change the message protocol to “XI 3.0” then click the “Save” button.

https://lh5.googleusercontent.com/-4q4DIRQDWzU/VV-qw_bxbsI/AAAAAAAAAz0/etAOikCRA04/w1186-h760-no/12.30%2B-%2BComm%2BChannel%2BSender%2BMsg%2BProtocol.jpg

    • Verify the communication channel has been created in the configuration scenario.

https://lh5.googleusercontent.com/-iHBvF5AQACg/VV-qxWtTHUI/AAAAAAAAAz8/BBb67lPY5SE/w1792-h592-no/12.40%2B-%2BComm%2BChannel%2BSender%2BCreated.jpg

    • Now, we need to create a communication channel for the receiver.
      • Right-click the receiver Business Component and select the “New” option (or click the “Create Object” button). Expand the “Collaboration Profile” node and select “Communication Channel” object type. Type a name and make sure the correct communication component and scenario names are selected. Then, click the “Create” button.

https://lh4.googleusercontent.com/-7gcmfz1hv_c/VV-5FmvNA_I/AAAAAAAAA1I/p3ZqYCyoSsE/w1754-h874-no/13.10%2B-%2BComm%2BChannel%2BReceiver%2BCreate.jpg

    • In the communication channel details screen, select the REST adapter type from the value help menu.

https://lh6.googleusercontent.com/-i-YNyGEZknc/VV-6BE7W2xI/AAAAAAAAA2A/jjC1p5Kra5k/w2094-h1394-no/13.20%2B-%2BComm%2BChannel%2BReceiver%2BAdapter.jpg

    • Change the communication channel to a “receiver” as shown below.

https://lh5.googleusercontent.com/-TZDw7vjejMI/VV-5Fr_4CaI/AAAAAAAAA04/vMPFh1EcJG4/w852-h514-no/13.30%2B-%2BComm%2BChannel%2BReceiver%2BType.jpg

https://lh4.googleusercontent.com/-LjaulC-Vd-4/VV-5GOzxGLI/AAAAAAAAA1M/sc-tHyQJjMM/w1380-h374-no/13.40%2B-%2BComm%2BChannel%2BReceiver%2BURL.jpg

    • In the same tab, change the variable source to “XPath Expression.” Then, in the pattern element name, type the name of the variable defined in the URL. The other field is the “XPath Expression” which is basically the XML tag of the field in the interface message. This is exactly the name of the field in the data type of the message that goes from the PI system to the receiver system (DT2 in the ESR Objects diagram).

https://lh3.googleusercontent.com/-4ZOkYF4NHJ4/VV-5GZVg_hI/AAAAAAAAA1g/kkcAsaDMCvY/w2878-h1414-no/13.50%2B-%2BComm%2BChannel%2BReceiver%2BURL%2BParam.jpg

    • Switch now to the “REST Operation” tab and select the “GET” operation in the “Static Value” field. The “Value Source” field should already be set to “Manual Value” and if not, you should change it to that value.

https://lh5.googleusercontent.com/-C9x-lYp07hc/VV-5GdaYrxI/AAAAAAAAA1Y/YHheg110bqU/w928-h394-no/13.60%2B-%2BComm%2BChannel%2BReceiver%2BREST%2BOperation.jpg

    • Switch now to the “Data Format” tab. In the “Request Format” section, change the data format to JSON and check the “Convert XML Payload to JSON” checkbox.
    • In the “Response Format” section, change the data format to JSON and check the “Convert to XML” checkbox. Also, check the “Add Wrapper Element” checkbox which will enable two fields that will be used to send response data. In the “Element Name” field enter the message type of the response (DT4 in the ESR Objects diagram above) and enter the namespace in the “Element Namespace” field.

https://lh4.googleusercontent.com/-3WbRnF0mNU8/VV-5G4o4e6I/AAAAAAAAA1o/uw99GR95xJM/w2532-h1434-no/13.70%2B-%2BComm%2BChannel%2BReceiver%2BData%2BFormat.jpg

    • Now, click the “Save” button and verify the communication channel has been added to the configuration scenario.

https://lh4.googleusercontent.com/-qBYCrF77wgM/VV-5G7BCVLI/AAAAAAAAA1k/NdrM5ZvKWFw/w1818-h666-no/13.80%2B-%2BComm%2BChannel%2BReceiver%2BCreated.jpg

    • The next object to be created is the “Sender Agreement.”
      • Click the “Create Object” button then expand the “Collaboration Agreement” node and select object type “Sender Agreement.” Select the sender business system. Then, select the outbound interface from the value help menu. Note that you will most probably have to change the value of the “Business System” in the pop-up to “- Any -” in order to be able to find the outbound interface created earlier. Make sure to click the refresh button so that the interface list is updated.

https://lh4.googleusercontent.com/-48nK8rowA7I/VV_A5JiqebI/AAAAAAAAA2o/PtPBtIWkw4U/w1852-h1472-no/14.10%2B-%2BSender%2BAgreement%2BCreate.jpg

    • Once the communication component, interface, and namespace fields are populated, click the “Create” button.

https://lh4.googleusercontent.com/-1hUsf8L8NAk/VV_A41EX8pI/AAAAAAAAA2Y/M9SKWrY_fOw/w920-h320-no/14.20%2B-%2BSender%2BAgreement%2BCreate%2B2.jpg

    • In the sender agreement details screen, select the communication channel we created earlier and then click the “Save” button.

https://lh4.googleusercontent.com/-pRJ154bQM60/VV_A48f01gI/AAAAAAAAA28/R9dFAHLPjCY/w1678-h932-no/14.30%2B-%2BSender%2BAgreement%2BDetails.jpg

    • Verify the sender agreement has been created and added to the configuration scenario.

https://lh4.googleusercontent.com/-nW4vA5bKT-w/VV_A5QjM_8I/AAAAAAAAA20/xaQEt5vkQEg/w1938-h654-no/14.40%2B-%2BSender%2BAgreement%2BCreated.jpg

    • It is now the “Receiver Determination” turn to be created.
      • Click the “Create Object” button then expand the “Configuration Objects” node and select object type “Receiver Determination.” Select the sender business system. Then, select the outbound interface from the value help menu and click the “Create” button.

https://lh5.googleusercontent.com/-ip-hyUXPAQQ/VWAlVO02OII/AAAAAAAAA3g/1JMF_oWMBxc/w2064-h896-no/15.10%2B-%2BReceiver%2BDetermination%2BCreate.jpg

    • In the receiver determination details screen, select the receiver’s business component then click the “Save” button.

https://lh4.googleusercontent.com/-zR8-CU6_Fu4/VWAlVIUBfAI/AAAAAAAAA3o/6r50rJIdCQ8/w1714-h940-no/15.20%2B-%2BReceiver%2BDetermination%2BDetails.jpg

    • Verify that the receiver determination object has been created successfully.

https://lh6.googleusercontent.com/-Lc0j0BMYr8I/VWAlVFNdgoI/AAAAAAAAA3k/hhtHHscvoZA/w1964-h666-no/15.30%2B-%2BReceiver%2BDetermination%2BCreated.jpg

    • Now, we need to create the “Interface Determination” object.
      • Click the “Create Object” button then expand the “Configuration Objects” node and select object type “Interface Determination.” Select the sender business system. Then, select the outbound interface from the value help menu. Finally, select the receiver business component and click the “Create” button.

https://lh6.googleusercontent.com/-CFZHdGCPh5s/VV_A5emFVyI/AAAAAAAAA24/e6i8UA2b7-0/w1766-h1276-no/15.10%2B-%2BInterface%2BDetermination%2BCreate.jpg

    • In the interface determination details screen, make sure the software component version is selected correctly. Also, select the mapping operation created in the ESR from the value help menu. Then, click the “Save” button.

https://lh6.googleusercontent.com/-18z1bUy06SM/VV_A5lxuG_I/AAAAAAAAA2s/STfQOH7o_IM/w1956-h852-no/15.20%2B-%2BInterface%2BDetermination%2BDetails.jpg

    • Verify the interface determination object has been created and added to the configuration scenario.

https://lh4.googleusercontent.com/-NMtDgPOoHng/VV_A54h2JGI/AAAAAAAAA3A/X_0CjdMpxgk/w1874-h598-no/15.30%2B-%2BInterface%2BDetermination%2BCreated.jpg

    • The last IB object to be created is the “Receiver Agreement.”
      • Click the “Create Object” button then expand the “Collaboration Agreement” node and select object type “Receiver Agreement.” Select the sender business system. Then, select the receiver business component and the inbound interface from the value help menu then click the “Create” button.

https://lh4.googleusercontent.com/-D0kU9q0ZCSk/VWApABCe4II/AAAAAAAAA4A/151TcyIlWmw/w1360-h758-no/17.10%2B-%2BReceiver%2BAgreement%2BCreate.jpg

    • In the receiver agreement details screen, select the receiver communication channel then click the “Save” button.

https://lh4.googleusercontent.com/-Xiabwqawf1w/VWApAKsh6tI/AAAAAAAAA4E/P6reljzTOjg/w1212-h1058-no/17.20%2B-%2BReceiver%2BAgreement%2BDetails.jpg

    • Verify that all the receiver agreement is created.

https://lh6.googleusercontent.com/-TkiA9z0n7No/VWApAAdwFcI/AAAAAAAAA4I/j-O7ZgzDitc/w1898-h716-no/17.30%2B-%2BReceiver%2BAgreement%2BCreated.jpg

    • Now, that we created all the necessary IB objects, we need to activate them. Go to the “Change List” tab. Expand the change list all the way, right-click the “Standard Change List”, then select the “Activate” option.

https://lh4.googleusercontent.com/-td13QXUjUjY/VWAqStbI2SI/AAAAAAAAA4Y/NxdhZNJkyx8/w828-h574-no/17.40%2B-%2BIB%2BActivation.jpghttps://lh4.googleusercontent.com/-wDAWWf77umU/VWArXA3BUWI/AAAAAAAAA4w/OvF9Ok4EhOA/w564-h238-no/17.50%2B-%2BIB%2BActivation%2B2.jpghttps://lh6.googleusercontent.com/-bnFRUlrmsQ4/VWArXPC0drI/AAAAAAAAA40/OnsIv5kH0-w/w1002-h902-no/17.60%2B-%2BIB%2BActivation%2B3.jpg


Finally, let’s create a proxy and test our work. See you in the fifth part.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply