Show TOC

Procedure documentationDefining Formulas for Business Content Providers Locate this document in the navigation structure

 

Business content providers can include formulas that calculate values based on business object properties.

Example Example

You have two business object properties that represent time and distance. You can now create a formula that divides distance by time to calculate the speed.

End of the example.

Prerequisites

You have created a business content provider.

For more information, see Creating Business Content Providers.

Procedure

  1. Choose   Business Content Provider   Details   in Mobile System Maintenance (MSY).

  2. Select the business content provider for which you want to create a formula and choose the Modify Content pushbutton.

  3. Choose the Add Formula pushbutton.

    The Formula Definitiondialog box appears. The business object properties appear in the Formula Parameters tile.

  4. Enter a unique name for the formula and choose a formula type.

    Based on the value that you choose for the Formula Type, the application sets the value for Framework Formula Type. The formula type can be one of the following:

    • Reporting Framework Supported

      The application provides predefined formulas, such as:

      • COUNT(*)

        This formula calculated the total number of records from a table, such as the number of activities for a business partner.

        This formula does not require any input parameter and is used mostly for charts.

      • SUM

        This formula calculates the net value of a particular set of categories. You can select only one, numeric type business object property as the input parameter. This formula is used mostly for charts.

      • Currency Conversion

        This formula converts the currency of a value based on the currency settings of the logged-in user. You can use this formula only for business object properties of the type currency and that contain a currency value.

    • SFA Globals Method

      Sales Force Automation Globals (SFAGLOBALS) business objects consist of common methods that are used across business components and are maintained in using Mobile Application Studio.

      Enter the name of the required method as the formula.

      If no properties are selected in the dialog box, it indicates that the method does not require any input parameter for execution.

    • User Data Dictionary Key

      Allows you to specify a user data dictionary key. You need not select any business object properties.

  5. Choose OK.

    The formula appears in the business object properties list.