Entering content frameFunction documentation Customer-Specific Data Checks Locate the document in its SAP Library structure

Use

You can use the ITravelExpenseEnhancement interface to implement customer-specific data checks in Offline Travel Expenses.

If you want to implement customer-specific checks using offline customer enhancements in Offline Travel Expenses, you must also implement these checks in SAP R/3 using the appropriate SAP enhancement. The customer-specific checks in SAP R/3 must be at least as thorough as in Offline Travel Expenses, if not more so.

Example

You want to trigger an error for the creation of receipts of type HOTL (hotel), and trigger warnings for ABZA (dinner deduction) and AUTO (test auto), if the trip’s PD_MEALS flag is ON.

If you want to add the customer-specific check described below to Travel Expense, you must implement the same check in SAP R/3.

Proceed as follows:

  1. Define a separate class, ZTravelExpenseEnhancement. This class must implement the ITravelExpenseEnhancement interface.
  2. Implement the validateHashtable method. Use this method to validate the trip’s hashtable if strOperation equals OP_TRIP_VALIDATION.
Leaving content frame