Entering content frameFunction documentation Customer-Specific Additional Columns in Trip List Locate the document in its SAP Library structure

Use

You can use the ITravelExpenseEnhancement interface to display customer-specific additional columns in the trip list area of Offline Travel Expenses. These customer-specific additional fields can be used to provide users with summary information for trips.

Activities

To be able to create additional columns for trip records, you must define a corresponding category in the ci_records.xml file in the offline repository of Travel Expense.

Example

You want to display additional columns (the total of miles, the WBS element of the first cost line and the number of receipts) for each trip of the trip list.

Proceed as follows:

  1. Create a new record definition in the customer file ci_records.xml
  2. Define a separate class, ZTravelExpenseEnhancement. This class must implement the ITravelExpenseEnhancement interface.
  3. Implement the customize method. Use this method to define the summary for receipts if strOperation equals OP_TRIP_ADD_COLUMNS.

Additional Information

To display more than three additional columns, the following file must be modified: trp_lst.html. The following lines must be added:

`if(SHOW_COLUMNX == "true")`

<td align="left" nowrap>

<b>`#CUSTOMER_DEFINED_COLUMN_X`</b>

</td>

`end`

 

`if(SHOW_COLUMNX == "true")`

<td align="left" >&nbsp;`COLUMNX[idx]`</td>

`end`

X represents the rank of the column to be added.

Leaving content frame