Entering content frame

This graphic is explained in the accompanying text SAP_DEMO05: Request with Price Determination  Locate the document in its SAP Library structure

Use

The request category SAP_DEMO05 illustrates how you can access the service order functions at runtime when creating a Web request. Function modules from function group CRM_WEBREQ_ONLINE_PRICING are used for this.

This demo request contains how a BSP application is called for the business partner search and how the price of a product is calculated.

Prerequisites

·        You have maintained the business partner data including the role Internet user for the respective user (see Web Services for Self-Registration and Master Data Changes).

·        You have defined the Customizing settings for the product and the organizational data.

Features

Price determination

A Service order instance is generated using BadI method FORM_ON_CREATION which analog to the standard case is assigned an item with product and quantity one, a payer and the organizational data through the activity reason. The system uses this data to calculate the price of the product and displays this in the form.

You can choose the quantity of a product in the combo box of the Web request. The price is recalculated in accordance with the quantity selected.  If an error occurs, for example the organizational data could not be assigned properly, the price calculation does not take place. In this case an error message is issued and the amount ‘zero’ is displayed as the price.

Business partner search

Using the button This graphic is explained in the accompanying text (business partner search) you can assign a partner in a specific partner function in the request form. This example is for a contact person.

 

Leaving content frame