You are on page 1of 13

(1) (2) (3)

Login into srm server. Navigate to spro settings Click external web services

(4)

Define External Web Services(img help)

In this Customizing Activity, you define Web services such as product catalogs or supplier directories that are to be available in SRM Server applications. You have to create the dialog structure, that is, the data that is required for addressing the Web service. Since this data is service-specific, you must contact the provider of the Web service obtain the data from them or get it from the Web service documentation. Requirements You have defined the logical system for the Web service, that is, for the product catalog, in the Customizing activity Define Logical System. Activities 1. To select a Web service, double-click an entry in the list. 2. To create a new Web service, choose New Entries. Enter the following data:

o o

Web Service ID (required entry field) User-defined technical name for a Web service. Name of the Web Service The name is displayed in the Help of the SAP SRM application in which the Web service is embedded. If the application is available in multiple languages, you must translate the name using Edit -> Translate, otherwise the name is not displayed.

Business type (required entry field) The business type determines the type of the Web service and, therefore, in which SRM Server applications, this service is visible. In the Shop application, for example, product catalogs are displayed, but no supplier directories. Furthermore, the busines type determines which further options are available in this IMG activity.

3. Select a business type for the Web service and confirm your selection with Enter. You can make selections as follows:

Product catalog As product catalogs, you can include catalogs that support the open catalog interface (OCI), for example, catalogs that you have created using SAP Catalog Content Management . Supplier directories You can include supplier directories that support the open partner interface (OPI). E-Form Means the same as product catalog. However, if you select this type, the sample implementation of the Business Add-In Transfer Additional Parameters is run, and this BAdI is ignored for all other business types. Supplier evaluation This business type is currently not used. Service provider list The application SAP Supplier Self-Services (SAP SUS) can be included as a service provider list. Note: Create only one service provider list because you can only assign one SAP Supplier Self-Services system to each SAP SRM system.

o o

o o

Supplier Screening The supplier list (ROS) can be connected via OPI.

4. If you have selected Product catalog or E-Form as the business type, you have the following entry and selection options:

Source of Supply Assigned to the Product Catalog a) Enter the number of the business partner and the responsible purchasing organization if the catalog content belongs to one business partner (supplier) only. If you do not assign a business partner to a catalog item, the system automatically assigns this business partner.

Additional Functions in SRM Server b) To determine that product numbers transferred from the catalog do not exist as local products in SAP Supplier Relationship Management (SAP SRM), select the checkbox Do not check products. c) To display contract data in the integrated catalog, select the checkbox Display Contract Data in Integrated Catalog.

Additional Functions in Product Catalogs Note: Some catalogs offer additional functions that are specified in the context of the Open Catalog Interface (OCI). Select the following checkbox only if the product catalog or the E-Form support the additional functions.

d) To display product data in the catalog again after the selection in SAP Supplier Relationship Management (SAP SRM), select the checkbox Display Prod. Data Again in Catalog. See also Detail. e) To enable an update of the product data in SAP Supplier Relationship Management (SAP SRM) after the products have been selected from the catalog, select the checkbox Validate Product Data from SAP Enterprise Buyer. See also Validation. f) To call the catalog with only one search term, and to carry out a search for a source of supply, select the checkbox Sourcing. See also Sources of Supply. g) To support a simultaneous search in multiple catalogs, select the checkbox Search CrossCatalog. 5. The following entry and selection options are available for all business types:

Technical Settings

a) To keep an error log for the catalog, select the checkbox Maintain Error Log. This will keep a log of all technical and business errors that occur during transfer of the product or supplier data. To display the log, choose transaction SLG1. Note: This function is not available with the business types Supplier evaluation and Service provider list. b) To use the HTTP method GET to call the Web service, select the checkbox Use HTTP GET to Call Web Services. To use the HTTP method POST, leave the checkbox unchanged. c) Select the technical type of the Web service. This determines where the Web service is to be available. d) Specify the logical system of the Web service. e) Specify the path for a symbol that represents the Web service. This symbol is then shown in the application if the system uses symbols for Web services. This path is relative to the MIME directory IMAGES/WEBSERVICES in Internet Services BBPGLOBAL. If you create subdirectories in this directory, the path must begin with '/'. 6. If you have selected supplier directory as the business type, you have the following entry and selection options:

Additional Functions in supplier directories

