Entering content frameFunction documentation Activating Customer Enhancements Locate the document in its SAP Library structure

Use

In order to activate the customer enhancements such as those described in the examples with Java source code, you need to create a new class: com.sap.mycats.customer.ZenhancementProvider.
This class must implement the Interface IEnhancementProvider.

Use the following implementation to activate the customer enhancements implemented using Java interfaces:

Java Source Code

package com.sap.mycats.basics.customer;

 

import com.sap.expense.customer.examples.*;

import com.sap.mycats.basics.customer.IEnhancementProvider;

import com.sap.mycats.basics.customer.IEnhancement;

 

public class ZEnhancementProvider implements IEnhancementProvider {

 

public IEnhancement[] getEnhancements () {

IEnhancement result[] = new IEnhancement[5];

result[0] = new ZPicklistWbs();

result[1] = new ZPicklistCurrency();

result[2] = new ZTravelExpenseEnhancement();

result[3] = new ZTravelExpenseService();

return result;

}

 

}

 

 

Leaving content frame