Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

Step-By-Step Procedure for creating Purchase Requisition using BOR interface.

$
0
0


This blog shows how to display and create PR using gateway services(BOR interface) in detail.


Business Object Repository(BOR) in Gateway Service:

It generally used to reduce the time required to create entity types in your data model, SAP Gateway Service Builder provideImport RFC/BOR Interface function with which you can import an existing data source and reuse this data to create new entity types with ease.

 

Step 1:Open Tcode SEGW and create project as shown below.1.png

Provide project details.

2.png

 

Step 2:Create entity by importing BOR interface. For this right click on Data Model and choose Import -> RFC/BOR Interface.3.png

Provide the details.

4.png

 

Step 3:Expand and select the following fields for creating the Purchase requisition and choose next.

             Fields selected RequisitionItems(PREQ_ITEM, DOC_TYPE, MATERIAL, PLANT, QUANTITY, UNIT,

             DELIV_DATE),Number,Return(TYPE,MESSAGE,LOGMSGNO).               

5.png

Specify the key field NUMBER and choose finish.

6.png

 

For displaying (QUERY) Purchase Requisition using BOR interface.

Step 4: Now basic definition of data model is done successfully. As a next step we need to map the fields.

                 Navigate to service implementation and create the QUERY to display the Purchase requisition.

7.png

Step 5: In BOR select the GetDetail for displaying the Purchase requisition details.

8.png

Select the type as Business object Repository and choose tick box.

9.png

Step 6: Now map the fields accordingly by selecting the propose mapping button as shown in below screen.

10.png

Step 7:Fields are mapped accordingly. Check the project, save and generate the project.

11.png

For Creating Purchase Requisition using BOR interface.

Step 8:For creating purchase requisition similarly map the fields by importing the BOR interface.

12.png

Step 9: Select the BOR method (CreateFromData) as shown in below screen.

13.png

Select and proceed.

14.png

Step 10:Now similarly click on propose mapping button as shown below.

15.png

Mapping will be done according. Save and generate the project.

16.png

Testing the Service:

Step 11: Display Purchase requisition

Case1:

Goto Tcode /N/IWFND/MANIT_SERVICE register service.

17.png

Provide System Alias and Click on Get Service. Select Our Created Service and click on Add Selected Service.

Case 2:

Click on SAP Gateway Client.

18.png

Case 3:

Provide the following URL, Select GET and click on EXECUTE to get the sample XML of PR.

19.png

Step 12 :Create Purchase requisition

Case:1

Click on Use as Request and then select POST and EXECUTE it.

20.png

Purchase requisition got created.

21.png

 

Case 2:

Goto SE11 table and provide the Created PR number. So below screen shows that Purchase requisition is created successfully.

22.png

 



Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>