a) To display the supplier directories in the catalog again, select Redisplay Partner Data in Supplier Directory b) Specify the root node under which suppliers are created that are then transferred via the Open Partner Interface (OPI) to SAP Supplier Relationship Management (SAP SRM). 7. Create the dialog/call structure.

o o

To open a Web service in a separate window, choose Standard Call Structure. To open a Web service within the application, choose Integrated Call Structure.

Note: For the Integrated Call Structure of product catalogs, you should use the servlet delivered for this purpose (see post installation steps: Integrating the Requisite Catalog in the Shopping Cart). Syntax example: http://<HTTP-Server>:<port>/<your_entry>/catalog/logonOCI.do SAP recommends that you only use the Integrated Call Structure for the catalog delivered by SAP because external product catalogs and Web services usually to not take the SRM-specific HTML frame structures into account. If you wish to include an external Web service, SAP cannot provide any support in the event that errors should occur. 8. Make entries in the fields Name and Value and select a Type. You must adhere to the sequence as follows: a) URL of the Web service In the first line of the call structure, enter the URL of the Web service ( value) and select the type URL. Do not enter a name. If you have selected Service provider list as the business type, enter the URL of the SUS Service Provider List. Syntax example:

http://<HTTP-Server>:<Port>/sap/bc/bsp/sap/bbp_sus_sagent/sus_serviceagent_f4.htm http server and port, see transaction SMICM. Note: If the URL is longer than the field, distribute it over the following lines and select the type URL for all entries. The URL may not contain any parameters. b) Parameters After you have entered the URL, enter all parameters that the Web service requires on call-up. Take the names and values for the parameters from the documentation on the Web service. For the parameters, you choose one of the two possible types: - Fixed value The value entered in the Value field is transferred. SAP Field You can transfer the system language as a parameter, for example, ( Content sy-langu). This way, you can transfer as parameters all the the fields that are globally available at runtime. Note: If the fixed values and the generic parameter values are not sufficient, you can transfer additional parameters from SAP SRM to the Web service by implementing the Business Add-In (BAdI) . Transfer Additional Parameters. Using this BAdI, you can define name-value pairs that can be transferred as additional parameters to the Web service. If, for example, you wish to transfer the system language in a different format ('EN-en' rather than 'EN'), you can use this BAdI. c) Return URL Enter the name with which the Web service expects the return URL (usually HOOK_URL), and choose the type Return URL. Do not enter a value for the return URL. SAP SRM determines the value at runtime. The return URL is required in order to transfer data from the Web service via the browser to the SAP SRM system. The Web service copies the return URL into the 'action' parameters of the transfer form. The return URL is also transferred as a parameter to the Web service. As this happens, all parameters following the return URL are generated as parameters into the return URL, that is, they are not transferred as individual parameters to the Web service. Note: The specification of the return URL is optional. If you do not specify it, ' HOOK_URL' is used as the name. The parameters of the return URL thus become obsolete. The return URL must only be specified if the Web service expects a different name for it than 'HOOK_URL'. 9. Save your entries. Note: To make a Web service accessible for individual users or for user groups, you must assign the Web service as the value for the attribute CAT. You do this in the attribute maintenance (transaction PPOMA_BBP). The Help for this attribute lists all the available Web services. Further notes

You can find the documentation on OCI and OPI in the SAP Service Marketplace at the Internet address service.sap.com/instguides. In order to read additional data from the SAP SRM system and to transfer it to the Web service, you implement the Business Add-In (BAdI) Transfer Additional Parameters. In order to define a different logic for the transfer of data from the product catalogs to the SAP SRM system, you implement the BAdI Transfer Shopping Cart from Catalog.
(5)click external web services

(6)Select exisiting web service id click details

(7)click the standard call structure

(8) see integrated call structure screen also

(9) save changes

(10)Navigate to org structure (ppoma_bbp)

(11) assign catalog created in company code level attributes, and check in user level also.

Company code level (bugseye4.0 as default)

Similarly navigate to user level and check the attributes and add catlog and make as default

Save the org structure and open portal by clicking internet browser.

Login as sapuser pwd welcome

In portal click on employee self service tab

Shopping area Shop link will display

Catalog displayed for sap user

NEW CAT CREATED AS DEFAULT WITH BUGSEYE 4.0 CATLOG EXISITING ONE.

Material scaling checking by using Tcode:- /ncommpr01 (screen shot is below)

Enter material no like:-1831 in ID/Description field and click start.

1831 material details will be displayed.

Clcik conditions tab to check the scales of material

You might also like