Entering content frameFunction documentation Method validateHashtable Locate the document in its SAP Library structure

Use

The validateHashtable method of the ITravelExpenseEnhancement interface permits the user to validate data within the Hashtable object. The customer can determine the operation required based on the Operation Code. The following parameters are transferred to the method:

  1. The following operation, which is defined in the ITravelExpenseEnhancement interface: OP_TRIP_VALIDATION
  2. An object of type Hashtable that contains the trip’s data.
  3. An object of type Hashtable to store the error messages.
  4. An object of type Hashtable to store the warning messages.

This method returns true if the trip’s data is valid, false otherwise.

Additional Information

The Hashtable required by the customize method must be of the following format (for all operations except OP_TRIP_ADD_COLUMNS):

Key (Repository Table Name)

Value

“TRAVEL_HEADER”

IRecord (TRAVEL_HEADER)

“TRAVEL_AMOUNTS”

IRecord (TRAVEL_AMOUNTS)

“TRAVEL_ADVANCES”

Hashtable

Key (ADVANCE_LINE)

Value (advance IRecord)

001

IRecord

“TRAVEL_DEDUCTIONS”

Hashtable

Key (DED_DATE)

Value (deduction IRecord)

20010202

IRecord

“TRAVEL_MILES”

Hashtable

Key (KEY_MILE)

Value (mile IRecord)

001

IRecord

“TRAVEL_STOPS”

Hashtable

Key (KEY_STOP)

Value (stop IRecord)

001

IRecord

“TRAVEL_COST_DISTRIBUTION”

Hashtable

Key (COSTGUID)

Value (cost distribution ITable)

000000ECD980561D

ITable

“TRAVEL_TEXTS”

Hashtable

Key (TEXTGUID)

Value (text ITable)

000000ECD980565A

ITable

“TRAVEL_RECEIPTS”

Hashtable

Key (RECEIPTGUID)

Value (receipt IRecord)

000000ECD9805653

IRecord

“TRAVEL_RECEIPTS_ADDINFO”

Hashtable

Key (RECEIPTGUID)

Value (addinfo IRecord)

000000ECD9805653

IRecord

“TRAVEL_SCHEMA”

IRecord (TRAVEL_SCHEMA)

“TRAVEL_CUSTOMER_DATA”

IRecord (TRAVEL_CUSTOMER_DATA)

For OP_TEXT_SET_DEFAULTS, the Hashtable required by the customize method is of the type described above, but it also contains the following entry:

Key (Repository Table Name)

Value

“OP_TEXT_SET_DEFAULTS”

Irecord (TRAVEL_TEXT_TEMPLATE_NAMES)

For TRIP_ADD_COLUMNS, the Hashtable required by the customize method must be of the following format:

Key (Repository Table Name)

Value

“TRAVEL_HEADER”

ITable (TRAVEL_HEADER)

 

 

Leaving content frame