sappistepbystep.files.wordpress.com …  · web viewsap pi. rfc to web service synchronous...

21
SAP PI RFC to Web Service Synchronous Scenario. This Steps to be done in Enterprise Service Builder. Step [1] Click on Create Object Button first, then select Namespace option, provide Name for Namespace & click on Create Button. (Note: add custom name after this standard format ‘http://sap.com/xi/XI/System/’) Step [2] Create External Definition for Web Service by doing following steps.

Upload: others

Post on 18-Jan-2021

20 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

SAP PI

RFC to Web Service Synchronous Scenario.

This Steps to be done in Enterprise Service Builder.

Step [1] Click on Create Object Button first, then select Namespace option, provide Name for Namespace & click on Create Button.

(Note: add custom name after this standard format ‘http://sap.com/xi/XI/System/’)

Step [2] Create External Definition for Web Service by doing following steps.

Page 2: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Import XML code of Web Service.

Then, it would create Web service as shown below.

Page 3: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [3] Create Service Interface for Web Service by doing following steps.

Page 4: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [4] Create 2 Message Mapping for Request & Response by doing following steps.

4.1 Message Mapping For Request.

4.2 Message Mapping For Response.

Page 5: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [5] Create Operation Mapping by doing following steps.

Page 6: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Provide Source and Target Service interfaces by F4.

Check Configuration.

This Steps to be done Integration Builder.

Page 7: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [6] Create Folder First. Then, Create 2 Business Component by doing following steps.

6.1 Business Component for RFC Sender.

Page 8: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Also, Maintain Adapter-Specific Setting For Sender RFC System.

Page 9: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

In this case, Sender RFC System is SAP CRM (CRP 800).

6.2 Business Component for Web Service Receiver.

Page 10: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [7] Create Communication Channel for RFC by doing following steps.

Page 11: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Provide SAP PI Details in RFC Server Parameter & Sender RFC System details in RFC Metadata Repository Parameter.

Note: Program ID is the one which is mentioned in RFC as shown in next step.

Page 12: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [8] Create TCP/IP Connection type RFC by Transaction ‘SM59’.

Select button Registered Server Program & provide ‘Program ID’ and Gateway details .

Page 13: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [9] Create Communication Channel for Web Service by doing following steps.

Page 14: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

First Test Web Service in SOAP UI Tool & copy this URL. Put this URL in Communication Channel.

Page 15: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [10] Create Receiver Determination by doing following steps.

Page 16: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [11] Create Interface Determination by doing following steps.

Page 17: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [12] Create Sender Agreement by doing following steps.

Page 18: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Step [13] Create Receiver Agreement by doing following steps.

Page 19: sappistepbystep.files.wordpress.com …  · Web viewSAP PI. RFC to Web Service Synchronous Scenario.. This Steps to be done in Enterprise Service Builder. Step [1] Click on . Create

Test Case

Create program in RFC Sender System.

Output