Show TOC

Field HistoryLocate this document in the navigation structure

Use
A field history can be assigned to support user entry in the input fields of a page. This function is only available if supported by the browser. This is only currently the case for Internet Explorer as of version 5. The setting is ignored in other browsers or browser versions.

In Internet Explorer 5, the history data for a specific history ID is encrypted and stored at the client side. However, the user can also deactivate this function in the browser settings. Recording data to the history is initiated by using a submit button on the page (a Submit in JavaScript is not sufficient)

Note If the history is to be activated using a JavaScript Submit, then a hidden submit button also has to be pressed using JavaScript.

History ID

Using service methods GET_HISTORY_ID and

GET_LOCAL_HISTORY_ID it is possible to define two types of valid history ID:

  • A global history ID: sap.<historytxt>

  • A local history ID: sap.<application>.<historytxt>

In contrast to a global history ID,a local history ID is application-specific and therefore ensures that the field history is adapted to the current application.

The history ID is transferred to an HTML input field by setting the VCARD_NAME attribute. If no VCARD_NAME attribute is specified, the NAME attribute is used for determining the history. You can deactivate the attribute by setting AUTOCOMPLETE=off.

Note Aside from the type-specific history ID, an individual string can also be used as history ID.
Example

Field: SFLIGHT-CARRID with Field Label and History:

Definition of Data Element forSFLIGHT-CARRID:

Global history ID Sap.car or local history ID Sap.<application>.car can be ascertained from parameter ID car.