Start of Content Area

This graphic is explained in the accompanying text Example: Creating Your Own Tools  Locate the document in its SAP Library structure

The example below shows you how to create your own tool.

This tool provides 50% of the annual contribution as a valuation result.

Prerequisites

You have created a commission case with a valuation. The ZZJABEIT field contains the annual contribution.

Procedure

  1. Start the SE80 transaction.
  2. Open the <APPL>_SAMPLE_LOS function group and copy the <APPL>_LOSAS_GET_VAL function module to your local function group. The function module is used as a template there.
  3. Name the function module <APPL>_LOSTEST_GET_VAL, whereby <APPL> is the name of your generated application.
  4. Define a variable for your function module:
    lv_Percentage TYPE APROZENT.
  5. Set the percentage to 50:
    lv_Percentage = '50'.
  6. Update the calculation to
    lv_wa_docvam-dvalue_amnt =
    ( lv_wa_docvam-ZZJABEIT * lv_Percentage ) / 100.
  7. Delete unnecessary coding lines, then save and activate the function module.

Check here: Coding to see what your coding should look like.

  1. In Customizing for the Commission System, choose Commissions -> Tools -> Logical Service: Maintain Tools.
  2. Choose New Entries and create the ZTOOL_VAL_PR tool.
  1. Save your entries.
  2. Select the tool and choose Functions.
  3. Create a new function: 01.
  4. Enter the function module <APPL>_LOSTEST_GET_VAL. Ensure that the commission application is the same as the commission application in the function module.
  5. Choose Assignments.
  6. Select the object type class and the corresponding method (Calculate Valuation).
  7. Save your entries.
  8. In Customizing, choose Commissions -> Basic/Master Data -> Standard Commission Contract -> Valuation Agreement -> Maintain Valuation Types and assign the new tool to the valuation type.
  9. Choose the CACS transaction and create a new commission case. Enter an annual premium. Simulate the data and ensure that the valuation calculated is 50%.

Note This example is explained in more detail under: Example: Use of Parameter Views

 

 

 

End of Content Area